Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active November 20, 2017 19:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save juucustodio/d9d665dc83db916e7258818064dff3e8 to your computer and use it in GitHub Desktop.
Example of Push Notifications with OneSignal in Xamarin.Forms applications - http://julianocustodio.com/onesignal-push-notification
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{InsertPackageNameHere}" android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" />
<permission android:name="{InsertPackageNameHere}.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="{InsertPackageNameHere}.permission.C2D_MESSAGE" />
<application android:label="DemoNotification.Android">
<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="{InsertPackageNameHere}" />
</intent-filter>
</receiver>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment