jQueryMobile、Phonegap 和设备令牌 - iOS
我的应用程序与 JQueryMobile 和 PhoneGap 一起使用...我可以毫无问题地向设备发送推送通知,但我不知道如何将用户帐户与设备令牌关联。我在事件中注册设备令牌:
didregisterforremotenotificationswithdevicetoken
并将设备令牌保存在数据库中。
但问题是我在 HTML 页面中拥有用户登录帐户(使用 jQueryMobile)...并且我不知道如何将 HTML 中的登录页面的用户 ID 与我数据库中的设备令牌关联起来...
任何人都可以解释我如何保存设备的设备令牌并将其关联到用户 ID(例如电子邮件)???我想使用它是因为我只想向一个用户发送通知,而不是向所有人发送通知!
非常感谢你,也对不起我的英语!
I have my app working with JQueryMobile and PhoneGap... I can send Push Notifications without problems to the devices, but I don't know how associate an user account with a device token. I register the device token in the event:
didregisterforremotenotificationswithdevicetoken
and I save the device token in my database.
But the problem is that I have the user login account in a HTML page (with jQueryMobile)... and I don't know how can associate the user id of my login page in HTML with the device token that I have in my database...
Can anybody explain me how can I save the device token of the device and associate to the user id (for example, an email)??? I want to use it because I want to send a notification only to one user, not to everybody!!!
Thank you so much, and sorry for me English!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论