apple-push-notifications

iOS- Apple push notification resend from APNS

为君一笑 提交于 2020-01-01 10:27:31
问题 From Apple's document I understand that if the device is offline, the APNS holds the last notification and sends it to the device when the device is back online. Is there is any mechanism to avoid that resending? 回答1: The answer is NO Here is what apple says about it, If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available. Only one recent notification for a particular

iOS 8 Remote notifications - When should I call registerForRemoteNotifications()?

十年热恋 提交于 2020-01-01 08:47:16
问题 As the apple's official info page about push notification states: "Device tokens can change, so your app needs to reregister every time it is launched ." I trying to understand what they meant by "every time it is launched". Does it mean I have to call it in the AppDelegate, in didFinishLaunchingWithOptions() like so: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { application.registerForRemoteNotifications() return

didRegisterForRemoteNotificationsWithDeviceToken called twice?

谁说我不能喝 提交于 2020-01-01 08:19:08
问题 Somewhat similar to When is didRegisterForRemoteNotificationsWithDeviceToken called?. When the user first installed the app and it prompts whether to accept notification, will didRegisterForRemoteNotificationsWithDeviceToken be called if the user accepts it? I'm currently calling registerForRemoteNotificationTypes after the user successfully signs in or creates an account. In subsequently launches, the didRegisterForRemoteNotificationsWithDeviceToken delegate is called even without calling

didRegisterForRemoteNotificationsWithDeviceToken called twice?

寵の児 提交于 2020-01-01 08:19:05
问题 Somewhat similar to When is didRegisterForRemoteNotificationsWithDeviceToken called?. When the user first installed the app and it prompts whether to accept notification, will didRegisterForRemoteNotificationsWithDeviceToken be called if the user accepts it? I'm currently calling registerForRemoteNotificationTypes after the user successfully signs in or creates an account. In subsequently launches, the didRegisterForRemoteNotificationsWithDeviceToken delegate is called even without calling

Why I can't add APNs Development iOS typed certificate to provisioning profile

女生的网名这么多〃 提交于 2020-01-01 06:49:06
问题 I am trying to implement APNS for my App. I created APP id and was able to generate an SSL certificate for my App (the type is shown to be APNs development IOS). However, when I try to generate a provisioning profile, following the screen where I choose the AppID of my app, I do not see the SSL certificate I generate for this app. In the certificates list, I only see certificates of type 'IOS development' that were created previously. 回答1: The APNs certificate that you created is used by what

Apple Push Notifications (APN) Inconsistency?

不问归期 提交于 2020-01-01 05:55:14
问题 We are running into a confusing issue when using Apple's Push Notifications via APN. We have the following scenario (quite standard i guess): When our App, let's call it "MyApp" here, is installed and started for the first time we are asking the user for permissions to send him Push Notifications through "MyApp". In this example the AppDelegate looks like this: import UIKit import UserNotifications class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var

How do I tell if the app was opened or resumed as a result of a push notification in Titanium?

假如想象 提交于 2020-01-01 05:38:06
问题 How do you handle a push differently in Titanium depending on whether the app was open at the time the push arrived? When a push notification comes in and my app is running, I would like to pop up a message offering to take the user to the item the notification refers to. If the app is closed, and the user taps on the push notice and causes the app to open, I would like to take the user directly to the item without a popup. Titanium's registerForPushNotifications seems to only have one

One server sending push notifications to Android and iOS devices

谁说我不能喝 提交于 2020-01-01 04:57:09
问题 Our organization has an Android app and an iOS app. We want to start pushing notification to these apps. Android has GCM. Apple has APNS. But we want to create an API which will work on both android and iOS. What is the easiest way to setup a server so that when a push notification needs to be sent, it knows exactly which server to send the message to? 回答1: As a little background this is for a university setting where multiple colleges apps as well as distance education may be using the

iOS - best practice to send incoming call notifications on VoIP app

不羁岁月 提交于 2020-01-01 04:40:09
问题 The first solution I can think of for the incoming call notification is Apple's Push Notification service. However, it is not guaranteed.. there's a relatively high chance it may get lost.. and in a VoIP app, the incoming call notification is so important that I can't afford to miss it too often... Thus, I followed the tips and enabled the Background Mode to keep the app alive and listening to any incoming call invite. By right, I should just show local notification when the app gets the

How do I make my debug app version receive production push notifications on iOS?

Deadly 提交于 2020-01-01 04:06:11
问题 My server is sporting only one version of sending push notifications, and it has my production (release) push certificate. How do I test the notifications on my debug device and debug builds, using the same production certificate? My device is sending the token, but when I attempt to send a real push notification Apple servers return status 8 error, that means that device token is incorrect. 回答1: If you want to test your app in production mode, you will need distribute the Distribution