PushwooshAndroidManifest.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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">
  3. <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  4. <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true">
  5. <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">
  6. <intent-filter>
  7. <action android:name="android.intent.action.MAIN" />
  8. <category android:name="android.intent.category.LAUNCHER" />
  9. </intent-filter>
  10. </activity>
  11. <!-- intent-filter ${applicationId}.MESSAGE here allows to start Activity directly from push notification without restarting whole application -->
  12. <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">
  13. <intent-filter>
  14. <action android:name="PACKAGE_NAME.MESSAGE" />
  15. <category android:name="android.intent.category.DEFAULT" />
  16. </intent-filter>
  17. </activity>
  18. <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">
  19. <meta-data android:name="android.app.lib_name" android:value="unity" />
  20. <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
  21. </activity>
  22. <!-- GCM part -->
  23. <receiver
  24. android:name="com.google.android.gms.gcm.GcmReceiver"
  25. android:exported="true"
  26. android:permission="com.google.android.c2dm.permission.SEND" >
  27. <intent-filter>
  28. <action android:name="com.google.android.c2dm.intent.RECEIVE" />
  29. <category android:name="PACKAGE_NAME" />
  30. </intent-filter>
  31. </receiver>
  32. <!-- Amazon part-->
  33. <receiver
  34. android:name="com.pushwoosh.MessageAlertReceiver"
  35. android:permission="com.amazon.device.messaging.permission.SEND">
  36. <intent-filter>
  37. <action android:name="com.amazon.device.messaging.intent.REGISTRATION" />
  38. <action android:name="com.amazon.device.messaging.intent.RECEIVE" />
  39. <category android:name="PACKAGE_NAME" />
  40. </intent-filter>
  41. </receiver>
  42. <amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" />
  43. </application>
  44. <uses-feature android:glEsVersion="0x00020000" />
  45. <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17" />
  46. <!-- GCM part -->
  47. <permission android:name="PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
  48. <uses-permission android:name="PACKAGE_NAME.permission.C2D_MESSAGE" />
  49. <!-- Amazon part -->
  50. <permission android:name="PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature" />
  51. <uses-permission android:name="PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" />
  52. </manifest>