Skip to content

Instantly share code, notes, and snippets.

@jkasten2
Created November 5, 2015 22:30
Show Gist options
  • Save jkasten2/b69836033e1432252a25 to your computer and use it in GitHub Desktop.
Save jkasten2/b69836033e1432252a25 to your computer and use it in GitHub Desktop.
onesignal-cordova-plugin-pgb-compat without amazon
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="onesignal-cordova-plugin-pgb-compat"
version="1.9.1">
<name>OneSignal Push Notifications PGB Compat</name>
<author>Josh Kasten</author>
<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>
<keywords>push,notification,push notification,push notifications,apns,gcm,adm,retention,messaging</keywords>
<license>MIT</license>
<js-module src="www/OneSignal.js" name="OneSignal">
<clobbers target="OneSignal" />
</js-module>
<engines>
<engine name="cordova" version=">=3.3.0" />
</engines>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="OneSignalPush" >
<param name="android-package" value="com.plugin.gcm.OneSignalPush" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<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="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.onesignal.NotificationOpenedActivity" android:theme="@android:style/Theme.NoDisplay" />
<receiver
android:name="com.onesignal.GcmBroadcastReceiver"
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="com.onesignal.GcmIntentService" />
</config-file>
<source-file src="src/android/libs/OneSignalSDK.jar" target-dir="libs" />
<source-file src="src/android/com/plugin/gcm/OneSignalPush.java" target-dir="src/com/plugin/gcm/" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="OneSignalPush">
<param name="ios-package" value="OneSignalPush"/>
</feature>
</config-file>
<framework src="SystemConfiguration.framework" />
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<source-file src="src/ios/OneSignal.m" />
<source-file src="src/ios/OneSignalHTTPClient.m" />
<source-file src="src/ios/OneSignalTrackIAP.m" />
<source-file src="src/ios/OneSignalJailbreakDetection.m" />
<source-file src="src/ios/OneSignalPush.m" />
<source-file src="src/ios/OneSignalReachability.m" />
<source-file src="src/ios/OneSignalMobileProvision.m" />
<header-file src="src/ios/OneSignal.h" />
<header-file src="src/ios/OneSignalHTTPClient.h" />
<header-file src="src/ios/OneSignalTrackIAP.h" />
<header-file src="src/ios/OneSignalJailbreakDetection.h" />
<header-file src="src/ios/OneSignalPush.h" />
<header-file src="src/ios/OneSignalReachability.h" />
<header-file src="src/ios/OneSignalMobileProvision.h" />
</platform>
<!-- Windows Phone 8.1 -->
<platform name="windows">
<config-file target="config.xml" parent="/*">
<feature name="OneSignalPush">
<param name="ios-package" value="OneSignalPush"/>
</feature>
</config-file>
<js-module src="src/windows/OneSignalPushProxy.js" name="OneSignalPushProxy">
<merges target="" />
</js-module>
<framework src="src/windows/OneSignalSDK_WP_WNS_WRTC.winmd" custom="true" />
<framework src="src/windows/OneSignalSDK_WP_WNS.dll" custom="true" />
<framework src="src/windows/Newtonsoft.Json.dll" custom="true" />
</platform>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment