cordova-plugin-chrome-apps-pushmessaging
Version:
This plugin allows apps to receive push messages.
64 lines (54 loc) • 2.57 kB
text/xml
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-chrome-apps-pushmessaging"
version="1.1.1">
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<name>Chrome Apps Push Messaging API</name>
<keywords>chrome,push,message,messaging</keywords>
<repo>https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-pushMessaging.git</repo>
<issue>https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-pushMessaging/issues</issue>
<dependency id="cordova-plugin-chrome-apps-common@1" />
<dependency id="cordova-plugin-chrome-apps-identity@1" />
<js-module src="pushMessaging.js" name="pushMessaging">
<clobbers target="chrome.pushMessaging" />
</js-module>
<name>Chrome Apps Push Messaging API</name>
<platform name="android">
<source-file src="src/android/ChromePushMessaging.java" target-dir="src/org/chromium" />
<source-file src="src/android/PushMessageReceiver.java" target-dir="src/org/chromium" />
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="ChromePushMessaging">
<param name="android-package" value="org.chromium.ChromePushMessaging"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="org.chromium.PushMessageReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</receiver>
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ChromePushMessaging">
<param name="ios-package" value="ChromePushMessaging"/>
</feature>
</config-file>
<source-file src="src/ios/AppDelegate+notification.m"/>
<source-file src="src/ios/ChromePushMessaging.m"/>
<header-file src="src/ios/AppDelegate+notification.h"/>
<header-file src="src/ios/ChromePushMessaging.h"/>
</platform>
</plugin>