can anybody show an example blocks implementing Screen1.RequestAppPermission properly ? Some of my questions are, where to call this method ? what will happen if user doesn’t allow ? how to check whether the permission is given or not ? What are the Cont’s (if any) ?
You don’t need to use this for built in Components.
It may be needed for some Extensions to work properly.
This will only affect Android 6.0 and newer devices.
where to call this method ?
Screen.initialize or before a feature is used that requires permissions.
what will happen if user doesn’t allow ?
This depends on which permission hasn’t been granted and how you are using the feature.
how to check whether the permission is given or not ?
This isn’t possible currently. @Hossein this would be a Great feature to have.
What are the Cont’s (if any) ?
What’s a Cont?
I’m facing a problem, when i open my app it pops up storage permission ( even if i don’t call this method ) and within some mili seconds my App get crashed. that never happened before the new release.
Are you using the File Component or an Extension?
I used image picker component and some other extensions.
If you manually enable the permissions in Settings or use Live Testing does the app run properly?
i used these extensions
it keeps on happening unless i give the permission…
i think this is because i made my first screen as splash screen and when it requires permission meanwhile other screen get opened and so the App get crashed. How to stop this permission dialog ??
It will check if Permission is Granted if not, it asks the user for Permission.
That is the desired behavior as it cannot do what it’s attempting to do without user consent.
Allowing the requested permission doesn’t make the popup go away?
@Ken is correct. The .apk will check to see what permissions exists at app level. This will be true when no extension is used. However, IF extension is used AND it uses one of the sensitive permissions (e.g. Camera / Storage / etc), then you’ll need to call the Screen1.RequestAppPermissions block
Yes, ones the permission is given then it doesn’t pop up anymore. But the Problem is it keeps on crashing my app untill the permission is given which i think will be very irritating to my users.
the problem is as the App is opened the permission dialog pops up and as i made my first screen as splash Screen which opens another screen after 2 seconds, so before interacting with the dialog the app get crashed as the other screen opens up. How can i solve this ??
Did you add the permission request in your screen initialize?
No, i did NOT add any
Which Components are you using?
a lot components how can i tell one by one
is there any event which get triggered when user interact with permission dialog ??
Are you using File Component or any other Components that would require file access?
The crash is maybe not part of the request app permission. You use an extension for sidebar. What if you use the internal one. Maybe that is causing the crash.
yes I’m using Image picker .