apple-push-notifications

device tokens for Apple Push Notifications provider

五迷三道 提交于 2019-12-07 08:26:48
问题 If I'm an Apple Push Notification "provider" for multiple iOS apps can I use the same device token for multiple apps? I'm aware that I need unique SSL certificates for each app. However I'm confused about the device tokens. Example : I have two apps A and B. I want to provide push notifications for both apps. Say I collect a device token T from a user who installs app A. Assume I have unique SSL certificates for both apps. When the same user installs app B can I re-use token T when providing

Apple push notification with device token and UDID

让人想犯罪 __ 提交于 2019-12-07 08:20:31
I am maintenance a project using UDID and device token to implement push notification for iphone. At first we are using UDID to push, but after that Apple reject other apps using UDID (not our app), so we plan to move all things to use device token instead of UDID. But in our server store many UDID from users, we want to continue using UDID with our server and device token for push notification. Can we keep them both in our server? Do Apple allow that, do we have chance to be rejected from Apple team? As far as I know, any app collecting UDID will be rejected. If you need to use something like

notifications push ios: Connection reset by peer

前提是你 提交于 2019-12-07 07:37:35
问题 I’m trying to do a notifications system for apple devices, but I’m getting the following errors when I try to run it on the server: Warning: stream_socket_client(): SSL: Connection reset by peer in /home/empresa/public_html/simplepush/push.php on line 30 Warning: stream_socket_client(): Failed to enable crypto in /home/empresa /public_html/push/push.php on line 30 Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /home/empresa

Single SSL certificate over multiple servers to send Push notifications to same application

怎甘沉沦 提交于 2019-12-07 07:02:02
问题 Is it possible to use single SSL certificate over multiple servers to send Push notifications to same application.We have Client and Server, client will be downloaded from appstore where as server will will be installed by individual customer on their own network. For all customers client application is same, we cannot submit the individual app for every customer. So, is there any limitation by apple on this scenario. 回答1: There is no such kind of limitation by APPLE. What APPLE care is push

Multiple push notifications on 1 device - iPhone

Deadly 提交于 2019-12-07 06:10:52
问题 How to handle multiple push notifications on One device e.g: A user receives a notification saying you have 1 new message from my app. Before he checks that message another message comes in so now he has 2. Well I don't want 2 messages stacked in the notification bar, I want 1 notification saying there are 2 messages waiting. How do I implement this? And also if on device got 5 new notification and user taps last notification then how we got the previous notification userInfo - (void

Register notification in iOS 9

久未见 提交于 2019-12-07 05:21:42
问题 I am using this to register notification : if application.respondsToSelector("registerUserNotificationSettings:") { let types:UIUserNotificationType = (.Alert | .Badge | .Sound) let settings:UIUserNotificationSettings = UIUserNotificationSettings(forTypes: types, categories: nil) application.registerUserNotificationSettings(settings) application.registerForRemoteNotifications() } else { // Register for Push Notifications before iOS 8 application.registerForRemoteNotificationTypes(.Alert |

voip app ios8: is pushkit still best practice?

烂漫一生 提交于 2019-12-07 05:21:36
问题 I am working on an app that needs reliable push messages (like any voip) under ios9. Here it says, that with IOS8+ one should use apns (registerForRemoteNotifications): https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/occ/instm/UIApplication/setKeepAliveTimeout:handler: In the Optimize VOIP Apps document, Pushkit is preferred: https://developer.apple.com/library/ios/documentation/Performance/Conceptual/EnergyGuide-iOS

iOS Push notification issue

空扰寡人 提交于 2019-12-07 02:50:46
问题 I am doing a project in which push notification feature is one of the key feature. It is working fine when I am in the app, I receive notification and handle that notification. But the issue is when I am in background and notification receives I see badge on my app icon and when I click on the icon my app is launching but the didReceiveRemoteNotification method is not called so I am unable to handle that notification. And another issue is some times it shows the notification message in device

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

霸气de小男生 提交于 2019-12-07 02:27:13
问题 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? 回答1: 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

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

℡╲_俬逩灬. 提交于 2019-12-07 02:18:42
问题 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