apple-push-notifications

Push notifications are not working in iOS 9

£可爱£侵袭症+ 提交于 2019-11-30 08:33:17
I have upgraded my devices to iOS 9 and my Xcode environment to 7.0 beta. Push notifications are not working in iOS 9? Here is my code: float ver = [[[UIDevice currentDevice] systemVersion] floatValue]; if(ver >= 8 && ver<9) { if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerForRemoteNotifications]; UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil]; [

Push notification for development certificate

时间秒杀一切 提交于 2019-11-30 07:52:58
How can I send push notifications to a build which is running under a development provisioning profile? Can anyone please help me? Nekto You should use your development version of certificate to authenticate on Apple Push Notification Center. For testing push-notifications you can use MacOs Application : PushMeBaby Full tutorial for using it can be found here : (click me) For testing purpose you can use urban airship and you can get the sample code also for iPhone application. For testing push-notification you can use http://apns-gcm.bryantan.info/ I strongly recommend bryantan it works pretty

Open a specific tab/view when user receives a push notification

丶灬走出姿态 提交于 2019-11-30 07:29:30
I want to do something like Twitter app: when someone write me I receive the push notification; if I "slide on the notification" the app starts, but not in the normal stream, it starts in a specific view with the tweet that someone wrote me! In my app I have something like an RSS reader, and the push notification arrives when there is a new news. So, I want to open the "single news view", and not the main view (that's happening now). What can I do? Thanks Mic Pringle You can do two things. One is to check the launchOptions dictionary of the UIApplicationDelegate method - (BOOL)application:

Apple Push Notification Service APNS - Notifications not arriving

和自甴很熟 提交于 2019-11-30 07:25:35
I am trying to add push notifications to my app. I have am using an ad hoc profile. My appID does not have a wildcard. I am using the following php code... $deviceToken="****";masked $time = time(); $apnsHost = 'gateway.sandbox.push.apple.com'; $apnsPort = 2195; $apnsCert = 'apns-dev-maui.pem'; $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); $apns = stream_socket_client('ssl://' . $apnsHost . ':' . $apnsPort, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext); if($apns) { echo "Connection Established<br/>";

Push notification not receiving in iOS 10

女生的网名这么多〃 提交于 2019-11-30 07:10:14
My App is in Appstore. Push notification is working fine in iOS 9, but in iOS 10 it is not working. I am not receiving any push notification for iOS 10 devices. I have checked the device token and certificate in my server. All are correct. I have also checked the notification properties in settings app. All are fine. But I didn't receive any notification. I just switch OFF and ON the notification for my app. And I opened my app to check whether device token is changing or not. It is changed and updated to my server. Then I am receiving notification properly. It is working fine now for my

Add iPhone push notification using ASP.NET server

a 夏天 提交于 2019-11-30 06:11:49
问题 Here's the overview. I need to add push notification to an iPhone app. Server side is ASP.NET in c#. What I would like is some coaching to work through the process. I will then post generic code for an iPhone project and an ASP.NET web app along with step-by-step instructions so that others can learn. Here is my understanding: Apply for APNS certificate and add it to keychain. (Not sure how to bring this to ASP.NET) Have iPhones register with registerForRemoteNotificationWithTypes, send the

Is it possible to create multiple SSL certificates for providers that send APNs to the same Application?

南楼画角 提交于 2019-11-30 05:54:50
I realize there was a question about allowing multiple servers to send Push Notifications to the same application using the same SSL Certificate, but my question is different. Suppose that the developer of a single iOS application would like to allow multiple providers to send Push Notifications to his application, but wants to control which providers have the authority to send APNs to his App (and to be able to revoke that privilege from any one of them). If all the providers have the same certificate, in order to block one of them from sending APNs, he has to block them all (by revoking the

Life cycle of app - when app is in terminated and push kit payload comes

空扰寡人 提交于 2019-11-30 05:31:33
What would be life cycle of app? when app is in terminated state and push kit payload comes. First of all Pushkit delegate methods will work or AppDelegate methods will work. Can someone describe sequence of methods getting called in such scenario? Appreciate your answer. Thanks in advance. Life cycle of app - when app is in terminated and push kit payload comes When you receive a push payload then application became active for 20-30 second in terminate state then call following method. didFinishLaunchingWithOptions (Here perform some intilization operation intiliaze window and

Java APNS (Apple Push Notification Service) error

百般思念 提交于 2019-11-30 05:17:13
问题 I am trying to use Java APNS - an open source project - to send push notifications to iPhones. I am getting an error, though. I have used a .pem file as certificate. Should this have been a .p12 file? I am not sure what the difference is, but I read somewhere online that there is a difference between these file formats. Here is the code: ApnsService service = APNS.newService() .withCert("gpk.pem", "XXXX") .withSandboxDestination() .build(); String payload = APNS.newPayload().alertBody("Can't

Google Firebase Push Notifications for iOS are not working in production environment

核能气质少年 提交于 2019-11-30 04:42:37
I'm using Google Firebase Cloud Messaging API (FCM) to send push notifications to my iOS app. I could get push-notifications working successfully when I test the app on a device with Development provisioning profiles + development push notification(sandbox) certificates. However I'm unable to get it working on production environment. I made an ad-hoc build with correct production provisioning profiles and production push notification certificates. And synced an IPA file to a device via iTunes for testing (not directly from xcode). Still I can't receive push notifications from firebase console.