apple-push-notifications

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

左心房为你撑大大i 提交于 2019-11-30 12:16:07
问题 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

generated certificate stops working when moved to resources folder

孤街醉人 提交于 2019-11-30 11:41:41
I'm having problems with a generated certificate I'm using to connect to the apple push services. All works fine when the generated p12 file was in my src/main/java folder, but I moved it to src/main/resources and it decided to stop working with the following error: DerInputStream.getLength(): lengthTag=111, too big. To get into some more detail: I'm using the notnoop push notifications library and followed the tutorial from Ray Wenderlich to generate the certificates. after, I used to following commands to generate a p12 file for use in java: openssl x509 -in aps_development.cer -inform DER

Objective C: How to check if application is currently active (i.e. user is using it)?

ぃ、小莉子 提交于 2019-11-30 11:17:47
I am implementing an APNS push for my app with the following behaviours 1) If app is not active i.e. in background or not launched yet : User will receive a pop up message and on click will bring him/her to the 3rd tab in the app (see code below) -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { self.tabController.selectedIndex = 3; } 2) If app is launch and currently active No popup alert will be shown and the number of new notifications will show as a number on the 3rd tab My question is how can I determine if the user's app is active?

didReceiveRemoteNotification is not running when app is running (FOREGROUND)

爷,独闯天下 提交于 2019-11-30 09:55:48
问题 I have a strange case. My swift ios app is connected to Cloudkit. If the app is NOT running (background state), I receive my notifications badge and alert just fine, every time! If the app is running, no notifications are received! I know it is not hitting the remote because I do this: 1. Adding a breakpoint to the didReceiveRemoteNotification event 2. Running xcode in a plugged iphone 3. NSLog("detected didReceiveRemoteNotification"), so final code look like this func application(application

Multiple iPhone APN messages, single connection

拥有回忆 提交于 2019-11-30 09:45:32
I have a strange issue. I'm trying to get Apple Push Notifications working with Python. I can connect and send individual messages without a problem. The issues pop up when I start sending more than one message, but it's more bizarre than even that. I'm testing with multiple devices... some iPhones and some iPod Touches. I can send multiple messages to the iPhones without a hitch, but if I have an iPod Touch device id in the list, any message that goes after will fail. So if I send 4 messages in sequence like this: 1 - iPhone 2 - iPhone 3 - ipod Touch 4 - iPhone 1 and 2 will be delivered, 3

how to activate the ios notification settings programmatically?

人走茶凉 提交于 2019-11-30 09:38:46
问题 My app registers for the notifications like this : [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert]; but if I manually go to the notifications settings, disable everything (notification center, alert, sound, badge) then uninstall and reinstall the app (or just reinstall without uninstalling first), my iPhone keeps the old settings. How can I force to reactivate these settings

Rails 3 and apple push notification service

爱⌒轻易说出口 提交于 2019-11-30 09:20:49
Has anybody been able to send push notification to iPhone using rails 3 ? APN on rails and samesoffes plugin only works with rails 2. I am new to rails and i have not been able to make either of them work. Here are the errors i encountered : APN on Rails : tried to replace ruby script/generate apn_migrations With rails generate apn_migrations got : myApp/config/environment.rb:5:in `require': no such file to load -- apn_on_rails (LoadError) I also did not manage to run the configuration "config.gem 'apn_on_rails'" (config.gem: command not found) Samsoffes plugin : I did not manage to config the

Push notifications to Passbook via Urban Airship not appearing on device

时光毁灭记忆、已成空白 提交于 2019-11-30 09:08:59
问题 I've found this post to be really helpful in getting set up, but I have yet to see the push notification come through on the iPhone on which the pass is installed. Passkit-push-notification-not-working-with-urban-airship I set up my app on urban airship's site pushing to Apple's development servers. I installed a pass on my phone and run the following commands which I found in the above post: airship = urbanairship.Airship(_UrbanAirshipPassbookKey, _UrbanAirshipPassbookMasterSecret) airship

iOS Push Notifications not working for Distribution

无人久伴 提交于 2019-11-30 09:01:17
问题 I have tried the Push Notification for my application for development and it's working fine. When I am generating the .p12 file of production(distribution) it's getting created. After deployin .pem file on the server it's throwing and error. OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server s ession ticket A: sslv3 alert certificate unknown):" } Server : RoR(Ruby on Rails) Any help would be very appreciable. Note : For the development .p12 it's working fine. The

Renewing Production Push SSL Certificate - Apple APNS

拜拜、爱过 提交于 2019-11-30 08:41:34
Our production push ssl certificate is going to expire soon. If I generate a new certificate, will the other certificate remain valid until it is set to expire (at which point it must be replaced with the new certificate)? Will both certificates work at the same time? Just concerned about the timing. For our app, we host a push server and so do a few of our customers. I want to make sure creating a new certificate and updating our push server with the new certificate doesn't mess up our customers' push servers that will, for a time, still have the old certificate installed. It seems like you