简体   繁体   English

在Apple推送通知中发送设备令牌

[英]Sending device token in Apple push notification

The tutorials that I have come across for push notification manages the sending of device token along with the data that user sends for web service requests. 我遇到的有关推送通知的教程管理设备令牌的发送以及用户为Web服务请求发送的数据。 My app too uses webservices but for my application, when a record is added to the website, it has to be notified on my app. 我的应用程序也使用Web服务,但是对于我的应用程序,当将记录添加到网站时,必须在我的应用程序上通知它。 So when and how do I send my device token from my iphone app? 那么,何时以及如何从iPhone应用程序发送设备令牌? Please help. 请帮忙。

I'm sending the device tokken to the server every time the user logs in. I'm making a http-request (on wich i add the device tokken) to check the password & email. 每次用户登录时,我都会将要发送的设备发送到服务器。我正在进行http请求(在我添加要发送的设备的同时)以检查密码和电子邮件。 If the entered data is ok, i save the tokken in the database. 如果输入的数据还可以,我会将被令牌保存在数据库中。

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

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