apple-push-notifications

Receiving duplicate push notification ios9

僤鯓⒐⒋嵵緔 提交于 2019-11-30 04:40:29
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|UIUserNotificationTypeBadge) categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:setting]; [

How to make your push notification Open a certain view controller?

百般思念 提交于 2019-11-30 04:25:42
I looked on SO but I wasn't able to find any question that discusses when you receive a push notification how can you then open a specific view controller. For example if you are creating an app like WhatsApp and you receive two different push notifications ie messages from two different users how would you direct from the app delegate to the respective viewController? As far as I know in the userinfo dictionary that the appDelegate gives you you can give an ID to a specific viewController but I don't know how to give any a tribute to a specific view controller so that then you could again

Debug Notification Extensions

余生颓废 提交于 2019-11-30 04:19:12
I'm building a set of Notification Extensions (Service/Content). I'm unable to connect to Xcode debugger or even log out to the device log or console. Is there any way to see any kind of output? Change the target to run the extension then select run and choose your app from the 'Choose an app to run:' window. I have tried as per brendan's Answer but is not working for me at all! I am getting below error in console Program ended with exit code: 0 Then after searching on google i have checked this answer . however this also not worked for me for while! Then i have tried same steps again as given

SSL handshake with Apple Push Notification Server via Java

五迷三道 提交于 2019-11-30 04:08:04
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(keyStore, c); SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(keyMgrFactory

Passing data received from a push notification from the AppDelegate to a ViewController

混江龙づ霸主 提交于 2019-11-30 03:42:36
问题 In my app, there's a collection view displaying a set of images retrieved from a web service. Each image has tags. So the app has the ability to filter images using tags as well. Now I'm trying to add push notifications to this app. A push notification is sent when new images have been added to the server. These images are tagged say, latest . I'm passing that tag as the message via a push notification and what I need is when the user taps on the push notification to open the app, it should

Can we do VOIP push notification using Twilio iOS SDK?

空扰寡人 提交于 2019-11-30 03:28:16
问题 I have to implement App to App functionality using Twilio iOS SDK. I have successfully implemented voice calls when the app is running. Now I am facing a problem when the app is killed. How can I get VOIP push notifications for an incoming call? I am referring to this link : https://www.twilio.com/docs/api/notifications/guides/sending-notifications There is no VOIP push documentation for VOIP incoming calls. Please provide me with some useful ideas/solutions as soon as possible. 回答1: Twilio

SSL error while implementing Apple Push Notification

一笑奈何 提交于 2019-11-30 02:42:27
问题 I am trying to implement Apple Push Notification using python and django. i am using following library to implement it http://leepa.github.com/django-iphone-push/ Here is my code that create that send the message from django.http import HttpResponse from django.utils import simplejson import json from push.models import iPhone def SendMessage(request,data): t = iPhone('XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX ') # 64 digit token t.send_message("hi") # at this line i am getting ERROR

OpenSSL unable to get local issuer certificate unless CAfile is explicitly specified

爱⌒轻易说出口 提交于 2019-11-30 02:41:28
I'm trying to connect to Apple's Push Notification service from an Ubuntu server for an app. I've successfully generated the combined .pem certificate required by the pyAPNS provider I'm using. However, when I try to verify the certificate with openssl verify , I get error 20 at 0 depth lookup:unable to get local issuer certificate . It works if I specify the certificate authority explicitly ( openssl verify apns.pem -CAfile entrust_2048_ca.pem ), but I've already explicitly installed the Entrust certificate on the system as instructed here , under "Importing a Certificate into the System-Wide

Voip Pushkit notification will not re-launch the app if it was force-quitted and device was rebooted

懵懂的女人 提交于 2019-11-30 02:24:01
I cannot get voip pushkit notifications to re-launch the app if the user has force-quitted the app (by swiping it up in the multi-tasking interface) AND if the device was rebooted. However, I can get the voip pushkit notifications to work in the following scenarios: The app was force-quitted then the pushkit notification arrives. The app will be relaunched immediately. Standard push notifications are not capable of waking the app in such scenario. The app was in the background / suspended and the device is rebooted. Thanks to Voip mode, the app will be relaunched on device reboot (I can see

What is the “keyID” when using APNs push service

纵饮孤独 提交于 2019-11-30 01:04:44
问题 Usually there are 3 info I need to provide, to use Apple APNs: key, keyId, teamId , like here. I understand key (pem file location) and teamId , but where do I find keyId ? Is this somewhere in https://developer.apple.com ? Is this the bundle ID? 回答1: key: 'apns.p8', // Path to the key p8 file keyId: 'ABCDE12345', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/authkey/) teamId: 'ABCDE12345', // The Team ID of your Apple Developer Account (available at https