Skip to content

Commit fd8f7ef

Browse files
committed
location fixes
1 parent de58a4d commit fd8f7ef

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

examples/build.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,18 @@ The identifiers MUST be `com.onesignal.example` to work with the existing:
11401140

11411141
If 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

examples/demo/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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"

0 commit comments

Comments
 (0)