Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Wifi & Mobile Data usage Not working #5

Open
natheeshsunway opened this issue Oct 7, 2020 · 3 comments
Open

Application Wifi & Mobile Data usage Not working #5

natheeshsunway opened this issue Oct 7, 2020 · 3 comments

Comments

@natheeshsunway
Copy link

Application Wifi & Mobile Data usage Not working at above android version 10.

@natheeshsunway
Copy link
Author

can anyone please take look through this bug.

@TheBotBox
Copy link
Owner

Are you handling android.permission.READ_PHONE_STATE runtime permission ?

@natheeshsunway
Copy link
Author

natheeshsunway commented Oct 24, 2020

Yes.... I defined in manifest also...and I ask this permission to the user during runtime...

                Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
            ActivityCompat.requestPermissions(Objects.requireNonNull(getActivity()), new String[] 
             {Manifest.permission.READ_PHONE_STATE}, 100);
        }``` 

and 

``` if (ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {
.....
}```

in my project @TheBotBox 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants