I cant place your exact problem although. I had this same issue with devices that are using android pie hope this is your issue as well if you are using http instead of https in the api calls devices running android pie shows this login problem.So my solution for this problem is create a resource directory inside your res folder choose the resource type as xml and inside that folder create an xml resource file and name it as network_security_config insert the following code to that xml resource file
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">www.example.com</domain>
<domain includeSubdomains="true">http://example.com</domain>
<domain includeSubdomains="true">example.com</domain>
</domain-config>
</network-security-config>
and insert the following lines to your manifest inside the application tag
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
hope this solves your problem