apple-push-notifications

iOS not receiving Firebase Push Notification sent through the API

ⅰ亾dé卋堺 提交于 2019-12-30 08:18:12
问题 I'm using Google's Firebase Cloud Messaging to send push-notifications to my iOS and Android applications. The push-notifications sent through the Cloud Messaging console work just as intended, however when I send a push-notification through the API, the iOS application only receives it when in foreground. On Android, it is working correctly (both in foreground and background). Reading the documentation, the iOS system would then transfer the "notification" object to the system tray, as

iOS 10 How to set UNotificationContent threadIdentifier for remote notification

我怕爱的太早我们不能终老 提交于 2019-12-30 07:07:27
问题 TL;DR: What key needs to be set in the APNs notification payload JSON to correspond to the threadIdentifier property of the UNNotificationContent object? e.g. the "category" key corresponds to the categoryIdentifier property. iOS 10 introduces the Notification Content Extension allowing us to present a view controller when a notification is expanded. The view controller that we provide conforms to the UNNotificationContentExtension protocol, that requires us to implement the didReceive(_:)

IOS Cancelling Local Notifications

瘦欲@ 提交于 2019-12-30 06:38:10
问题 I dont like asking vague questions but I couldnt exactly tell what the problem is. In my app I set some daily local notifications. Shooting everyday at 200PM. I later removed the codes that sets the local notifications, and added push notification feature. I test the push and it works (whenever I want to). But I still get the old notifications as well, could it be because I set them earlier somewhere on the phone itself. Is there a way to cancel them without coding. For example are they

How to Deploy Apple Push Notification Certificate to Customer Site

心已入冬 提交于 2019-12-30 06:35:27
问题 Question: How can I securely include the SSL cert required for push notifications in the installer for my server product? Background: Apple Push Notifications require a client SSL cert to be in place on the server that's making the calls to Apple. My product has a traditional client/server architecture, i.e. a customer installs the server within their intranet and then obtains the iOS client from the App Store and connects the client to their instance of the server. The point here is that the

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

若如初见. 提交于 2019-12-30 06:07:18
问题 I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [self

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

大兔子大兔子 提交于 2019-12-30 06:07:07
问题 I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [self

How to send silent push to iOS via Google Cloud Messaging

你。 提交于 2019-12-30 06:00:42
问题 How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any idea, how to do this? 回答1: Use the content_available (not content-available ) attribute like this: curl -X POST --header "Content-Type:application/json" --header "Authorization:key

How to send silent push to iOS via Google Cloud Messaging

感情迁移 提交于 2019-12-30 06:00:09
问题 How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any idea, how to do this? 回答1: Use the content_available (not content-available ) attribute like this: curl -X POST --header "Content-Type:application/json" --header "Authorization:key

Java TLS socket : No trusted certificate found

随声附和 提交于 2019-12-30 05:24:04
问题 Let me explain quickly what I'm trying to do. I'm trying to build my own Apple's Push Notification service in java (for testing purposes). This service works thanks to TLS socket. I have a java client to create a TLS socket to send push notifications to the APNs. I changed the host url to redirect the socket to localhost:2195. Now I'm trying to write a java socket server to get the notification request. However, I get an exception during the handshake and can't find how to fix it. Note : I'm

Apple's APNS Delivery is Sometimes Slow

醉酒当歌 提交于 2019-12-30 04:43:24
问题 Using our own inbuilt APNS push system (written in PHP), we push to our devices on certain events. Some notifications are received by devices fairly instantaneously, while some devices can take up to 15 minutes to see. We hold the connection open (as required by Apple) and reset connections on errors as also documented (typically when they close the connection). All that works fine, I can at any point put into our system queue a message to my ipod touch, and will receive notification within