Issue
I have one ionic app in which it is asking for Location permission from user
If user clicks on "Don't allow for multiple times" then android doesn't allow me to ask for this permission any more hence as i solution i decided to show user a message to compulsary enable the permission and if user agrees and want to give permission then i will take user to App's Info page in Android.
From where user can enable the permission and can access the features of app.
Now, the issue is i want to redirect the user to app settings if he press okay to turn on the permission
Can anyone please confirm if this possible and how can we do this ?
Solution
I got how can we achieve this, use below capacitor plugin,
https://www.npmjs.com/package/capacitor-native-settings
For Android :
NativeSettings.openAndroid({
option: AndroidSettings.ApplicationDetails,
});
ApplicationDetails options of Android will take you to your APP settings
Answered By - vishva
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.