cordova-plugin-azure-notificationhub
Version:
Cordova plugin that allows camera interaction from HTML code. Show camera preview below or on top of the HTML.
93 lines (76 loc) • 3.89 kB
text/xml
<plugin id="cordova-plugin-azure-notificationhub" version="0.3.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<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>
<uses-library android:name="org.apache.http.legacy" android:required="false" />
</config-file>
<framework src="com.android.support:support-v13:23+" />
<framework src="com.google.android.gms:play-services-gcm:+" />
<source-file src="src/android/NotificationHub.java" target-dir="src/msopentech/azure" />
<lib-file src="src/android/notification-hubs-android-sdk-0.4.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" />
<header-file src="src/ios/AppDelegate+AzureNotifications.h" />
<source-file src="src/ios/AppDelegate+AzureNotifications.m" />
<framework src="src/ios/WindowsAzureMessaging.framework" custom="true" />
</platform>
</plugin>