|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" |
3 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
4 | | - id="com.onesignal.plugins.OneSignal" |
5 | | - version="1.6.2"> |
6 | | - |
7 | | - <name>OneSignal Push Notifications</name> |
8 | | - <author>Josh Kasten</author> |
9 | | - |
10 | | - <description> |
11 | | - OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send. |
12 | | - </description> |
13 | | - |
14 | | - <keywords>push,notification,push notification,push notifications,apns,gcm,adm,retention,messaging</keywords> |
15 | | - |
16 | | - <license>MIT</license> |
17 | | - |
18 | | - <js-module src="www/OneSignal.js" name="OneSignal"> |
19 | | - <clobbers target="OneSignal" /> |
20 | | - </js-module> |
21 | | - |
22 | | - <engines> |
23 | | - <engine name="cordova" version=">=3.3.0" /> |
24 | | - </engines> |
25 | | - |
26 | | - <platform name="android"> |
27 | | - <dependency id="android.support.v4" /> |
28 | | - <dependency id="com.google.playservices" /> |
29 | | - |
30 | | - <config-file target="res/xml/config.xml" parent="/*"> |
31 | | - <feature name="OneSignalPush" > |
32 | | - <param name="android-package" value="com.plugin.gcm.OneSignalPush" /> |
33 | | - </feature> |
34 | | - </config-file> |
35 | | - |
36 | | - <config-file target="AndroidManifest.xml" parent="/manifest"> |
37 | | - <uses-permission android:name="android.permission.INTERNET" /> |
38 | | - <uses-permission android:name="android.permission.WAKE_LOCK" /> |
39 | | - <uses-permission android:name="android.permission.VIBRATE"/> |
40 | | - |
41 | | - <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> |
42 | | - <permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" /> |
43 | | - <uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" /> |
44 | | - |
45 | | - <uses-permission android:name="com.amazon.device.messaging.permission.RECEIVE" /> |
46 | | - <permission android:name="$PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature" /> |
47 | | - <uses-permission android:name="$PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" /> |
48 | | - </config-file> |
49 | | - |
50 | | - <config-file target="AndroidManifest.xml" parent="/manifest/application"> |
51 | | - <activity android:name="com.onesignal.NotificationOpenedActivity"/> |
52 | | - |
53 | | - <receiver |
54 | | - android:name="com.onesignal.GcmBroadcastReceiver" |
55 | | - android:permission="com.google.android.c2dm.permission.SEND" > |
56 | | - <intent-filter> |
57 | | - <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
58 | | - <category android:name="$PACKAGE_NAME" /> |
59 | | - </intent-filter> |
60 | | - </receiver> |
61 | | - <service android:name="com.onesignal.GcmIntentService" /> |
62 | | - |
63 | | - |
64 | | - <amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" xmlns:amazon="http://schemas.amazon.com/apk/res/android" /> |
65 | | - <service android:name="com.onesignal.ADMMessageHandler" android:exported="false" /> |
66 | | - <receiver |
67 | | - android:name="com.onesignal.ADMMessageHandler$Receiver" |
68 | | - android:permission="com.amazon.device.messaging.permission.SEND" > |
69 | | - <intent-filter> |
70 | | - <action android:name="com.amazon.device.messaging.intent.REGISTRATION" /> |
71 | | - <action android:name="com.amazon.device.messaging.intent.RECEIVE" /> |
72 | | - <category android:name="$PACKAGE_NAME" /> |
73 | | - </intent-filter> |
74 | | - </receiver> |
75 | | - </config-file> |
76 | | - |
77 | | - <source-file src="src/android/libs/OneSignalSDK.jar" target-dir="libs" /> |
78 | | - <source-file src="src/android/com/plugin/gcm/OneSignalPush.java" target-dir="src/com/plugin/gcm/" /> |
79 | | - </platform> |
80 | | - |
81 | | - <!-- ios --> |
82 | | - <platform name="ios"> |
83 | | - |
84 | | - <config-file target="config.xml" parent="/*"> |
85 | | - <feature name="OneSignalPush"> |
86 | | - <param name="ios-package" value="OneSignalPush"/> |
87 | | - </feature> |
88 | | - </config-file> |
89 | | - |
90 | | - <framework src="SystemConfiguration.framework" /> |
91 | | - |
92 | | - <config-file target="*-Info.plist" parent="UIBackgroundModes"> |
93 | | - <array> |
94 | | - <string>remote-notification</string> |
95 | | - </array> |
96 | | - </config-file> |
97 | | - |
98 | | - <source-file src="src/ios/OneSignal.m" /> |
99 | | - <source-file src="src/ios/OneSignalHTTPClient.m" /> |
100 | | - <source-file src="src/ios/OneSignalTrackIAP.m" /> |
101 | | - <source-file src="src/ios/OneSignalJailbreakDetection.m" /> |
102 | | - <source-file src="src/ios/OneSignalPush.m" /> |
103 | | - <source-file src="src/ios/OneSignalReachability.m" /> |
104 | | - <source-file src="src/ios/OneSignalMobileProvision.m" /> |
105 | | - |
106 | | - <header-file src="src/ios/OneSignal.h" /> |
107 | | - <header-file src="src/ios/OneSignalHTTPClient.h" /> |
108 | | - <header-file src="src/ios/OneSignalTrackIAP.h" /> |
109 | | - <header-file src="src/ios/OneSignalJailbreakDetection.h" /> |
110 | | - <header-file src="src/ios/OneSignalPush.h" /> |
111 | | - <header-file src="src/ios/OneSignalReachability.h" /> |
112 | | - <header-file src="src/ios/OneSignalMobileProvision.h" /> |
113 | | - |
114 | | - </platform> |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + id="onesignal-cordova-plugin" |
| 5 | + version="1.7.1"> |
| 6 | + |
| 7 | + <name>OneSignal Push Notifications</name> |
| 8 | + <author>Josh Kasten</author> |
| 9 | + |
| 10 | + <description>OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, A/B test, and automate notifications that you send.</description> |
| 11 | + |
| 12 | + <keywords>push,notification,push notification,push notifications,apns,gcm,adm,retention,messaging</keywords> |
| 13 | + |
| 14 | + <license>MIT</license> |
| 15 | + |
| 16 | + <js-module src="www/OneSignal.js" name="OneSignal"> |
| 17 | + <clobbers target="OneSignal" /> |
| 18 | + </js-module> |
| 19 | + |
| 20 | + <engines> |
| 21 | + <engine name="cordova" version=">=3.3.0" /> |
| 22 | + </engines> |
| 23 | + |
| 24 | + <platform name="android"> |
| 25 | + <framework src="com.google.android.gms:play-services-gcm:7.3.0" /> |
| 26 | + <framework src="com.google.android.gms:play-services-ads:7.3.0" /> |
| 27 | + |
| 28 | + <config-file target="res/xml/config.xml" parent="/*"> |
| 29 | + <feature name="OneSignalPush" > |
| 30 | + <param name="android-package" value="com.plugin.gcm.OneSignalPush" /> |
| 31 | + </feature> |
| 32 | + </config-file> |
| 33 | + |
| 34 | + <config-file target="AndroidManifest.xml" parent="/manifest"> |
| 35 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 36 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 37 | + <uses-permission android:name="android.permission.VIBRATE"/> |
| 38 | + |
| 39 | + <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> |
| 40 | + <permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" /> |
| 41 | + <uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" /> |
| 42 | + |
| 43 | + <uses-permission android:name="com.amazon.device.messaging.permission.RECEIVE" /> |
| 44 | + <permission android:name="$PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature" /> |
| 45 | + <uses-permission android:name="$PACKAGE_NAME.permission.RECEIVE_ADM_MESSAGE" /> |
| 46 | + </config-file> |
| 47 | + |
| 48 | + <config-file target="AndroidManifest.xml" parent="/manifest/application"> |
| 49 | + <activity android:name="com.onesignal.NotificationOpenedActivity" android:theme="@android:style/Theme.NoDisplay" /> |
| 50 | + |
| 51 | + <receiver |
| 52 | + android:name="com.onesignal.GcmBroadcastReceiver" |
| 53 | + android:permission="com.google.android.c2dm.permission.SEND" > |
| 54 | + <intent-filter> |
| 55 | + <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
| 56 | + <category android:name="$PACKAGE_NAME" /> |
| 57 | + </intent-filter> |
| 58 | + </receiver> |
| 59 | + <service android:name="com.onesignal.GcmIntentService" /> |
| 60 | + |
| 61 | + |
| 62 | + <amazon:enable-feature android:name="com.amazon.device.messaging" android:required="false" xmlns:amazon="http://schemas.amazon.com/apk/res/android" /> |
| 63 | + <service android:name="com.onesignal.ADMMessageHandler" android:exported="false" /> |
| 64 | + <receiver |
| 65 | + android:name="com.onesignal.ADMMessageHandler$Receiver" |
| 66 | + android:permission="com.amazon.device.messaging.permission.SEND" > |
| 67 | + <intent-filter> |
| 68 | + <action android:name="com.amazon.device.messaging.intent.REGISTRATION" /> |
| 69 | + <action android:name="com.amazon.device.messaging.intent.RECEIVE" /> |
| 70 | + <category android:name="$PACKAGE_NAME" /> |
| 71 | + </intent-filter> |
| 72 | + </receiver> |
| 73 | + </config-file> |
| 74 | + |
| 75 | + <source-file src="src/android/libs/OneSignalSDK.jar" target-dir="libs" /> |
| 76 | + <source-file src="src/android/com/plugin/gcm/OneSignalPush.java" target-dir="src/com/plugin/gcm/" /> |
| 77 | + </platform> |
| 78 | + |
| 79 | + <!-- ios --> |
| 80 | + <platform name="ios"> |
| 81 | + |
| 82 | + <config-file target="config.xml" parent="/*"> |
| 83 | + <feature name="OneSignalPush"> |
| 84 | + <param name="ios-package" value="OneSignalPush"/> |
| 85 | + </feature> |
| 86 | + </config-file> |
| 87 | + |
| 88 | + <framework src="SystemConfiguration.framework" /> |
| 89 | + |
| 90 | + <config-file target="*-Info.plist" parent="UIBackgroundModes"> |
| 91 | + <array> |
| 92 | + <string>remote-notification</string> |
| 93 | + </array> |
| 94 | + </config-file> |
| 95 | + |
| 96 | + <source-file src="src/ios/OneSignal.m" /> |
| 97 | + <source-file src="src/ios/OneSignalHTTPClient.m" /> |
| 98 | + <source-file src="src/ios/OneSignalTrackIAP.m" /> |
| 99 | + <source-file src="src/ios/OneSignalJailbreakDetection.m" /> |
| 100 | + <source-file src="src/ios/OneSignalPush.m" /> |
| 101 | + <source-file src="src/ios/OneSignalReachability.m" /> |
| 102 | + <source-file src="src/ios/OneSignalMobileProvision.m" /> |
| 103 | + |
| 104 | + <header-file src="src/ios/OneSignal.h" /> |
| 105 | + <header-file src="src/ios/OneSignalHTTPClient.h" /> |
| 106 | + <header-file src="src/ios/OneSignalTrackIAP.h" /> |
| 107 | + <header-file src="src/ios/OneSignalJailbreakDetection.h" /> |
| 108 | + <header-file src="src/ios/OneSignalPush.h" /> |
| 109 | + <header-file src="src/ios/OneSignalReachability.h" /> |
| 110 | + <header-file src="src/ios/OneSignalMobileProvision.h" /> |
| 111 | + |
| 112 | + </platform> |
115 | 113 |
|
116 | 114 | </plugin> |
117 | 115 |
|
0 commit comments