apple-push-notifications

What is the difference between development and production SSL certificates in iOS?

我怕爱的太早我们不能终老 提交于 2019-12-03 11:19:40
This is maybe a strange question but it is really confusing me. Why do we have to create a development and a production SSL certificate for push notifications in iOS? What is the difference between the development and the production certificates? I am developing an iOS app with Push notifications (handled by a self-hosted Parse Server) and when I switch my environment from development to production (with a production certificate), I don't receive the push notifications anymore on my devices. Will it work once I upload this app to the app store (then, it will be in production)? Or can I "test"

APNs push notification with macOS Sierra

你说的曾经没有我的故事 提交于 2019-12-03 11:02:11
I'm trying to send my phone a push notification using the simple PHP tool which connects to ssl://gateway.push.apple.com:2195 , but the connection fails with the following errors: Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in <Users/.../file.php> on line 30 Warning: stream_socket_client(): Failed to enable crypto in <Users/.../file.php> on line 30 Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in

MDM push certificate creation

烂漫一生 提交于 2019-12-03 10:17:56
问题 I'm interesting in creation of PushCertWebRequest (this is from apple documentation) I have found a lot of docs how to do this for 3rd party vendors like Air-watch and so on, but they skip last step where they are working with your .p12 certificate. I mean process when you should create PushCertWebRequest and upload it to https://identity.apple.com/pushcert So my question is how to create a Push Certificate Request plist. the example of this plist should be following (this is from apple doc)

Push notification and view button action[iphone sdk APNS]

牧云@^-^@ 提交于 2019-12-03 10:15:43
I am developing a Push Notification enabled application for Iphone. In My application I have two List View (UITableView) 1st for Category List and the 2nd is Contents List. User clicks the desired category then the contents related to that category will be displayed then user will choose the contents and the contents will be displayed in detail view(generally a UIWebView). Push notification is successfully coming in my application. My requirement is:- After VIEW button of Push alert is clicked application will directly display a particular detail view (UIWebView)[Omitting category and contents

Is there any reason to use Google GCM vs Apple messaging for push notifications?

眉间皱痕 提交于 2019-12-03 09:39:04
问题 Google has this Google Cloud Messaging info for integration with iOS What is the difference between using Google Cloud Messaging or iOS for the same purpose? Is one more efficient than the other? Is battery or network load different? 回答1: Google Cloud Messaging is originally a platform to send notification for Android. They added an iOS SDK, but using their SDK on iOS means that you are using both GCM and Apple Push notification service: Push for iOS device => Google Cloud Messaging => Apple

global leak errors in mocha

只谈情不闲聊 提交于 2019-12-03 09:21:40
I was trying to unit test the apple push notification library when I got a global leak error trying to open up an APN connection. Is that a configuration error on my part or an error in node-apn or mocha? I'm not sure I understand what checkGlobals is doing... is it just checking to see if any global variable are being set? 0) Feed "before all" hook: Error: global leak detected: hasCert at Runner.checkGlobals (/usr/lib/node_modules/mocha/lib/runner.js:96:21) at Runner.<anonymous> (/usr/lib/node_modules/mocha/lib/runner.js:41:44) at Runner.emit (events.js:64:17) at /usr/lib/node_modules/mocha

iOS - Handling pushed notifications with APNS

断了今生、忘了曾经 提交于 2019-12-03 08:58:49
问题 Considering that I receive a pushed notification on my iPhone. What happens: If the application is started: is there a way to get the payload? Do I see the notification on my screen? If the application is not started, is there a way to get the payload? Thx for your answers 回答1: First of all push notifications are not “strong”, if you simply let a notification sit for long enough (e.g. phone turned off for many days) it will get discarded. You need to do some custom back-end processing to

iPhone Push Notifications Custom Sound, no Vibrate in silent mode?

浪子不回头ぞ 提交于 2019-12-03 08:54:44
So, I have Push Notifications working fine to my app with Custom Sounds. However, when my iPhone is in silent mode, and I send a push notification with a custom sound, the sound obviously does not play, but there is also no vibration. If I send a push notification with a sound="chime" or something that doesn't exist like that, the iPhone's SMS notification sound plays as expected, and in silent phone, it vibrates, as expected. What am I doing wrong here? In case anyone else runs into this, I figured it out finally. It's actually on Apple's end. If you send out a push notification with a sound,

Why registering for push notifications every time a user launch an app?

≯℡__Kan透↙ 提交于 2019-12-03 08:52:04
问题 In the Apple documentation you can find the following sentence : An application should register every time it launches and give its provider the current token. It calls registerForRemoteNotificationTypes: to kick off the registration process. So when I implemented the push notification in my app I had to register the device, and I did what they said in that documentation: registering every time a user launch my app. The token that I receive from the APNS is always the same for a given user.

FCM behavior when offline for iOS

匆匆过客 提交于 2019-12-03 08:46:13
I'm having trouble figuring out how FCM behaves when I send a notification to an iOS device that is offline (e.g. in airplane mode, or turned off). The documentation on the time_to_live property mentions that Currently, time_to_live is not supported for notification messages on iOS. but doesn't provide an explanation of what is done instead. I've tried testing it, and it seems like a push notification sometimes goes through, and sometimes does not, regardless of what I set the time_to_live property to be, although I'm not sure if that's due to throttling or something else happening on the FCM