jQueryMobile, Phonegap and Device Token - iOS

浪子不回头ぞ 提交于 2019-12-06 09:53:35

问题


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!

来源:https://stackoverflow.com/questions/9022983/jquerymobile-phonegap-and-device-token-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!