简体   繁体   English

在Phonegap应用中使用Azure推送通知中心

[英]Use azure push notification hub in phonegap app

I have an app which will be receiving push notifications.i have sample app which is designed to work with this scenario.i have completed following steps 我有一个将接收推送通知的应用程序。我有一个专门用于这种情况的示例应用程序。我已经完成了以下步骤

  • Config.xml file origin attribute. Config.xml文件原始属性。
  • javascript code for registering device. 用于注册设备的javascript代码。
  • necessary files js for files included with plugin imported to index.html. 导入到index.html的插件随附文件的必要文件js。
  • google api key has provided to azure.(as im testing this on android) 谷歌api密钥已提供给azure。(因为我在android上对此进行了测试)

I can send test messages using inbuilt debugger in azure notification hub.when i send message it shows message sent successfully.but I'm not receiving any messages. 我可以使用azure通知中心中的内置调试器发送测试消息。当我发送消息时,它表明消息已成功发送。但是我没有收到任何消息。

http://blogs.msdn.com/b/azuremobile/archive/2014/06/17/push-notifications-to-phonegap-apps-using-notification-hubs-integration.aspx http://blogs.msdn.com/b/azuremobile/archive/2014/06/17/push-notifications-to-phonegap-apps-using-notification-hubs-integration.aspx

this is link for sample app. 这是示例应用程序的链接。

Overall, if you don't receive a push with Azure Notification Hubs, you can almost always troubleshoot it using diagnosis guidelines . 总体而言,如果您没有收到Azure Notification Hub的推送,则几乎可以始终使用诊断准则对其进行故障排除。

Regarding the original question, @mzonerz had been able to resolve his issue and posted a detailed blog post about it at windows azure Push Notification sample app with Phonegap . 关于原始问题,@ mzonerz能够解决他的问题,并使用PhonegapWindows azure Push Notification示例应用程序上发布了有关此问题的详细博客文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM