apple-push-notifications

Should APNS Tokens be encrypted?

人盡茶涼 提交于 2019-12-23 07:56:04
问题 So, I was wondering, since users send their APNS tokens to the APNS provider in order to receive push notifications, should the tokens be encrypted? Is SSL necessary? From what I figure is that there is no real sensitive data in the token. If someone actually managed to sniff the token from a user, he still would have to obtain my push certificate. And if he managed to do that (he won't ;-)) all he could do is send spam notifications to this particular user. Is that correct? Or did I miss

Should APNS Tokens be encrypted?

自作多情 提交于 2019-12-23 07:52:44
问题 So, I was wondering, since users send their APNS tokens to the APNS provider in order to receive push notifications, should the tokens be encrypted? Is SSL necessary? From what I figure is that there is no real sensitive data in the token. If someone actually managed to sniff the token from a user, he still would have to obtain my push certificate. And if he managed to do that (he won't ;-)) all he could do is send spam notifications to this particular user. Is that correct? Or did I miss

Remote Notification callback not being called during phone call

拟墨画扇 提交于 2019-12-23 07:37:01
问题 I have created an app in which background fetch code is written on receiving push notification. I have enabled the background mode in .plist, content-available key is set to 1 in push notification payload, registered for push notification and using delegate - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler Now when my app is in background, I receive a call.

apple push notifications - no valid 'aps-environment' have tried all solutions I've seen on web?

妖精的绣舞 提交于 2019-12-23 07:13:19
问题 I'm tearing my hair out trying to get push notifications to work! I'm following this tutorial to basically no avail. I've deleted xcode several times, redone the whole apple dev certificate, cleaned out my login keychain a few times. This has helped a few issues, but at the end I'm still stuck. What I think I need to do (from reading other people's experience with this): 1) My openssl cert and key need to be talk to the apple server 2) The app id with this openssl cert has a provisioning

Silent push message, can´t react if app is in background and unplugged

心不动则不痛 提交于 2019-12-23 05:39:33
问题 I am trying to react on silent push messages. I registered my app for the two background modes in my plist file. I am sending the following json to my app: { "aps": { "content-available": 1 }, "Bla": "Blub" } If my app is in foreground, everything works. As I am receiving the push I execute a function in my code. If my app is in background and plugged to my Mac or ac, everythings fine as well... But if I unplug my device, the device is not getting or at least my function is not called anymore

How to implement Push Notification Based on Geo Location in Objective-C?

和自甴很熟 提交于 2019-12-23 05:39:05
问题 How to implement geo location based push notifications ? I have been referred to the following solution: How to use geo-based push notifications on iOS? In the above link they have given local notification based solution: UILocalNotification *localNotification = [[UILocalNotification alloc] init]; localNotification.alertBody = locationData; localNotification.alertAction = @"Location data received"; localNotification.hasAction = YES; [[UIApplication sharedApplication]

Does apns needs certificates for each app development?

半城伤御伤魂 提交于 2019-12-23 05:12:35
问题 I have created provisioning profile and app id and certificates & all of the process to enable push notification for one of my app, if I want to enable apns service for my second app shall I use same certificate or shall I create other provisioning profile and appid & certificates. I am using same certificates but I am getting following error. Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo

Push notification in Production mode is not coming But in development it is coming

烈酒焚心 提交于 2019-12-23 03:38:36
问题 My PNS is working good in development mode. I have done this using raywendelich blog. same way i have created certificates in production mode and run same script from server but not receiving any notification. Which additional step needed when we are testing in production mode from our server.Its very urgent need. plase help what to do for production mode. our PHP code <?php // Put your device token here (without spaces): $deviceToken =

In iOS (swift) app, registration of a second Firebase app can't receive remote notifications

≡放荡痞女 提交于 2019-12-22 18:28:44
问题 I'm having two Firebase projects (on se same account, but could be two different accounts) and each project have an iOS app registered with the same bundle ID (so each .plist files have different sender IDs and project ID, but Bindle ID are the same). When I configure Firebase messaging for each app separately using FirebaseApp.configure() and the firebase configuration .plist file for the app, it works, I can send FCM message and the app gets it. (That means that both apps configurations on

Ping to APNS not returning

删除回忆录丶 提交于 2019-12-22 12:44:52
问题 I am trying to connect to Apple's Push Notification servers and push some notifications. All connections attempts are timing out. Tried pinging the server gateway.sandbox.push.apple.com and gateway.push.apple.com and they are not reachable. Are these servers alive and reachable? Can any body validate that they are reachable? Is it a regional problem? 回答1: I posted this question on the Apple forums but did not get any response. But, I figured it out myself after lot of experiments. Any