apple-push-notifications

New Command 2 Apple Push Notification Not sending multiple alerts

烈酒焚心 提交于 2019-12-18 07:08:53
问题 I am trying to implement the new 'Command 2' push notification in Java and cannot have it push multiple alerts. First alert is pushed successfully. Please help if you can spot any issue on this code Apple specs https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW1 for (DeviceApps deviceApps : deviceAppsList) { outputStream.write(getByteArray(deviceApps, pushAlert));

APNS JSON PAYLOAD - more arguments

那年仲夏 提交于 2019-12-18 04:45:20
问题 I need to add some arguments to a json payload for APNS service. How can i do this? this is the documentation of apple: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1 When i try to send a message with close and view buttons, i need to add two more arguments that my mobile application needs. Any idea? 回答1: Not sure if you got the answer yet. But this is

iphone Launch Options

人盡茶涼 提交于 2019-12-18 04:14:14
问题 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

iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback

家住魔仙堡 提交于 2019-12-17 23:47:19
问题 After upgrading to iOS beta 13 I've noticed an unpleasant thing: my app crashes sometimes on incoming VoIP pushes. In the crash report I see the following: iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x1af21b9f0 __exceptionPreprocess 1 libobjc.A.dylib 0x1af7284fc objc_exception_throw 2 CoreFoundation 0x1af11efec + [_CFXNotificationTokenRegistration

Can we push notification without using APNs?

允我心安 提交于 2019-12-17 22:37:21
问题 Is it possible to push notification from my 3rd party server directly to my device in Intranet(Wi-Fi)? I have achieved to push notification to the device with the help of APNs, but my requirement to achieve the same without using any external service, say my server and my device is connected to an Intranet, i need to detect the availability of the device in the Intranet and send notification directly. Any idea?? Thanks in advance 回答1: Well, if—as it sounds—you’re developing an enterprise app

Push Notification ON or OFF Checking in iOS

半城伤御伤魂 提交于 2019-12-17 22:08:39
问题 I want to check "Push Notification option" in iOS device, any time if the application is running (or ON from resume mode). I use the following code to check, if the option is OFF: -(void)PushNotificationServiceChecking { UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (types == UIRemoteNotificationTypeNone) { NSString *msg = @"Please press ON to enable Push Notification"; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Push

iOS: Production push notifications, Invalid token from APNS server

杀马特。学长 韩版系。学妹 提交于 2019-12-17 18:38:38
问题 My app is now available in the app store, so I've downloaded it to my device. The push notifications were working fine during development. I am using JavaPNS to send out the notifications, and I have switch it to point to Apple's production servers. However, I'm now getting an Invalid Token error back from the APNS servers. I have the Archive scheme set to "Release", and I have Release set to use this distribution profile: Inside that provisioning file, you can see that I have the environment

What causes “Neither PUB key nor PRIV key:: nested asn1 error” when building a public key in ruby?

百般思念 提交于 2019-12-17 18:28:05
问题 When building a public key using the OpenSSL::PKey::RSA module by passing it a .pem file, what is the cause for a response: OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:: nested asn1 error from /Users/Matt/projects/placepop/lib/apn.rb:48:in `initialize' from /Users/Matt/projects/placepop/lib/apn.rb:48:in `new' from /Users/Matt/projects/placepop/lib/apn.rb:48:in `open' from (irb):1 Here is the source: cert = File.join(rails_root, 'config', 'apns', 'sandbox-cert.pem') APN_CONFIG = {

iphone push notifications passphrase issue (pyAPns)

假装没事ソ 提交于 2019-12-17 17:39:11
问题 I'm trying to implement push notifications for iphone based on PyAPNs When I run it on local but it blocks and prompts me to enter the passphrase manually and doesn't work until I do I don't know how to set it up so to work without prompt This is my code: from apns import APNs, Payload import optparse import os certificate_file = here(".." + app.fichier_PEM.url ) token_hex = '0c99bb3d077eeacdc04667d38dd10ca1a' pass_phrase = app.mot_de_passe apns = APNs(use_sandbox=True, cert_file= certificate

IOS Rich notification didReceiveNotificationRequest is not fired

╄→гoц情女王★ 提交于 2019-12-17 17:17:07
问题 I'm developing an iPhone application using objective-c. The basic push notification is working properly. Now I want to add rich notification in my app but I cannot get the didReceiveNotificationRequest fired in the NotificationService. Here is the notification payload I receive on Appdelegate: https://image.ibb.co/ndA2Qo/grab.png Here is the NotificationService.m file; #import "NotificationService.h" #import "Common.h" @interface NotificationService () @property (nonatomic, strong) void (