apple-push-notifications

Xcode 8 APS Environment Entitlement won't set to production

▼魔方 西西 提交于 2019-12-18 10:59:24
问题 I have push notifications working on my app. I went to go submit a new app update and I ran into an error with APS environment not being set. I hit fix issue and it created the entitlement file with APS environment set to development. To submit the app I obviously want this set to production. I change the value to production and proceed to archive the app for submission. It throws an error in the capabilities section for push notifications with the last past "Add the Push Notifications

python: APNs SSLError

99封情书 提交于 2019-12-18 10:14:20
问题 I am trying to send push notifications to iPhone via python as described here but I am getting the following error: Traceback (most recent call last): File "<console>", line 1, in <module> File "/home/omat/CA/server/ca/models.py", line 193, in push c.connect((host_name, 2195)) File "/usr/lib/python2.6/ssl.py", line 307, in connect self.ca_certs) SSLError: [Errno 336265225] _ssl.c:337: error:140B0009:SSL routines: SSL_CTX_use_PrivateKey_file:PEM lib The error is raised from within the python

OneSignal iOS issue “No Push Token” with SDK 2.0.7

与世无争的帅哥 提交于 2019-12-18 09:52:14
问题 I am confronting a weird error from OneSignal and push notifications. I have 3 devices (2 iPhones, 1 mini iPad). After i completed the entire process of Push notifications, only my iPad receives push notifications from OneSignal. All my devices are registered in my Developer Account and what i found is the most weird situation is that i NSLOG the didRegisterForRemoteNotificationsWithDeviceToken to see if each device connected receives a token and they all indeed get a token but for some

iOS silent push should update application badge count

社会主义新天地 提交于 2019-12-18 09:22:51
问题 Is it possible to update application badge count by receiving a silent push. When the application is not running in the background, this method is not called. My guess is this method get called even if the app is not running in the background. Am I wrong? - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler { int currentBadge = [UIApplication sharedApplication]

Push Notification in production is not working

独自空忆成欢 提交于 2019-12-18 09:08:25
问题 I Have implemented this url. Development mode notification is working but in production its not working. and shows errors. dakshas-iMac:alootamatar daksha$ php push_demo.php Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/daksha/Desktop/alootamatar/push_demo.php on line 18 Warning: stream_socket_client(): unable to connect to ssl://gateway.push-apple.com:2195 (php_network_getaddresses: getaddrinfo failed:

IOS Play Sound on receiving push notification when app in foreground

本秂侑毒 提交于 2019-12-18 09:04:56
问题 How to play sound on receiving a push notification when the app is in the foreground state. My Code : - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { if (application.applicationState == UIApplicationStateActive) { //create an audio player and play the sound NSString *path = [[NSBundle mainBundle] pathForResource:@"whistle" ofType:@"caf"]; NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: path]; AVAudioPlayer *theAudio=[[AVAudioPlayer

Exception on SslStream.AuthenticateAsClient (The message was badly formatted)

时间秒杀一切 提交于 2019-12-18 08:25:58
问题 I have got wierd problem going on. I am trying to connect to Apple server via TCP/SSL. I am using a Client certificate provided by Apple for push notifications. I installed the certificate on my server (Win2k3) in both Local Trusted Root certificates and Local Personal Certificates folder. Now I have a class library that deals with that connection, when i call this class library from a console application running from the server it works absolutely fine, but when i call that class library

Exception on SslStream.AuthenticateAsClient (The message was badly formatted)

我与影子孤独终老i 提交于 2019-12-18 08:25:46
问题 I have got wierd problem going on. I am trying to connect to Apple server via TCP/SSL. I am using a Client certificate provided by Apple for push notifications. I installed the certificate on my server (Win2k3) in both Local Trusted Root certificates and Local Personal Certificates folder. Now I have a class library that deals with that connection, when i call this class library from a console application running from the server it works absolutely fine, but when i call that class library

Worklight Push notification (APNS) fails with javax.net.ssl.SSLHandshakeException

天涯浪子 提交于 2019-12-18 07:10:07
问题 I have a Worklight 6.1 app on iOS with push notifications. It works fine, until something goes wrong on the Worklight server. All push notifications after that fail until the server is restarted. The Worklight server is Liberty 8.5.5.0 on Linux x86_64 Using JDK : java-1.7.0-ibm-1.7.0.5.0.x86_64 The Worklight database is Derby (this is a test server) Everything works great when I start the server. 10 minutes after the server starts, I see: [2/20/14 19:39:15:319 CST] 0000003e com.notnoop.apns

Background task when apns received

此生再无相见时 提交于 2019-12-18 07:08:54
问题 After reading APNS documentation, I have implemented apns into my app. Everything works fine, but I have a question. I don't know if it is possible, but I would like to do a task when my app is in background and I receive a apns notification. This is my dictionary inside the notification: aps = { alert = "message"; sound = "default"; }; If my app is in foreground, I execute this code: - (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo {