File tree Expand file tree Collapse file tree
demo/android/app/src/main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1140,6 +1140,18 @@ The identifiers MUST be `com.onesignal.example` to work with the existing:
11401140
11411141If you change the identifier, you must also update these files with your own Firebase/Huawei project configuration.
11421142
1143+ ### Android Manifest Permissions
1144+
1145+ The demo Android manifest should include:
1146+
1147+ ``` xml
1148+ <uses-permission android : name =" android.permission.INTERNET" />
1149+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
1150+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
1151+ ```
1152+
1153+ Without the location permissions above, tapping the location prompt button will not show the Android runtime location dialog.
1154+
11431155---
11441156
11451157## React Native Best Practices Applied
Original file line number Diff line number Diff line change 11<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
22
33 <uses-permission android : name =" android.permission.INTERNET" />
4+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
5+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
46
57 <application
68 android : name =" .MainApplication"
You can’t perform that action at this time.
0 commit comments