apple-push-notifications

IPA created via Xcode bot fails to run for APNS but runs if built manually via Xcode itself or built as an archive by Xcode

萝らか妹 提交于 2019-11-27 21:02:09
问题 I have a CI build machine running Xcode server and using a bot to generate a build, however the .ipa built via the bot is not being entitled to register for the APNS token. Specifically, didFailToRegisterForRemoteNotificationsWithError gets called and there is a runtime warning of ""No valid 'aps-environment' entitlement string found for application". However if I build the app on a separte development PC, or I build it actually on the CI machine independently of the bot then everything is

APNS + PHP “stream_socket_client(): Failed to enable crypto”

拈花ヽ惹草 提交于 2019-11-27 20:48:40
问题 I'm having trouble with using APNS with PHP and getting the following message: stream_socket_client(): Failed to enable crypto The problem only happens sometimes, and other times it would actually send the push. Since I have the test script on a loop of 10 iterations, I would sometimes get this: stream_socket_client(): SSL: Connection reset by peer I'm testing using the sandbox server tls://gateway.sandbox.push.apple.com:2195 Here is what I tried: I tried to reissue the PEM and all

Does APNS Feedback service no longer exist as per new APIs?

旧巷老猫 提交于 2019-11-27 20:18:05
I was going through updated official APNS documentation and it clearly says, All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API. But the new APNs Provider API doesn't seem to have old APNS Feedback Service. They have changed endpoint URLs which doesn't have feedback service endpoint. Also looks the error codes are upgraded now, which includes below error code, Unregistered - The device token is inactive for the specified topic. So aren't we suppose to call the APNS Feedback service

Why not use development provisioning instead of ad hoc?

大兔子大兔子 提交于 2019-11-27 19:49:39
问题 I was under the impression that when you use a development provisioning profile for a build of an app, only the specified developers can deploy that build to a phone. But I just deployed a build that uses a development profile to a phone using Xcode Organizer, even though I'm not one of the valid developers for that profile. One of my colleagues, who doesn't even have Xcode installed, did the same with his phone using iTunes. In that case, why not use a development provisioning profile for

How to Renew Push Notification Services Certificate [duplicate]

梦想的初衷 提交于 2019-11-27 19:48:07
问题 This question already has answers here : Renew Push certificate and keep current App Store App working (4 answers) Closed 5 years ago . I am pretty new to IOS development and honestly don't know much about certificates, except for the part that they are needed for the application to be posted on Apple store. My company has few apps on Apple Store, and I got an email saying, "Your Apple Push Notification Service Certificate will expire in 30 days.", for one of the applications. Now, I am not

Is the APN Device Token unique to each individual app?

大兔子大兔子 提交于 2019-11-27 19:43:52
问题 I have two apps on the iTunes store - both implement push notifications. While I was testing sending notifications to these production apps, I noticed that a push intended for app A was titled and opened app B. Both of these apps are installed on the same phone. I looked in my device table and saw that the device Tokens (and of course, the Device ID) listed for the two apps were both the same. As required, I am using two different certificates on the server - one for each app. I sort of

APN custom notification sound issue

拈花ヽ惹草 提交于 2019-11-27 19:30:21
问题 I have remote notifications setup and working fine. I however have to play a custom sound when a notification is received (when app is NOT in foreground). I have added a file called customSound.wav to my app bundle and made sure "add to targets" is selected when i drag and drop it into my project (is this the correct way?). Server-side: the same file name has been specified as "sound": "customSound.wav". In my didReceiveRemoteNotification i am printing the userInfo dictionary and it is coming

Can we send push notification to APNs from iOS device?

左心房为你撑大大i 提交于 2019-11-27 19:30:20
问题 I want to send push notification from a iOS device to another iOS device without using backend server. Is it possible for an iOS device to act like a server and send push notification to APNs server?. Thanks in advance. 回答1: Theoretically you can send Apple Push Notifications from a device directly to another device. All you need are the push certificate of the app, the device token of the device you are sending the notification to, and code that establishes a secure TLS connection to the

APNS notifications not reaching devices enrolled in Apple MDM

你说的曾经没有我的故事 提交于 2019-11-27 19:12:05
Apple MDM is used. It is MDM using APNs. The topic of mobileconfig is the same as the thing of Subject of APSP-XXX.pem. The character string of a device token and PushMagic reached the MDM server after the setup of mobileconfig. I sent wording of a telegram for device tokens using APNs. It is replacing by the character string of PushMagic. Although {"mdm":"xxxxxxxxxxxxx-xxxx-xxxx-xxxx"} is sent via APNs from the MDM server, iPhone is not reached. Why is it? Follow MDM_Protocol pdf very carefully. If you are following this link: http://www.softhinker.com/in-the-news/iosmdmvendorcsrsigning Then

Handling push notifications when app is not running (App is Killed)

假如想象 提交于 2019-11-27 19:04:29
问题 My problem seems to be duplicate of this one,but it's not. While application is killed and not running in the background, if I receive push notification and clicked the notification banner, it works fine. "userInfo" isn't empty and application handles the notification. BUT if i dismiss the notification banner and open the app via clicking the application icon, this "userInfo" returns nil. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *