apple-push-notifications

Apple Push Notification Feedback Service - how frequently does it check

帅比萌擦擦* 提交于 2019-12-03 08:17:18
问题 I have been able to successfully create push notifications and I have also received responses from the feedback service, so I am confident that my configuration is correct, but I was wondering, how long after a device has been made inactive, will it be picked up by the Apple Push Notification Service. When I first polled the feedback service, I received details on devices which were inactive several days ago. Now, while testing, when I uninstall the application and occasionally poll the

How to handle multiple push notifications with user data arrived at different times?

冷暖自知 提交于 2019-12-03 08:14:24
My app is receiving APNs sent from server to Apple backend. Naturally a user may not open the app once a notification arrives to user's device. In meantime my server may push more notifications. They all contain some user data that is important when a notification is processed. So how to deal with it? iOS won't bundle and give me a batch, will it? Here are ways how I am going to tackle it, none of which is simple. Server keeps track of not seen data and upon arriving a new request always sends a batch of all new notifications, reflecting the count as badge count. Client is opened by taping on

Format APNS-style JSON message in Python for use with Amazon SNS

时光怂恿深爱的人放手 提交于 2019-12-03 07:56:23
问题 I'm creating an iOS app, and for our push notifications, we're using Amazon's Simple Notification Service (SNS). SNS is wonderful, but the documentation is pretty sparse. I'm using boto, Amazon's Python library, and I've figured out how to send plain-text push notifications: device_arn = 'MY ENDPOINT ARN GOES HERE' plain_text_message = 'a plaintext message' sns.publish(message=plain_text_message,target_arn=device_arn) However, what's not clear from the documentation is how to create an an

Certificate being rejected by Apple

最后都变了- 提交于 2019-12-03 07:42:23
问题 While configuring certificate for Push Notification on my ios build of cordova project using OneSignal, the certificate is getting rejected every time I'm trying to configure it. I've followed steps mentioned in https://documentation.onesignal.com/docs/generate-an-ios-push-certificate I've tried using OneSignal Provisionator Tool, and generated certificate using KeyChain access as well without any result. 回答1: You can test APNS connection with this script: https://gist.github.com/greencoder

didRegisterForRemoteNotificationsWithDeviceToken never called on specific device [duplicate]

余生长醉 提交于 2019-12-03 07:08:03
问题 This question already has answers here : didRegisterForRemoteNotificationsWithDeviceToken not called in ios8, but didRegister…Settings is (11 answers) Closed 3 years ago . First of all, I am on iPhone 6 Plus/iOS 8.1 and I've tried everything here: why didRegisterForRemoteNotificationsWithDeviceToken is not called Still no avail. To summarize: I've checked my bundle identifier matches the one in provisioning profile/development portal I've created a new development push APNS certificate I've

How to open port 2195 in iptables CentOS 6 for activating the APNS

二次信任 提交于 2019-12-03 07:01:03
问题 I tried this solution: iptables -I OUTPUT -p tcp --dport 2195 -j ACCEPT /etc/init.d/iptables stop /etc/init.d/iptables start but still can't access the port. If there are more ports that I have to open for APNS let me know. 回答1: How about: iptables -A INPUT -p tcp --dport 2195 -j ACCEPT service iptables restart This may help too. 回答2: See my anwser here: https://stackoverflow.com/a/25229943/1472048 For CentOS 7, you should use "firewall-cmd" command like so: firewall-cmd --add-port=2195/tcp -

How to manage iOS apns token changes

我怕爱的太早我们不能终老 提交于 2019-12-03 06:37:37
I had an issue where a user started receiving double notifications after uninstalling and reinstalling my app, as the device sent to my server 2 different APNS tokens - one from the first installation and the other after reinstalling the app. Since the tokens were different I could not know this is the same device. Until iOS 9 came out, every time I uninstalled and reinstalled the app, I always got the same APNS, so it was easy to know that this is the same device the user used as before. Since iOS 9, it seems that the APNS token is changed on every installation. My question is how to tell if

How to generate valid APNS Certificate (.p12) for use in GCM for iOS?

房东的猫 提交于 2019-12-03 06:30:24
问题 I am trying Google Cloud Messaging sample app for iOS platform. https://developers.google.com/cloud-messaging/ios/start To generate GoogleServices-Info.plist APNS development and production certificates are needed (PKCS#12 file format). I have created .p12 file in MAC KeyChain Access (bundling both APNS dev certificate and private key). But when uploading the .p12 file, it says it is not in valid format (The certificate must be a valid PKCS12 file). 回答1: Here's my solution, without the

Delivering MDM DeviceLock Payload

白昼怎懂夜的黑 提交于 2019-12-03 06:10:00
问题 We were able to get an response with Status as Idle after send the first payload as mdm:. Now we want to send a simple device lock payload. we followed the exact same process to send the payload but the response returned was blank. We are following the certificate use as follows: 1. On the MDM server, To send mdm commands we use MDM Vendors APNS certificate with identifier as com.apple.mgmt.myapp.(This identifier is set as topic in configuration profile). 2. In the configuration profile, we

Using PhoneGap/Cordova on iOS with external URL

非 Y 不嫁゛ 提交于 2019-12-03 06:08:10
问题 I want my phonegap/cordova app to load an external page and nothing local. Now that i do that , however my plugins (javascript) dont work because they are called from the local index.html. What do i do in this case? I should put the plugins on my external URL and load them on the external index.html? Also i should also load there the cordova-2.5.0.js ? And if this is the only way , what happens if i want to load an external page that i dont own the server , but i would like to have push