apple-push-notifications

How do I check if an iOS distribution provisioning profile has push notifications enabled?

人走茶凉 提交于 2019-12-21 03:54:12
问题 I have an app which was supposed to have push notifications enabled, but for some reason doesn't have them. I've seen other people download and install the app, and it doesn't even prompt them for permission to send push notifications. As expected, this app doesn't appear in their Settings > Notifications. However, on my iPad, I am able to receive push notifications from this app, and it does show up on my Settings > Notifications. I have deleted and reinstalled the app to make sure I had the

iOS 13 - silent push notifications are no longer reliable

十年热恋 提交于 2019-12-21 03:48:15
问题 iOS 13 changes: Change 1: In iOS 13 Beta 6, a silent remote notification (AKA Background Notification) with priority 10 is no longer handled by the OS and dropped. This was documented in the past but never enforced. Doc: It's an error to specify this priority (10) for a notification whose payload contains the content-available key. Log: error 14:11:19.224387 +0300 dasd Not Supported: High-priority silent push. (App=) default 14:11:19.224713 +0300 dasd Daemon Canceling Activities: {( com.apple

How can I cancel or stop push notification from a client?

随声附和 提交于 2019-12-21 03:26:19
问题 I have a webserver that sent a client a push notification. The client can intercept the push notification with UNNotificationServiceExtension on iOS 10 and change the content. Now I want to cancel a push notification from showing on client side on certain notifications. How do I do that? I tried to do self.contentHandler(nil); but it didn't work. How to do it? 回答1: It look like it might not be possible, but not sure. From the docs: You can modify any of the content from the original request.

FCM behavior when offline for iOS

帅比萌擦擦* 提交于 2019-12-21 02:47:23
问题 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

Some Devices Not Receiving Apple Push Notifications

可紊 提交于 2019-12-20 21:00:38
问题 I am using Apples iOS Enhanced Notification Format to send push notification in bulk, and using the PHP solution described in this post: https://stackoverflow.com/a/10059000/300129 The experience at this point is that when I send a push notification, some devices are receiving the message and some devices are not. The results are inconsistent. Sometimes device X will receive a notification and sometimes device X will not. I am logging everything and I am not getting any error responses. Any

Apple MDM push error, but only to some iOS devices

◇◆丶佛笑我妖孽 提交于 2019-12-20 17:57:16
问题 We have error with MDMpush on some iPhone devices: Jul 30 17:52:46 Mirnas-iPhone apsd[49] : : Stream error occurred for : Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’-t -b-e -c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-s-e-t -b-y -p-e-e-r-" -U-s-e-r-I-n-f-o-=-0-x-1-4-3-5-4-0 -{-} All devices are the same, same iOS version, but on 50% of devices we have this error. On other devices push is working perfectly. Devices with this problem checks in without problem during MDM

Apple MDM push error, but only to some iOS devices

拜拜、爱过 提交于 2019-12-20 17:57:09
问题 We have error with MDMpush on some iPhone devices: Jul 30 17:52:46 Mirnas-iPhone apsd[49] : : Stream error occurred for : Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’-t -b-e -c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-s-e-t -b-y -p-e-e-r-" -U-s-e-r-I-n-f-o-=-0-x-1-4-3-5-4-0 -{-} All devices are the same, same iOS version, but on 50% of devices we have this error. On other devices push is working perfectly. Devices with this problem checks in without problem during MDM

iPhone best method to achieve device-to-device communication

北城以北 提交于 2019-12-20 15:29:38
问题 What would be the best method to achieve realtime device to device communication within an application? I've been experimenting with the Apple Push Notification Service but find it spotty at best for realtime messaging. Is there a way to utilize sockets for this or am I just stuck into using the APNS? 回答1: If you are a beginner, use GameKit. When you get sick of that, use AsyncSocket. GameKit is so simple a child can use it; AsyncSocket is probably the most beautiful library in all of

How to know all devices tokens to send push notification (APNS) in a loop?

半腔热情 提交于 2019-12-20 15:24:51
问题 I'm trying to use a php code to send to all tokens who downloaded my iPhone application. Could you tell me how to send to multiple devices and how to get into a loop of devices tokens? this is my code: <?php $deviceToken = ''; // HERE I CAN SEND TO ONE DEVICE // Passphrase for the private key (ck.pem file) // $pass = ''; // Get the parameters from http get or from command line $message = $_GET['message'] or $message = $argv[1] or $message = 'MY NOTIFICATION BODY'; $badge = (int)$_GET['badge']

iOS: Mobile Device Management

不羁的心 提交于 2019-12-20 14:51:11
问题 I am little confused about the MDM, wish that someone could help me here. I have studied the docs from the Apple website regarding the iOS MDM,but still I feel puzzled ,I have some questions. Whether MDM server is communicating APNS every-time when it needs to execute command ? Is it very complex to setup our own MDM server and how to setup our own MDM server ? Thank you in advance. 回答1: 1) the general idea is that you send one request via APNS and then respond with a command when the device