apple-push-notifications

APNS notifications not reaching devices enrolled in Apple MDM

痴心易碎 提交于 2019-11-26 19:46:58
问题 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? 回答1: Follow MDM_Protocol pdf very

PHP technique to query the APNs Feedback Server

丶灬走出姿态 提交于 2019-11-26 19:33:56
Can someone clarify what the APNs (Apple Push Notification) wants as far as how you query it? The docs say it starts sending as soon as the connection is made. Does this mean that I don't do an fread() on it? Here's my current code to try and read it. I did NOT put the fread() in a loop as I do not know what response indicates "no more records to read" and I didn't want an infinite loop on my server. <?php $apnsCert = 'HOHRO-prod.pem'; $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); stream_context_set_option($streamContext,

Java Sockets and Dropped Connections

孤街醉人 提交于 2019-11-26 19:32:36
问题 What's the most appropriate way to detect if a socket has been dropped or not? Or whether a packet did actually get sent? I have a library for sending Apple Push Notifications to iPhones through the Apple gatways (available on GitHub). Clients need to open a socket and send a binary representation of each message; but unfortunately Apple doesn't return any acknowledgement whatsoever. The connection can be reused to send multiple messages as well. I'm using the simple Java Socket connections.

How to fix “no valid 'aps-environment' entitlement string found for application” in Xcode 4.3?

独自空忆成欢 提交于 2019-11-26 19:29:12
I've been trying very very hard to create a simple simple iOS app which can recieve push notifications. My only reason for doing this is to establish a procedure for some other team members to use, and have not been able to find an up to date, working version of such instructions elsewhere on the web. Our shop is fairly new to iOS dev, I personally am completely inexperienced with iOS dev and Xcode. I've stumbled through tens of tutorials, articles, and trouble posts from Apple and elsewhere and I feel like I might be nearly there... Here is where I've got to (note I'm using Xcode 4.3 and

Renew Push certificate and keep current App Store App working

邮差的信 提交于 2019-11-26 19:25:26
I have an app on app store, which is using an iOS Provisioning Profile (Distribution) which is expired. This Profile contains Push Certificate that's also expired (and does not appear anymore in the portal). Question 1 : Is there a way to recreate the push certificate and then renew the profile? (I still have the push certificate (expired) on my keychain)? Question 2 : Do I need to re-submit the app to app store with a new profile that contains the new Push certificate? Since the push certificate is expired, I can probably not send notifications to the existing users of the app. The push

How can a web application send push notifications to iOS devices? [closed]

倖福魔咒の 提交于 2019-11-26 19:24:54
I'm working on a web app. How can I send push notifications to iOS users when there is new content? Kris Babic To be more specific, in order for a web application to send push notifications to a mobile device, such as the iPhone, the mobile device must have registered to receive push notifications for a particular application. The registration for push notification is done through a native app and can only be performed through a native app. Once the native app is registered for push notification, it can send the authorization token to the server, which can be used in conjunction with the

Local and Push Notifications in IOS version compatible

主宰稳场 提交于 2019-11-26 19:15:38
问题 I developed local Notifications in iOS 10 . It is working perfectly. But now how should i code local notifications and push notification if user is using iOS 9 and above versions. Can anyone help please? Below is code in iOS 10 import UIKit import UserNotifications @available(iOS 10.0, *) class ViewController: UIViewController,UNUserNotificationCenterDelegate { override func viewDidLoad() { super.viewDidLoad() if #available(iOS 10.0, *) { //Seeking permission of the user to display app

Creating .pem file for APNS?

别等时光非礼了梦想. 提交于 2019-11-26 19:10:41
How do I create a .pem file to be stored in the hosting server for APN payload data? zaph Here is what I did, From: blog.boxedice.com and "iPhone Advanced Projects" chapter 10 byJoe Pezzillo. With the aps_developer_identity.cer in the keychain: Launch Keychain Access from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called “Apple Development Push Services” Right click on “Apple Development Push Services” > Export “Apple Development Push Services ID123″. Save this as apns-dev-cert.p12 file somewhere you can access it. There

iOS Push Notification - How to get the notification data when you click on the app icon instead of notification

末鹿安然 提交于 2019-11-26 18:59:16
问题 Similar to this question: How do I access remote push notification data on applicationDidBecomeActive? But the different is how can you access the notification data when you are in applicationDidBecomeActive and if you have clicked on the app icon instead of the push notification. The flow is: If you click on the push notification then didReceiveRemoteNotification will be triggered, but if you click on the original app icon, only applicationDidBecomeActive will be triggered and

App rejected because of “Missing Push Notification Entitlement”

别说谁变了你拦得住时间么 提交于 2019-11-26 18:44:45
Recently my application got rejected while uploading it. The Apple review team says my app is "Missing Push Notification Entitlements" This is the information they have provided: Missing Push Notification Entitlement - Your app registers with the Apple Push Notification Service, but the application signature's entitlements do not include the required "aps-environment" entitlement. Make sure you have enabled Push Notification Services for this app, and that you have downloaded a Distribution provisioning profile that includes the "aps-environment" entitlement. Earlier versions of my app used to