4

I want to open the app's permission page, but the doc does not provide any details on how to specify the data param to achieve this.

What should I pass to data to accomplish this?

EDIT: please stop marking this as duplicate. This is a React Native Expo app as tagged below. Android solutions will require detaching from Expo...

Avery235
  • 4,756
  • 12
  • 49
  • 83
  • Possible duplicate of [How to programmatically open the Permission Screen for a specific app on Android Marshmallow?](https://stackoverflow.com/questions/32822101/how-to-programmatically-open-the-permission-screen-for-a-specific-app-on-android) – Eselfar Mar 20 '18 at 17:59
  • @Eselfar this is a React Native app using the Expo library, so the solution is pure javascript. – Avery235 Mar 20 '18 at 18:15
  • What happen if you do: `IntentLauncherAndroid.startActivityAsync( IntentLauncherAndroid.ACTION_APPLICATION_DETAILS_SETTINGS );` which is a mix of both the example in the documentation you've linked and the Java solution above – Eselfar Mar 20 '18 at 18:21
  • @Eselfar it didn't work...I need to set the `data` parameter as well but there's no `Uri` in React Native. – Avery235 Mar 20 '18 at 23:16
  • HAve a look at this https://docs.expo.io/versions/latest/guides/linking.html – Eselfar Mar 21 '18 at 09:44
  • @Eselfar how would that help me to open the permission screen on Android? – Avery235 Apr 20 '18 at 11:19
  • You were saying there is no Uri in React Native. If you follow the link above, they explain how to pass data. So I thought it could help you to find a solution – Eselfar Apr 21 '18 at 13:27

0 Answers0