Skip to content

Commit b7a0b8a

Browse files
authored
Merge pull request #446 from OneSignal/fix/displayPromptLocation
[IMPROVEMENT] Display PromptLocation example for Android
2 parents 0140473 + b7d8a04 commit b7a0b8a

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

OneSignalExample/Assets/OneSignal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Fixed
99
- iOS build post processor will determine extension's imported OneSignalXCFramework from the package's dependencies xml
1010
### Changed
11+
- Added AndroidManifest with location permissions to the example app to display `PromptLocation`
1112
- `InstallEdm4uStep` now imports version [1.2.169](https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.169) of [EDM4U](https://github.com/googlesamples/unity-jar-resolver)
1213
- Log an error in the example app when `RequiresPrivacyConsent` is attempted to be set to false from true
1314

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<manifest
4+
xmlns:android="http://schemas.android.com/apk/res/android"
5+
package="com.unity3d.player"
6+
xmlns:tools="http://schemas.android.com/tools">
7+
8+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
9+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
10+
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
11+
12+
<application>
13+
<activity android:name="com.unity3d.player.UnityPlayerActivity"
14+
android:theme="@style/UnityThemeSelector">
15+
<intent-filter>
16+
<action android:name="android.intent.action.MAIN" />
17+
<category android:name="android.intent.category.LAUNCHER" />
18+
</intent-filter>
19+
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
20+
</activity>
21+
</application>
22+
</manifest>

OneSignalExample/Assets/Plugins/Android/AndroidManifest.xml.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OneSignalExample/ProjectSettings/ProjectSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ PlayerSettings:
236236
clonedFromGUID: 00000000000000000000000000000000
237237
templatePackageId:
238238
templateDefaultScene:
239-
useCustomMainManifest: 0
239+
useCustomMainManifest: 1
240240
useCustomLauncherManifest: 0
241241
useCustomMainGradleTemplate: 1
242242
useCustomLauncherGradleManifest: 0

0 commit comments

Comments
 (0)