-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
183 lines (153 loc) · 7.96 KB
/
Copy pathplugin.xml
File metadata and controls
183 lines (153 loc) · 7.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="pushapps-mobi" version="1.0.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>PushApps - Push Notification Plugin</name>
<description>PushApps Push Notification Plugin for PhoneGap/Cordova</description>
<author>PushApps</author>
<keywords>pushapps,push,notification,pushnotification</keywords>
<license>Apache 2.0 License</license>
<engines>
<engine name="cordova" version=">=3.3.0" />
<engine name="cordova-android" version=">=4.0.0" />
</engines>
<js-module src="www/pushapps.js" name="PushApps">
<clobbers target="PushNotification" />
</js-module>
<config-file>
<access origin="*.pushapps.mobi" />
</config-file>
<preference name="PA_SDK_KEY" />
<preference name="PA_GOOGLE_PROJECT_NUMBER" />
<!-- android -->
<platform name="android">
<config-file>
<access origin="*.pushapps.mobi" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushApps" >
<param name="android-package" value="mobi.pushapps.plugins.PushAppsPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="${applicationId}.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="mobi.pushapps.PAActivity"
android:configChanges="orientation|keyboardHidden" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="pushapps-$PA_SDK_KEY" />
</intent-filter>
</activity>
<activity
android:name="mobi.pushapps.PAPopup"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<meta-data
android:name="PushApps_SdkKey"
android:value="$PA_SDK_KEY" />
<meta-data
android:name="PushApps_SenderId"
android:value="pa:$PA_GOOGLE_PROJECT_NUMBER" />
<receiver
android:name="mobi.pushapps.sync.PASyncConfigurationReceiver"
android:enabled="true" >
<intent-filter>
<action android:name="mobi.pushapps.sync.SYNC_CONFIGURATIONS" />
</intent-filter>
</receiver>
<receiver
android:name="mobi.pushapps.sync.PASyncRecommendationsReceiver"
android:enabled="true" >
<intent-filter>
<action android:name="mobi.pushapps.sync.SYNC_RECOMMENDATIONS" />
</intent-filter>
</receiver>
<receiver
android:name="mobi.pushapps.events.PASyncEventsReceiver"
android:enabled="true" >
<intent-filter>
<action android:name="mobi.pushapps.events.SYNC_EVENTS" />
</intent-filter>
</receiver>
<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>
<service
android:name="mobi.pushapps.gcm.PAGcmListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</service>
<service
android:name="mobi.pushapps.gcm.PAInstanceIDListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<service
android:name="mobi.pushapps.gcm.PARegistrationIntentService"
android:exported="false" >
</service>
</config-file>
<source-file src="src/android/libs/pushappssdk.jar" target-dir="libs/" />
<source-file src="src/android/libs/okio.jar" target-dir="libs/" />
<source-file src="src/android/libs/okhttp.jar" target-dir="libs/" />
<source-file src="src/android/libs/outbrainsdk.jar" target-dir="libs/" />
<source-file src="src/android/plugin/PushAppsPlugin.java" target-dir="src/mobi/pushapps/plugins/" />
<source-file src="src/android/res/layout/pushapps_small.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_activity.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_content1.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_content2.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_action_buttons1.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_action_buttons2.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_poll_images1.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_poll_text1.xml" target-dir="res/layout/" />
<source-file src="src/android/res/layout/pushapps_poll_text2.xml" target-dir="res/layout/" />
<framework src="com.android.support:support-v13:23+" />
<framework src="com.google.android.gms:play-services-gcm:+" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PushApps">
<param name="ios-package" value="CDVPushApps" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file>
<access origin="*.pushapps.mobi" />
</config-file>
<header-file src="src/ios/CDVPushApps.h" target-dir="ios"/>
<source-file src="src/ios/CDVPushApps.m" target-dir="ios"/>
<header-file src="src/ios/AppDelegate+notification.h" target-dir="ios"/>
<source-file src="src/ios/AppDelegate+notification.m" target-dir="ios"/>
<header-file src="src/ios/PATag.h" target-dir="ios"/>
<header-file src="src/ios/PushApps.h" target-dir="ios"/>
<source-file src="src/ios/PushApps" framework="true"/>
<!-- System frameworks -->
<framework src="Foundation.framework" weak="true" />
<framework src="UIKit.framework" weak="true" />
<framework src="AdSupport.framework" />
</platform>
</plugin>