Closed timwright35 closed 8 years ago
Yeah, this is a common problem. However, I am not sure if this is plugin role to check these permissions and alert the end user about that or it should be done separately by an application developer. I mean I can imagine if someone is using many different plugins and all these plugins out of nowhere would start popping up with alerts of this kind. It could be disturbing to the end user. Maybe there is somewhere a plugin to check desired permission if not it would be better to design custom separate function like checkPermissions
.
Yea I can see that, maybe some function in the plugin that sends back an event if permissions are not set at what they need to be and another function that allows the an UI popup like that if called. Thus the person using the plugin as the option to watch for the permission issue and to ask the user in a popup.
Hey @Tempus35, in the newest version (0.6.0) initialize
method should return with an error if any required permission is not granted.
On my app I had an issue with permissions not being the right ones and the geofence plugin never telling the user. I add this code, it checks the permissions and popups when it is not given.