apple-push-notifications

How to send actionable notifications to iOS with FireBase?

六眼飞鱼酱① 提交于 2019-11-29 06:46:29
We are currently evaluating Firebase as a future push notification service. Is there a way to send actionable notifications to iOS devices? At the moment we use parse to send pushes, we set the "category" parameter in the payload and the additional actions on the notifications are working. We tried to set this parameter in the firebase console or via the firebase rest api, but the notification actions are not working, it seems the payload is somehow different then iOS expects. simsimmal Thanks Malik for the answer. FCM seems to translate the android specific "click_action" property to the iOS

Open app at specified page with Push Notification

早过忘川 提交于 2019-11-29 05:09:13
I am looking for a way to open an app on the page a pushnotification is pointing to. Is there a way to see if I have received any push notification when starting my app? Thanks in advance Check for the launch option keys UIApplicationLaunchOptionsRemoteNotificationKey and UIApplicationLaunchOptionsLocalNotificationKey in the launchOptions-Dictionary given in application:didFinishLaunchingWithOptions: . 来源: https://stackoverflow.com/questions/4615412/open-app-at-specified-page-with-push-notification

Will iOS awake my app when i receive silent push notification?(When app is not in running state)

岁酱吖の 提交于 2019-11-29 04:37:46
Update Question : The requirement is; as soon as I receive silent notification, I want to run a web service and show the one liner in the notification bar. It has to work if the app is killed also. any workaround ? I am trying following method below. I am new to iOS and i struggled with silent push notification,googled a lot and got stuck. Will iOS awake my app when i receive silent push notification when app is not launched(i.e when app is removed from app switcher). my pay load is as { aps: { content-available: 1, sound: "" } } . -(void)application:(UIApplication *)application

iphone Launch Options

只愿长相守 提交于 2019-11-29 04:27:11
im not getting any launch options after a push notification; heres the code i have but non of the NSLogs seem to print in the debug area. UILocalNotification *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; if (localNotif) { NSString *itemName = [localNotif.userInfo objectForKey:@"aps"]; NSLog(@"Custom: %@", itemName); } else { NSLog(@"//////////////////////////"); } when i open the app (via pressing view on the push notification) it goes to the didReceiveRemoteNotification script, im not sure if thats meant to happen.. thanks for reading. Your

Life cycle of app - when app is in terminated and push kit payload comes

女生的网名这么多〃 提交于 2019-11-29 04:11:17
问题 What would be life cycle of app? when app is in terminated state and push kit payload comes. First of all Pushkit delegate methods will work or AppDelegate methods will work. Can someone describe sequence of methods getting called in such scenario? Appreciate your answer. Thanks in advance. 回答1: Life cycle of app - when app is in terminated and push kit payload comes When you receive a push payload then application became active for 20-30 second in terminate state then call following method.

Receiving duplicate push notification ios9

旧巷老猫 提交于 2019-11-29 02:32:58
问题 I am receiving the same push notification twice in iOS9, although it is working fine in iOS8. I have used the following code to register with push notifications: #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { // use registerUserNotificationSettings UIUserNotificationSettings *setting = [UIUserNotificationSettings settingsForTypes:( UIUserNotificationTypeSound | UIUserNotificationTypeAlert

What Happen If a APNS Device Token Expired?

故事扮演 提交于 2019-11-29 02:21:28
According to this forum post Does the APNS device token ever change, once created? The device token might be expire or APNS might change the device token. My question is that whether the APNS will use the expired token for notification if the server send this expired token to Apple? Can APNS use this expired token for another device? I've never encountered an expired device token, so I can't tell you from my personal experience. Nor can I tell you from Apple's APNS documentation, because they don't answer your question (and I read all their APNS docs more than once). Your app and your server

SSL handshake with Apple Push Notification Server via Java

空扰寡人 提交于 2019-11-29 01:58:32
问题 Hello I am trying to send a push message to my device using Java. But I'am allready getting problems when establishing the ssl connection. Here is the code so far: KeyStore keyStore = KeyStore.getInstance("PKCS12"); InputStream key = getClass().getResourceAsStream("apns-dev-key.p12"); char[] c = key.toString().toCharArray(); keyStore.load(getClass().getResourceAsStream("apns-dev-cert.p12"), c); KeyManagerFactory keyMgrFactory = KeyManagerFactory.getInstance("SunX509"); keyMgrFactory.init

iOS Push Notifications - update badge without alert?

痴心易碎 提交于 2019-11-29 01:12:16
问题 Is there a way to update the number in the badge without showing an alert or opening the app? I am writing an app that should always display the current number of unread messages in the icon badge, but I want to do so without displaying any alerts to the user. I am developing for iOS 5.0+. EDIT: To be more clear, I am asking about a way to do this when the app is not running . I want the server to push a new badge number without showing an alert.. Is this possible? 回答1: You can do it. It is

Customizing the iOS permission dialog for push notifications

微笑、不失礼 提交于 2019-11-29 01:03:19
When an iOS app attempts to register for push notifications for the first time, the system pops up a permissions dialog asking the user for permission to receive push notifications. Is it possible to customize the text of this dialog, to explain why these permissions are being sought? No, this is a system dialog which cannot be customized. One workaround that I have seen involves an app bringing up its own custom dialog explaining why it needs a permission. Then immediately afterwards the app requests the permission, bringing up the system dialog. This may be suitable for convincing a user to