Quantcast
Channel: Questions in topic: "manifest"
Viewing all articles
Browse latest Browse all 330

Parse push notification doesn't show

$
0
0
Hi, For several days now, I'm trying to send push notifications from the parse system to my android device. I have read parse push notification guide and pepoles's questions and I just can't get this to work. This is my manifest: My pushbehaviour settings: void Awake() { ParsePush.ParsePushNotificationReceived += (sender, args) => { #if UNITY_ANDROID AndroidJavaClass parseUnityHelper = new AndroidJavaClass("com.parse.ParseUnityHelper"); AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject currentActivity = unityPlayer.GetStatic("com.unity3d.player.UnityPlayerNativeActivity"); // Call default behavior. parseUnityHelper.CallStatic("handleParsePushNotificationReceived", currentActivity, args.StringPayload); #endif }; and my installation setup: void Start() { //Parse Installation if (ParseInstallation.CurrentInstallation != null && !string.IsNullOrEmpty(ParseInstallation.CurrentInstallation.DeviceToken)) { Debug.Log("Device Token : " + ParseInstallation.CurrentInstallation.DeviceToken); } else { var installation = ParseInstallation.CurrentInstallation; installation.Channels = new List { "asxas" }; installation.SaveAsync().ContinueWith(t => { if (t.IsFaulted || t.IsCanceled) { Debug.Log("Push subscription failed."); } else { Debug.Log("Push subscription success."); } }); //installation. } } Sorry about my bad language and thank you for reading this. I will very appreciate your help

Viewing all articles
Browse latest Browse all 330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>