三星Galaxy S4不从Parse.com显示推送通知 [英] Samsung Galaxy S4 Not Displaying Push Notifications from Parse.com
问题描述
我们即将在iOS和功放推出一个新的应用程序; Android的使用Parse.com提供推送通知服务。
We're about to launch a new app on iOS & Android, using Parse.com to provide the push notification service.
我们一直在测试的内部5设备:iPhone,iPad的,Galaxy Tab的银河S3,S4银河
We've been testing on 5 devices internally: iPhone, iPad, Galaxy Tab, Galaxy S3, Galaxy S4
下面是推之一的示例:
{ "deal_id": "ad60b089-6678-42d9-a503-3525d0c8c065", "alert": "Reliable Rentals has a new deal available. Check your favourites now!", "sound": "default", "action": "SS" }
在iPhone / iPad的/ GalaxyTab的/ S3,在接收到推送,当它播放默认的警报声和presents屏幕上的通知。
On iPhone/iPad/GalaxyTab/S3, when the push is received it plays the default alert sound and presents the notification on screen.
但由于某些原因,S4不会显示推或播放声音。我只能想到2说明:
But for some reason the S4 does not display the push OR play a sound. I can only think of 2 explanations:
1)有什么不对的解析code以上。
1) there is something wrong with the Parse code above
2)是具有无论是对这个应用程序或完全
2) there is some setting on the S4 device that has disabled push notifications either for this app or completely
我没有在任何区域(解析或Android)的专家,所以希望市民可能知道我能做些什么来进一步解决。
I am not an expert in either area (Parse or Android) so was hoping the community might know what I can do to troubleshoot further.
PS - 首次计算器海报。如果我的问题不符合本论坛的要求,我道歉。快乐教育的如何/时使用此论坛!
PS - first time StackOverflow poster. If my question doesn't meet the requirements of this forum I do apologise. Happy to schooled on how/when to use this forum!
推荐答案
所以,你可以尝试发送这个例子推消息:
So you can try send this example push message:
JSONObject data = new JSONObject("{\"alert\": \"Message\",
\"title\": \"New push!\"}");
ParsePush push = new ParsePush();
push.setChannel("Mets");
push.setData(data);
push.sendPushInBackground();
这篇关于三星Galaxy S4不从Parse.com显示推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!