apple-push-notifications

Apple Push Notification Service Statistics(apns)

不羁岁月 提交于 2019-12-05 09:23:59
Is it possible to find information about Apple Push Notification Service usage? How many people are using, and how many people are declining them? Or maybe, somebody already has this sort of information? Apple does not provide a lot of information about how many users actually accept/decline push notifications but you can get a good idea of what's going on by comparing the number of total installs and the number of valid push notification tokens you have ( I'm assuming that since you are interested in analytics you already have a Push server set up ) Push notification tokens are only generated

Apple Push Notification - PHP - SSL operation failed with code 1

淺唱寂寞╮ 提交于 2019-12-05 08:54:32
问题 For the last few days, we are experiencing some strange behaviour with PHP when using sockets to connect to APN servers on our production server. For most of the times, the payload is pushed without any errors and the client receives the notification. However on some cases we start receiving a PHP error (even though we are receiving an error, sometimes the notification is pushed). When we start to see this error, it continues for hours then disappears and PHP continues to work like nothing

didReceiveRemoteNotification:fetchCompletionHandler not being called in background with content-available flag (gets called when connected to XCode)

℡╲_俬逩灬. 提交于 2019-12-05 07:52:56
I'm having a really bizarre issue with push notification. When the app is connected to Xcode (debug build), didReceiveRemoteNotification:fetchCompletionHandler acts like it's supposed to. didReceiveRemoteNotification:fetchCompletionHandler is triggered when push is received when app is in the foreground didReceiveRemoteNotification:fetchCompletionHandler is triggered when push is received when app is in the background didReceiveRemoteNotification:fetchCompletionHandler is triggered when push is received and app is opened via notification center (from push) However, when I build my app on my

ios - local notification not updating badge number when application is closed

倾然丶 夕夏残阳落幕 提交于 2019-12-05 07:24:28
I have noticed that when a local notification is being received in an ios device, the notification appears in the Notification Center but the app badge number is not updated when the app is closed. I need to touch the notification in the Notification Center for the local push message to be transferred to the app. Is this the normal behavior? Can this be solved by using remote push notifications? staticVoidMan You can utilize the applicationIconBadgeNumber parameter in a UILocalNotification object. Basically: localNotificationObject.applicationIconBadgeNumber++; Example: UILocalNotification

If it carries out, how can an iPhone terminal be locked using MDM?

血红的双手。 提交于 2019-12-05 06:49:39
问题 I am using "APNs" of Apple, and "MDM". The list of applications is also acquirable from the iOS terminal using "MDM". But, only the lock of a device cannot be performed. An error message is not displayed. The payload of a success. PUT is carried out to the server. However, an iPhone terminal can be used ordinarily, without being locked. "DeviceLock" of MDM Protocol Reference is being used for the payload. If it carries out, how can an iPhone terminal be locked using MDM? Please let me know.

What if app bundle does not contain a key for the “loc-key” received in push notification?

一曲冷凌霜 提交于 2019-12-05 05:49:52
According to apple documentation , notification payload can carry "loc-key" key which identifies localization string key in app bundle. What will happen if there will be no such key in app's bundle (for instance, when there were updates on the server and new notification types were added)? You will most likely get the default behaviour of NSBundle 's localizedStringForKey:value:table: method which is to return the key when the value can not be found. You can send your message template in loc-key: "%1$@ won the game" with "John" in loc-args will become "John won the game", though you app doesn

didReceiveRemoteNotification:fetchCompletionHandler not called when not attached to xcode iOS 8.0.2

二次信任 提交于 2019-12-05 05:45:40
Here's the problem, when the app is attached to xcode, didReceiveRemoteNotification:fetchCompletionHandler is called. But when i detach it, it's not called even when the notification is received. I attached app again (debug->attach to process) & send the notification, didReceiveRemoteNotification:fetchCompletionHandler called again. Someone could explain why didReceiveRemoteNotification:fetchCompletionHandler was not called when i detach it from xcode ? The app was not force closed. I just open it & put it to background. Tested in iPhone 5 iOS 8.0.2 APNS Sandbox. Thank you. 来源: https:/

APNs duplicate tokens

邮差的信 提交于 2019-12-05 04:50:02
问题 We have a push notification server which holds the data (device tokens) for several different applications. With Apple wanting to stop people using the UDID as identifier, I was looking into changing this server so that it does not rely on UDIDs to identify devices any longer. I understand that the tokens returned by APNs are not globally unique, but rather unique per device. However, when going through our database, I noticed that there are several cases (a few hundred on 750k+ registrations

How to give an app icon a notification badge without a number?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 04:48:12
On page 7 of Apple's Local and Push Notification Programming Guide there is a screenshot of the iPhone desktop, one of the application icons has a badge which does not contain a number - it is just plain red. How is it possible to achieve this? I think what you want to do is not possible with the current notification API. If you want to display the badge on your application icon, you must use the "badge" key in your APNS payload, and the value for this key must be an integer. Even the local notification API has the same limitation, you can change the badge value with the

How secure are apple APNS push notifications?

牧云@^-^@ 提交于 2019-12-05 04:22:29
Does anyone know where the vulnerabilities are in Apple's APN push notification services? We can ensure that our notifications are sent securely to Apple, so we just need to know whether they can be intercepted from that point? Motivation: We have built an iOS messaging app that we are making as a 100% secure solution, with some features that have never been exploited before in security. Apple released the UNNotificationServiceExtension last year, allowing developers to send fully-encrypted notification payloads through APNS and then let the app on the end-user's device itself do the