apple-push-notifications

How to test production push notifications?

冷暖自知 提交于 2019-11-26 22:37:16
问题 Until now I used development push certificate and the push notifications worked great. Now I want to submit my app to Apple so I created a production certificate and set it under "code signing identity" -> "Release" I also placed the .p12 file in my production server. But the push now does not work. Is it suppose to work when I run from xcode? or will it just work when downloading the app from App Store? If so how can I test it? 回答1: The production push will work when you download the app

How to respond to push notification view if app is already running in the background

一笑奈何 提交于 2019-11-26 22:30:28
问题 I have something fairly simple I want to do. I attach a custom piece of data to some push notifications that I handle in -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions I look for the UIApplicationLaunchOptionsRemoteNotificationKey and hey presto there it is. That method only gets called if my app is being launched for the first time. How do I read that same key if my application is running in the background already when the

How to send a silent Push Notification payload

眉间皱痕 提交于 2019-11-26 22:24:17
I just want to know how I can determine what action to do on a silent push: This is the aps that I sent to the client: "aps": { "content-available": 1 } My problem now is when I add type: "Order_Update" to determine that the silent push is for the Order Update to display an alert notification. Dipen Panchasara There are a few options for it! Let's take a small ride to understand all the different payloads and their usage. Simple Payload Displayed in Notification Center : Yes Wakes app to perform background task : No { "aps" : { "alert" : "You received simple notification!", "badge" : 1, "sound

any option to know if apple app get the push notification?

℡╲_俬逩灬. 提交于 2019-11-26 21:53:34
问题 I build xcode app that get push notification, the main problem is that the push notification is very critical for me. so I want to check if the push notification is delivered to the device with the app installed, I understand that if the iphone dosn't have internet connecction / 3G the push notification is not getting to the device. how can I check if the device get the notification or not? how can I check if the APNS successful to deliver the push notification? I want to send sms if the push

Implement PushKit and test in development behavior

允我心安 提交于 2019-11-26 21:47:32
i'd like to implement PushKit service within my app ( Voip app ), but i have following doubt: I see that i can generate only production voip certificate , it works if i try to test voip push notification service on develop device ? This is my implementation test: With this 3 line of code i can get push token on didUpdatePushCredentials callback that i use to save into my server. PKPushRegistry *pushRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()]; pushRegistry.delegate = self; pushRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; Server side i

How to set up push notifications in Swift

£可爱£侵袭症+ 提交于 2019-11-26 21:31:35
I am trying to set up a push notification system for my application. I have a server and a developer license to set up the push notification service. I am currently running my app in Swift. I would like to be able to send the notifications remotely from my server. How can I do this? While the answer is given well to handle push notification, still I believe to share integrated complete case at once to ease: To Register Application for APNS, (Include the following code in didFinishLaunchingWithOptions method inside AppDelegate.swift) IOS 9 var settings : UIUserNotificationSettings =

Apple Push Notification in Background Issue

本秂侑毒 提交于 2019-11-26 20:47:48
问题 I'm using parse.com as my APNs provider for a test app I'm building. I've confirmed that push notifications are working as I have been able to successfully receive alerts when the app is in the foreground. Also, I have the remote-notification value for the UIBackgroundModes key specified in my plist. In my app, I'm wanting to send a user's current location data back to my app-specific parse.com database when a push notification is received. I don't actually care about the notification payload

Does APNS Feedback service no longer exist as per new APIs?

£可爱£侵袭症+ 提交于 2019-11-26 20:02:57
问题 I was going through updated official APNS documentation and it clearly says, All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API. But the new APNs Provider API doesn't seem to have old APNS Feedback Service. They have changed endpoint URLs which doesn't have feedback service endpoint. Also looks the error codes are upgraded now, which includes below error code, Unregistered - The device

APNS (Apple Push Notification Service) reliability

青春壹個敷衍的年華 提交于 2019-11-26 19:55:32
Our app uses APNS to receive Push Notifications. However, our client claims that some of their devices were not receiving notifications and argues to they 'must' make sure the notifications to be delivered 100%. But I have read somewhere that APNS is not 100% reliable and there should be cases which the notifications are not delivered. I'm currently panic at how we could make sure APNS to received anytime. I have read that a case which may APNS not delivered (device may offline). But our test showing that even the device is online (Wifi or 3G), sometimes APNS were not delivered. Is there any

Change push notification sound

送分小仙女□ 提交于 2019-11-26 19:51:58
问题 How can I use a custom sound for push notifications? According to my research and reading, I have found that the payload should have file name that is in the app bundle or in the Library/Sounds folder of the app’s data container. How to put file there? 回答1: Follow Apple documentation for preparing custom sound file for your app. For remote notifications in iOS, you can specify a custom sound that iOS plays when it presents a local or remote notification for an app. The sound files can be in