apple-push-notifications

Push notifications are not working in iOS 9

旧时模样 提交于 2019-12-18 12:58:05
问题 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:

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

混江龙づ霸主 提交于 2019-12-18 12:36:12
问题 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 回答1: You can do two things. One is to

Apple Push Notification Service APNS - Notifications not arriving

早过忘川 提交于 2019-12-18 12:34:29
问题 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,

Get device token for push notifications after app was deleted

南楼画角 提交于 2019-12-18 12:29:28
问题 When you install an app for the first time and want to register for Push notifications, the app asks you whether you want to receive alerts or not. This is being permanently saved in the settings, even after deletion of the app. Basically, to save the token we are doing this: - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { NSString *token = [[[deviceToken description] stringByTrimmingCharactersInSet:[NSCharacterSet

Push notification not receiving in iOS 10

坚强是说给别人听的谎言 提交于 2019-12-18 12:29:24
问题 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

Push notification not receiving in iOS 10

点点圈 提交于 2019-12-18 12:29:17
问题 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

Push notifications work for Ad Hoc, but not when downloaded from the Apple store

為{幸葍}努か 提交于 2019-12-18 12:24:01
问题 My app just got approved for the apple store. I downloaded it an installed it on my iPhone - but it looks like push notifications are broken! I was successfully testing push notifications in production using an adHoc provisioning profile. I had no problems. The only thing I did differently when I submitted to apple was using an app store distribution profile. The application never asks me (or anyone else who has downloaded it) if I want to receive push notifications. Consequently, the phone

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

↘锁芯ラ 提交于 2019-12-18 12:10:06
问题 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

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

那年仲夏 提交于 2019-12-18 12:09:04
问题 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

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

北战南征 提交于 2019-12-18 11:48:43
问题 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