apple-push-notifications

Multi line title in push notification for iOS

為{幸葍}努か 提交于 2019-12-23 23:19:22
问题 I'm integrating FCM for an app which has both iOS and Android version. Currently, for iOS, I want to send title in multiple lines. How do I do this? I'm trying out using Firebase console to test. But nothing seems to work for me. I tried with these \n <br/> \\n \r\n as suggested in this post. But nothing really worked. I basically want the first 2 lines of the notification to be in bold. Any help much appreciated. 回答1: The 1st line in bold you see is a notification Title, the second the

How to find out when a CloudKit Subscription is deleted?

扶醉桌前 提交于 2019-12-23 23:06:22
问题 I am using CloudKit in my iOS application. In my application, whenever user modifies some data, I update the CloudKit private db so that other devices of the user can also get updated. This syncing mechanism can be enabled/disabled by the user. When user enables syncing, I create a subscription and push the local data to CloudKit. If the user has logged on to other devices, they start getting remote notifications about changes to the private database as expected. The application shows a

Notification service extension - hide previous notifications

岁酱吖の 提交于 2019-12-23 22:27:13
问题 Take, for instance, a messaging app that only presents notifications with in this format: You have X new messages When the user receives a message, the app will present a notification: You have 1 new message When it receives a second message, a new notification will be shown: You have 2 new messages Ideally, after receiving the second notification, the first one should be cancelled/hidden, as the user has only 2 new messages, instead of 1 + 2. If notifications are locally presented using

Migrate to iOS VoIP push notifications

余生颓废 提交于 2019-12-23 20:13:27
问题 We have a VoIP app where we are currently using standard push notifications. We would like to update to using PushKit and VoIP push notifications. I'm a bit unsure how to migrate from our current standard APNS setup to the new. Questions: 1) Will our current APNS production certificate be able to send push messages to new VoIP clients? 2) Will our new VoIP push certificate be able to send push messages to existing, standard APNS apps (tokens)? 回答1: Please do refer pushkit demo https://github

iOs Push Notifications

故事扮演 提交于 2019-12-23 17:52:45
问题 Is there a way to know on the device or by using apple feedback service that the use has gone ahead and turned the Notifications off for the specific application by going into Settings->Notifications->MyApp and turning everything off? I need a programmatic way to do this either in the device itsels using Objective-C or by using push feedback service. thanks to all. 回答1: Yes you can use this: UIRemoteNotificationType enabledNotifications = [[UIApplication sharedApplication]

Can't register for push notifications while using production certificate only

若如初见. 提交于 2019-12-23 16:42:02
问题 Push notifications are working fine when using development certificates. When I switched to a production certificate in my ad-hoc distribution the app fails to register for push notifications. In the UIApplicationDelegate, neither didRegisterForRemoteNotificationsWithDeviceToken nor didFailToRegisterForRemoteNotificationsWithError get called. Additionally when I took a look at the device logs I found this: Sep 30 12:47:09 Heshams-iPad amfid[483] <Error>: entitlement 'aps-environment' has

How to prevent a notification disappear from notification center when another one is opened? iOS

我们两清 提交于 2019-12-23 13:22:34
问题 I'm developing an app that receives push notifications. This push notifications, each one contains valuable information that is showed up when the user opens the app from it. My problem is that if the user receives more than one notification, if the user taps it and open the app, all the other ones disappear from the notification center and I lost all the other important information. I want to be able to leave/prevent the notifications from disappearing from the notification center in order

How to remove specific remote notification in the notification center

南笙酒味 提交于 2019-12-23 13:14:02
问题 We all know that this method [UIApplication sharedApplication].applicationIconBadgeNumber = 0; could remove all remote notifications of our application from the notification center. However, for some reason, I want to remove the one which user taps on the notification center, and leave the others. Does it have any method to do it? 回答1: If you're simply looking to remove one number from the badge number: [UIApplication sharedApplication].applicationIconBadgeNumber = MAX([UIApplication

Displaying alert from app delegate before displaying alert from viewDidload

旧街凉风 提交于 2019-12-23 11:57:43
问题 I am attempting to display the message contained within a push notification through the app delegate as outlined in the parse.com documentation. The problem I am having is that in my viewdidload method for my first view controller, i am presenting an alert which the user MUST see before they use the app. How can I call the method from my app delegate after the user sees the Alert from the viewdidload method? EDIT: So i have, as suggested in the comments, added a global Variable which i set to

What is the number of persistent connections to APNS allowed?

喜你入骨 提交于 2019-12-23 09:19:26
问题 I am trying to write a server side code for sending push notifications for my applications. As per Apple recommendation, I am planning to retain the connection and send push notification as required. Apple also allows opening and retaining multiple parallel connections for sending push notifications. "You may establish multiple, parallel connections to the same gateway or to multiple gateway instances." For this purpose I would like to maintain a connections pool. My question is what is the