GitHub user GitToTheHub added a comment to the discussion: cordova-android: 
grantResults empty in onRequestPermissionResult?

Hi,

thank you, I didn't know this can happen and also didn't know, that this method 
is a Android method and not a Cordova only method.

I tested it on an Android 15 emulator to dismiss the permission request dialog 
by typing outside the permission dialog, but I couldn't dismiss it. Tipping the 
back button dismissed it, but the grantResult was given. The documentation says:

> It is possible that the permissions request interaction with the user is 
> interrupted. In this case you will receive empty permissions and results 
> arrays which should be treated as a cancellation.

So it can occur, when the permission request interaction was interrupted or I 
could guess, it can be dismissed by tipping somewhere else on older Android 
versions or on a manufacture modified OS.

Thank you really much!!

Regards,

Manuel

GitHub link: 
https://github.com/apache/cordova/discussions/526#discussioncomment-12209707

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to