Tag: phonegap pushplugin

GCM registrationId在phonegap推送插件没有收到

几天前我在使用phonegap push插件的时候遇到了APNS令牌而不是GCM令牌的问题 。 那么,我改变了设置,我已经把发件人ID在[ios]块,重新编译应用程序。 现在,我根本就没有在iphone上得到任何regustrationId。 它仍然在Android上正常工作。 谁能告诉我什么可以是一个问题? 这里是插件的设置: var push = PushNotification.init({ android: { senderID: "8225….8910" }, ios: { senderID: "8225….8910", alert: "true", badge: "true", sound: "false" }, windows: {} }); 而这个事件从未被称为: push.on('registration', function(data) { $.ajax({ url: '/authentication/ajax-register-gcm-token/', data: {token: data.registrationId}, success: function (json) { alert('Phone registered' + data.registrationId); } }); });

应用程序未运行时,PUSH通知期间,MFP应用程序正在轻敲

当应用程序没有运行时(即使在后台)点击推送通知时,我遇到应用程序崩溃。 如果应用程序在后台运行,应用程序崩溃不会发生。 Worklight版本是7.1,iOS版本是8.1.3。 对于推送通知注册和接收我使用Push插件https://github.com/phonegap/phonegap-plugin-push与Worklight生成的AppDelegate合并。 如果需要,我可以发送我的源代码。 从崩溃日志中我发现exception发生在Push.m中:3 cmoapp 0x10018b2a4 – [push dispatch:](Push.m:227)4 cmoapp 0x10018ad48 – [push dispatchSelector:](Push.m:204) 是否有可能从你得到Push.m源代码来理解为什么应用程序崩溃? 任何帮助,将不胜感激。 谢谢。

带有iOs的Phonegap推送通知插件

我正在使用phonegap-plugin-push将推送通知发送到Android设备。 我想弄清楚如何发送通知给IO。 我已在https://developers.google.com/mobile/add?platform=ios&cntapi=gcm&cnturl=https:%2F%2Fdevelopers.google.com%2Fcloud-messaging%2Fios%2Fclient&cntlbl=Continue%20Adding%20GCM%注册20Support&%3Fconfigured%3Dtrue 我在Android客户端应用程序中使用相同的令牌: var push = PushNotification.init({ android: { senderID: "5993…475" }, ios: { alert: "true", badge: true, sound: 'false' }, windows: {} }); push.on('registration', function(data) { $.ajax({ url: '/save-token/', data: {token: data.registrationId}, success: function (json) { } }); }); 当我得到客户的令牌后,我尝试发送推送通知: $to = ModelGcmTokens::getInstance()->getToken($userId); $API_KEY = 'AIzaS…HcEYC346zQ'; $message = array( 'data' => array( 'title' […]