title: Parse Unity Push Sample not working
body: <p>I am struggling of using Parse on my Unity android application. Have been working on several days but no success yet. No matter how hard I try, I couldn't get my device token registered for Android which is needed for sending push notifications to android. Below is my sample code and manifest snippet.. </p>
  
  <pre><code>  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
    &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
    &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
    &lt;permission android:protectionLevel="signature"      android:name="com.JoyDash.Movies.permission.C2D_MESSAGE" /&gt;
    &lt;uses-permission android:name="com.JoyDash.Movies.permission.C2D_MESSAGE" /&gt;
  
  
   &lt;!--Parse Push notification receiver--&gt;
      &lt;service android:name="com.parse.PushService" /&gt;
      &lt;receiver android:name="com.parse.ParseBroadcastReceiver"&gt;
        &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
          &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
        &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;receiver android:name="com.JoyDash.Movies.Receiver" android:exported="false"&gt;
        &lt;intent-filter&gt;
          &lt;action android:name="com.parse.push.intent.RECEIVE" /&gt;
          &lt;action android:name="com.parse.push.intent.DELETE" /&gt;
          &lt;action android:name="com.parse.push.intent.OPEN" /&gt;
        &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;receiver android:name="com.parse.GcmBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND"&gt;
        &lt;intent-filter&gt;
          &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
          &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
          &lt;category android:name="com.JoyDash.Movies" /&gt;
        &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;!--&lt;receiver android:name="com.parse.ParsePushBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"&gt;
        &lt;intent-filter&gt;
          &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
          &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
          &lt;category android:name="com.JoyDash.Movies" /&gt;
        &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;service android:name="com.parse.ParsePushService" /&gt;--&gt;
  
  
  #if UNITY_IOS
          NotificationServices.RegisterForRemoteNotificationTypes (RemoteNotificationType.Alert |
                                                                   RemoteNotificationType.Badge |
                                                                   RemoteNotificationType.Sound);
  #endif
  
              //ParsePush.SubscribeAsync
              Debug.Log("Registration with Parse Push. : " + Application.platform);
              ParsePush.ParsePushNotificationReceived += (sender, args) =&gt;
              {
                  if (Application.platform == RuntimePlatform.Android)
                  {
                      AndroidJavaClass parseUnityHelper = new AndroidJavaClass("com.parse.ParseUnityHelper");
                      AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
                      AndroidJavaObject currentActivity = unityPlayer.GetStatic&lt;AndroidJavaObject&gt;("currentActivity");
  
                      // Call default behavior.
                      Debug.Log("Calling Parse from Unity and Payload is : " + args.Payload);
                      parseUnityHelper.CallStatic("handleParsePushNotificationReceived", currentActivity, args.Payload.ToString());
                      //parseUnityHelper.CallStatic("handleParsePushNotificationReceived", currentActivity, args.Payload.StringPayload);
                  }
                  else if (Application.platform == RuntimePlatform.IPhonePlayer)
                  {
                      //IDictionary&lt;string, object&gt; payload = args.Payload;
  
                      //foreach (string key in payload) 
                      //{
                      //    Debug.Log("Payload: " + key + ": " + payload[key].ToString());
                      //}
                  }
  
              };
  
              //Parse Installation
              Debug.Log("Device Token : " + ParseInstallation.CurrentInstallation.DeviceToken);
              if (ParseInstallation.CurrentInstallation != null &amp;&amp; !string.IsNullOrEmpty(ParseInstallation.CurrentInstallation.DeviceToken))
              {
                  Debug.Log("Device Token : " + ParseInstallation.CurrentInstallation.DeviceToken);
              }
              else
              {
                  //Create a new parse installation
                  //ParseInstallation.CurrentInstallation.SaveAsync().ContinueWith(t =&gt;
                  //    {
                  //        if (t.IsFaulted || t.IsCanceled)
                  //        {
                  //            Debug.Log("Parse installation failed to save.");
                  //        }
                  //        else
                  //        {
                  //            Debug.Log("Parse installation saved successfully.");
                  //        }
                  //    });
  
                  //ParseInstallation.cre
                  Debug.Log("There is no installation data received for this device.. Now subscribing to a channel");
                  ParsePush.SubscribeAsync("Channel01").ContinueWith(t =&gt;
                  {
                      if (t.IsFaulted || t.IsCanceled)
                      {
                          Debug.Log("Subscription of push notification failed.");
                      }
                      else
                      {
                          Debug.Log("Push notification subscribed successfully.");
                      }
                  });
  
  
                  //installation.
              }
  </code></pre>