Xamarin的推送通知插件接收消息

时间:2016-01-08 07:16:34

标签: push-notification xamarin.ios xamarin.android xamarin.forms

我已经在Xamarin.Forms上集成了推送通知,使用这个插件:https://github.com/rdelrosario/xamarin-plugins/tree/master/PushNotification在Rails上使用我们自己的Web服务。

我需要做的是将返回的消息正确放入通知中。它到达时目前是空的。 返回的对象是(文档中的默认值):

{
    "key": "value",
    "key2": "[\"array\",\"value\"]",
    "collapse_key": "do_not_collapse"
}

我估计,这是我格式化邮件的地方,但我该怎么做?

void IPushNotificationListener.OnMessage(JObject arameters, DeviceType deviceType)
{
    Debug.WriteLine("Message Arrived");
}

0 个答案:

没有答案