Zfinix / data_usage

MIT License
8 stars 15 forks source link

PlatformException(Permission_NOT_GRANTED,null,null,null) #4

Open xaviersydney48 opened 3 years ago

xaviersydney48 commented 3 years ago

I have used this package an i am getting this error need a help please

xaviersydney48 commented 3 years ago

git

xaviersydney48 commented 3 years ago

Any one who have managed to use the package and solve this problem

HamzaIbrahimQ commented 2 years ago

did you solve this problem bro?

zawadZwd commented 2 years ago

I did. I've added to android manifest these lines:


<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.data_usage" xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" tools:ignore="ProtectedPermissions" />

then before I called the plugin, I used Permission handler and asked for permission for phone. And that's it. I don't know why it is not in readme, but it works anyway. Hope this will help someone.

Zfinix commented 2 years ago

Thankssss

On Wed, 20 Apr 2022 at 9:50 PM, zawadZwd @.***> wrote:

I did. I've added to android manifest these lines:

then before I called the plugin, I used Permission handler and asked for permission for phone. And that's it. I don't know why it is not in readme, but it works anyway. Hope this will help someone. — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***> -- Chiziaruhoma O.