apple-push-notifications

Sending iOS notification through a php script: 'Unable to set private key file'

拟墨画扇 提交于 2019-11-30 17:44:27
问题 I have used the php script from the well known Ray Wanderlich tutorial to send push notifications during development phase. They were triggered properly after I created the pem file (from the p12 and aps_development.cer file) and mentioned the device token in the php script. However, when I am using a pem file which has production p12 and aps_production.cer file, the notification is not even reaching the APNS server. It is showing the below error at the local server end itself. Unable to set

What is the “keyID” when using APNs push service

浪尽此生 提交于 2019-11-30 17:25:54
Usually there are 3 info I need to provide, to use Apple APNs: key, keyId, teamId , like here . I understand key (pem file location) and teamId , but where do I find keyId ? Is this somewhere in https://developer.apple.com ? Is this the bundle ID? key: 'apns.p8', // Path to the key p8 file keyId: 'ABCDE12345', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/authkey/) teamId: 'ABCDE12345', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/) You can find more on : https://eladnava.com/send-push

Are there rate limits on silent push notifications in iOS 7?

瘦欲@ 提交于 2019-11-30 17:15:52
问题 I saw one reference to limits on silent push notifications: "Silent pushes are rate limited—a handful per hour" (From WWDC 2013: http://devstreaming.apple.com/videos/wwdc/2013/204xex2xvpdncz9kdb17lmfooh/204/204.pdf ) I haven't seen this documented anywhere else, and in our experiments we have not seen any such limit. Does anyone know if this is something we need to take into account? All descriptions of regular APNs seem to imply that there is no limit, and while they are not necessarily

Safari push notifications return denied without asking

 ̄綄美尐妖づ 提交于 2019-11-30 17:09:50
问题 Im trying to use the new push notifications in Safari. I'm using the following snippet: var checkRemotePermission = function (permissionData) { if (permissionData.permission === 'default') { // This is a new web service URL and its validity is unknown. console.log("default"); window.safari.pushNotification.requestPermission('https://website.com/','web.com.website.notify',{uid: "TEST"},checkRemotePermission); } else if (permissionData.permission === 'denied') { // The user said no. console.log

Open view controller when receiving remote Push Notification

吃可爱长大的小学妹 提交于 2019-11-30 16:58:41
问题 I'm using storyboard , and I want to open always the same view when user receives remote push notifications, even the app is in background or opened. The view I need to present is four views after the initial view controller set in the storyboard. I read this posts: How can I show a modal view in response to a notification as a new window? (no parent vc) Open a specific tab/view when user receives a push notification So here is my code: - (void)application:(UIApplication *)application

When is didRegisterForRemoteNotificationsWithDeviceToken called?

こ雲淡風輕ζ 提交于 2019-11-30 16:53:59
There are a lot of questions about didRegisterForRemoteNotificationsWithDeviceToken but they all sidestep a very direct question which I cannot seem to find an exact answer to. For an app which is properly set up for notifications in all other ways and has proper network connectivity: when is didRegisterForRemoteNotificationsWithDeviceToken called? Some possible choices might be: Every time the app starts Only after the initial prompt to the user to accept push notifications Something else? The application delegate will call the method upon successful registration of remote notification after

MDM: APNS notification does not reach iPhone

∥☆過路亽.° 提交于 2019-11-30 16:43:19
A notice does not reach a terminal. Please let me know. Hello. Thank you. iPhone 4S iOS 5.1 I wrote the following ruby script. And it performed from the MDM server. However, a notice does not reach an iPhone terminal. Please let me know. A setup by ."mobileconfig" was completed and the topic and the device token have been PUT to the MDM server. It checked that the right information was also acquirable, It is confirmed that renewal of a message or a badge is made to an iPhone terminal in APNs. Only APNs of MDM does not reach an iPhone terminal. I would like to solve this problem. If you please,

How can WhatsApp encrypt Push Notifications on iOS? [closed]

ぃ、小莉子 提交于 2019-11-30 16:41:12
Recently WhatsApp integrated the Signal protocol for End-to-End Encryption for all platforms. I tried it with a friend and it said that the encryption was activated. With the app closed and background tasks disabled on iOS 8, the push notifications from my friend still showed the message. Question: Does WhatsApp encrypt the APNS message? If yes, how do they display the text? Is there a method on iOS for processing push notifications? Thanks in advance! WhatsApp could be using VoIP background mode along with PushKit for solving this problem. VoIP pushes are: delivered directly to the app.

Push Notification not working in production environment after switched from sandbox

五迷三道 提交于 2019-11-30 16:27:42
Hi so I'm very confused at the moment and don't know what to do next. I've spent the last two weeks getting these push notifications to work correctly, and when I finally have it all neat and tidy, I put it into an adhoc distribution bundle and switch the server configurations to the production environment, suddenly nothing works and I have no error messages to go off of. It should work, it should work and it doesn't. So I need some help because I'm lost. possible problems - HOST CONFIG What really helped me get it working in the first place was this tutorial here , the hosting server is

Push Notification not working in production environment after switched from sandbox

[亡魂溺海] 提交于 2019-11-30 16:21:52
问题 Hi so I'm very confused at the moment and don't know what to do next. I've spent the last two weeks getting these push notifications to work correctly, and when I finally have it all neat and tidy, I put it into an adhoc distribution bundle and switch the server configurations to the production environment, suddenly nothing works and I have no error messages to go off of. It should work, it should work and it doesn't. So I need some help because I'm lost. possible problems - HOST CONFIG What