Permissions not asked whenever I build my app into APK

Permissions are not asked whenever I build my app into .APK.

I have no idea why it is asked when I use AI2 Companion.
image
So this is my code blocks about permissions.

Is there something wrong?
Do I have to add something more?

1 Like

yes...
ONLY ask for permissions in the Screen.Initialze events...
and call the Get method AFTER the permission has been granted...

also in the PermissionsGranted event... if you already have the permission FineLocation you do not have to ask for it anymore... same for the WifiState permission...

Taifun

5 Likes
  • Ask for permissions step by step.

  • All you have to do is request dangerous permissions (since non-dangerous permissions are granted by default).

  • If you request WRITE permission, READ permission is also granted implicitly (automatically) on devices with Android < 11.

  • If you request WRITE permission on Android 11, this permission will NOT be granted because it no longer exists on Android 11+. (This is currently a bug in AI2). Instead of WRITE, however, READ permission is granted (on Android 11+). → @ewpatton

grafik

4 Likes

Thanks for your help!
also I'm sorry for late reply.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.