我已经在Appcelerator工作室的新项目中设置Android和IOS的推送通知,IOS工作正常,但是androID没有,我的问题是androID设备令牌成功采取并注册但是当我从Appcelerator工作室发送推送IOS成功当AndroID失败时
I’ve enabled this API’s in Google developer console .
and created API key :
and i used the API key in Appcelerator ASC :
我不明白为什么我可以采取AndroID设备令牌,但我无法发送推送通知?
解决方法:
我发现解决方案appcelerator的文档还没有更新
所以你需要做什么
尝试以下示例代码进行设备注册:
https://gist.github.com/MotiurRahman/68bb7aad307901805b5f
然后为AndroID设备配置推送服务:
http://docs.appcelerator.com/platform/latest/#!/guide/Configuring_push_services-section-37551713_Configuringpushservices-ConfiguringpushservicesforAndroiddevices
使用Firebase WEB API KEY
和项目ID
https://console.firebase.google.com/?pli=1
从firebase控制台获取JsON文件和Web API KEY(作为GCM API密钥)的project_number(作为发件人ID).现在为仪表板配置推送通知
http://docs.appcelerator.com/platform/latest/#!/guide/Sending_and_Scheduling_Push_Notifications
总结以上是内存溢出为你收集整理的Appcelerator钛金属推送通知GCM失败?全部内容,希望文章能够帮你解决Appcelerator钛金属推送通知GCM失败?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)