Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

What form does the message come in for PushSharp, and how to parse it?

$
0
0

The iPhone app I built is able to register and save the push id to my server online. I am able to successfully send a message to my app. However, what code is next is really frustrating me (ie what to do with the push message when it arrives in the app).

Is ReceivedRemoteNotification the method to add my push reading code?

//This method is in the iOS example. public override void ReceivedRemoteNotification (UIApplication application, NSDictionary userInfo) { Console.WriteLine("Received Remote Notification!"); }

Unlike the Android PushSharp example, the iOS PushSharp example does not include OnMessage or similar method examples to parse the incoming push message.

I believe the message for iOS is the same as Android, right (JSON)? It is in the form of JSON text that is sent to the app to parse, right? My Android app works great. Im just stuck on trying to read the push message sent to the iOS app.

Thanks in advance.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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