123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:amazon="http://schemas.amazon.com/apk/res/android" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" package="PACKAGE_NAME" android:versionName="1.0" android:versionCode="1">
- <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
- <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true">
- <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <!-- intent-filter ${applicationId}.MESSAGE here allows to start Activity directly from push notification without restarting whole application -->
- <activity android:name="com.unity3d.player.UnityPlayerActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
- <intent-filter>
- <action android:name="PACKAGE_NAME.MESSAGE" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
- <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
- <meta-data android:name="android.app.lib_name" android:value="unity" />
- <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
- </activity>
- <!-- GCM part -->
- <receiver
- android:name="com.google.android.gms.gcm.GcmReceiver"
- android:exported="true"
- android:permission="com.google.android.c2dm.permission.SEND" >
- <intent-filter>
- <action android:name="com.google.android.c2dm.intent.RECEIVE" />
- <category android:name="PACKAGE_NAME" />
- </intent-filter>
- </receiver>
- <!-- Amazon part-->
- <receiver
- android:name="com.pushwoosh.MessageAlertReceiver"
- android:permission="com.amazon.device.messaging.permission.SEND">
- <intent-filter>
- <action android:name="com.amazon.device.messaging.intent.REGISTRATION" />
- <action android:name="com.amazon.device.messaging.intent.RECEIVE" />
- <category android:name="PACKAGE_NAME" />
- </intent-filter>
- </receiver>
- <amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" />
- </application>
- <uses-feature android:glEsVersion="0x00020000" />
- <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17" />
- <!-- GCM part -->
- <permission android:name="PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
- <uses-permission android:name="PACKAGE_NAME.permission.C2D_MESSAGE" />
- <!-- Amazon part -->
- <permission android:name="PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature" />
- <uses-permission android:name="PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" />
- </manifest>
|