任何购股权知道苹果的应用程序得到推送通知? [英] any option to know if apple app get the push notification?

查看:113
本文介绍了任何购股权知道苹果的应用程序得到推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立X $ C $ç应用程序,得到推送通知,主要的问题是,推送通知是对我来说非常重要。
所以我想检查是否推送通知传送到安装了应用的设备,据我所知,如果iPhone不到风度有互联网connecction / 3G推送通知是没有得到设备。

I build xcode app that get push notification, the main problem is that the push notification is very critical for me. so I want to check if the push notification is delivered to the device with the app installed, I understand that if the iphone dosn't have internet connecction / 3G the push notification is not getting to the device.

我怎么能检查设备是否得到通知或没有?
我怎么能检查是否成功APNS交付推送通知?

how can I check if the device get the notification or not? how can I check if the APNS successful to deliver the push notification?

我想发短信,如果推送通知未交付给设备,所以我想这个想法得到通知事件时,它的推送通知开放,并请求发送到我的服务器,这样我就可以知道是否推送通知是成功实现与否。主要的问题是,用户需要每次他得到通知,并在晚上它是一个问题的时间打开应用程序。所以这个选项不适合我。

I want to send sms if the push notification is not deliver to the device so I think about the idea to get the notification event when it's open by the push notification, and to send request to my server so i can know if the push notification is successful deliver or not. the main problem is that the user need to open the app every time he get the notification and in the night it's a problem. so this option is not good for me.

我检查反馈服务器推送通知,但我不觉得如果推通知送达或我可以得到任何信息,并不

I check the feedback server push notification but i don't find any info that I can get if the push notification is delivered or not

任何想法??

推荐答案

通过iOS7你有一个所谓的新方法
    应用:didReceiveRemoteNotification:fetchCompletionHandler:
这你很可能使用你的任务。从<一个href=\"https://developer.apple.com/library/ios/documentation/uikit/reference/uiapplicationdelegate_protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/application%3adidReceiveRemoteNotification%3afetchCompletionHandler%3a\"相对=nofollow>苹果的文档:

With iOS7 you have a new method called application:didReceiveRemoteNotification:fetchCompletionHandler: which you probably could use for your task. From Apple's Docs:

实现此方法。
  ...
  当推送通知到达时,系统将显示通知给用户,并
  启动在后台应用(如果需要的话),以便它可以调用此方法。用这个
  方法下载相关的推送通知的任何数据。当你的方法做,
  调用处理程序参数块。

Implement this method if your app supports the remote-notification background mode. ... When a push notification arrives, the system displays the notification to the user and launches the app in the background (if needed) so that it can call this method. Use this method to download any data related to the push notification. When your method is done, call the block in the handler parameter.

与应用:didReceiveRemoteNotification:方法,它是只有当叫
  您的应用程序正在运行,无论系统调用您的应用程序的状态,此方法。

Unlike the application:didReceiveRemoteNotification: method, which is called only when your app is running, the system calls this method regardless of the state of your app.

这篇关于任何购股权知道苹果的应用程序得到推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆