forked from sgrebnov/cordova-plugin-azure-notificationhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
88 lines (75 loc) · 3.82 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="msopentech.azure.NotificationHub"
version="0.0.1">
<name>Azure Notification Hub</name>
<description>Cordova Azure Notification Hub Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova, azure, push, notifications, hub</keywords>
<repo>https://github.com/sgrebnov/cordova-plugin-azure-notificationhub</repo>
<issue>https://github.com/sgrebnov/cordova-plugin-azure-notificationhub/issues</issue>
<js-module src="www/Promise.js" name="Promise"/>
<js-module src="www/NotificationHub.js" name="NotificationHub">
<clobbers target="WindowsAzure.Messaging.NotificationHub" />
</js-module>
<!-- Windows Phone -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="NotificationHub">
<param name="wp-package" value="NotificationHub"/>
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
</config-file>
<framework src="src/wp/Microsoft.WindowsAzure.Messaging.dll" custom="true"/>
<source-file src="src/wp/NotificationHub.cs" />
</platform>
<!-- windows8 -->
<platform name="windows8">
<framework src="src/windows8/Microsoft.WindowsAzure.Messaging.Managed.dll" custom="true"/>
<framework src="src/windows8/NotificationHubRuntimeProxy.winmd" custom="true"/>
<js-module src="src/windows8/NotificationHubProxy.js" name="NotificationHubProxy" >
<clobbers target="" />
</js-module>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="NotificationHub">
<param name="android-package" value="msopentech.azure.NotificationHub" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="msopentech.azure.NotificationHub$PushNotificationReceiver"
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>
</config-file>
<source-file src="src/android/NotificationHub.java" target-dir="src/msopentech/azure" />
<lib-file src="src/android/google-play-services.jar" />
<lib-file src="src/android/notification-hubs-0.1.jar" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="NotificationHub">
<param name="ios-package" value="NotificationHub" />
</feature>
</config-file>
<header-file src="src/ios/NotificationHub.h" />
<source-file src="src/ios/NotificationHub.m" />
<framework src="src/ios/WindowsAzureMessaging.framework" custom="true" />
</platform>
</plugin>