Push with Parse

Push Notifications with Parse

AndroidNative plugin supports Parse Push Notifications.

First of all you need to Download and Import the Parse Unity SDK.

Start using the Parse Push Notifications by enabling the Parse Push support inside plugin settings, and set Parse Application ID and Parse .NET Key (how to get this values is described below):


Ones you've enabled the Parse Push API, you can choose it as the push notification service as showed on the screenshot bellow:


Work with plugins is finished for now. Second part is about creating your Parse App and Setting up your Account.

So, if you have no Parse applications added to your account on Parse, you should create one.

Click Create a new App in your Dashboard

When your Parse App is created, you can find ApplicationID and Client Key on Settings page inside Keys section.

Copy them and paste inside Inspector window. Just be sure, that proper app is selected in the top left corner on this page.

Application ID and .NET Key are necessary for initializing application Parse functionality.

You have to call GoogleCloudMessageService.Instance.Init(); method from your C# code at application start to init Parse functionality and subscribe for Parse Push Notifications.


As a result your app will be registered in Parse service and subscribed to broadcast Push Notifications messages.

To start sending Push Notifications from Parse you have to select your Parse app and navigate to Push menu page.

To send new Push Notification press + Send a push button

To send Push Notifications to devices use JSON Message Type


Pay attention to the JSON message struct:

title field contains notifications title text

alert field contains actually notification message.

To send your first Parse Push Notification press Send now button on the bottom of this page


Manifest Requirements

Plugin will add necessary receiver automatically.

Here are excerpts from a sample manifest that contains needed permissions:

  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="android.permission.VIBRATE" />
  <uses-permission android:name="android.permission.GET_ACCOUNTS" />
  <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
  <permission android:protectionLevel="signature" android:name="com.parse.parseunitypushsample.permission.C2D_MESSAGE" />
  <uses-permission android:name="com.parse.parseunitypushsample.permission.C2D_MESSAGE" />

Here are excerpts from a sample manifest that supports PushBroadcastReceiver:

<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
        <category android:name="com.parse.parseunitypushsample" />
    <service android:name="com.parse.ParsePushService" />

Example scene can be found at: