jQueryMobile、Phonegap 和设备令牌 - iOS

发布于 2024-12-29 10:22:11 字数 400 浏览 3 评论 0原文

我的应用程序与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文