Android - GPS - Application has stopped

Hello Rob,

That is the first thing i did, unfortunately, neither sample apps deal with this android 6+ issue. 

Would you have a working example of the native.showPopup( “requestAppPermission”, options ) for the “Location” appPermission?

Thanks for your help,

Dim

Ok, after further investigation, it seems that neither the platform agnostic nor the permission.group (ie : “Location” or “android.permission-group.Location”) work properly when added as the appPermission in the options of the native.showPopup.

However, calling one of the item in a permission group (ie : “android.permission.ACCESS_FINE_LOCATION”) works properly.

The current documentation is either completely wrong, or there is a bug.

This workaround is not so convenient, as it is now necessary to request all the items of a permission group one by one instead of the agnostic group, which might be quite annoying for the user (one popup after another).

EDIT : Actually, it works to request an array of strings, so it is not really a problem.

Cheers,

Dim

Hi dimd,

Would you be able to share what you did exactly ? As our app  is working perfectly  except on android 6.x.

We are not sure to understand the recipe you are talking ?

Hey nmichaud,

Everything is in the thread really. Could you fix your problem ?

d.

@dimd, We did find the problem and it was not related to yours. It was in Corona and the fix will soon be available.