apple-push-notifications

Does iOS 13 has new way of getting device notification token?

瘦欲@ 提交于 2019-11-27 03:54:13
问题 So my friend got this email from OneSignal Due to a change that may occur as part of the upcoming iOS 13 release, you must update to the latest version of the iOS SDK before building your app with Xcode 11. All of OneSignal’s wrapper SDKs including React Native, Unity, and Flutter have been updated as well. The reason for this is that Xcode 11, which is being released alongside iOS 13, breaks a common technique that apps and libraries like OneSignal were using to get a push token for the

APNS Push Notifications Not Working on Production

ⅰ亾dé卋堺 提交于 2019-11-27 03:47:18
问题 I created an App to send remote notifications from a web server. When I tested the App in Development Mode all the notifications arrived correctly on the phone, after the AppStore release the app did not receive notifications anymore. Here it is what I did: Created a Private Key For Production and one for development. Generated on my App ID two SSL Certificates by passing the previous CertFile Generated. I'm 100% sure to have generated correctly 2 key and passed them correctly to download the

iOS APNS Development [sandbox] vs Production

只愿长相守 提交于 2019-11-27 03:42:56
问题 Guys I'm having some trouble figuring out the key differences between the APNS (push notification) Developer (Sandbox) and Production modes. In particular I have the following questions: 1) Can I launch an app on the app-store with Push Notifications that is only registered for the APNS Developer Certificate? Or do I need to use to use APNS Production for apps I want to launch on the app store? 2) In general, what are the functional reasons other than "development on development APNS" and

Will iOS awake my app when i receive silent push notification?(When app is not in running state)

女生的网名这么多〃 提交于 2019-11-27 03:37:28
问题 Update Question : The requirement is; as soon as I receive silent notification, I want to run a web service and show the one liner in the notification bar. It has to work if the app is killed also. any workaround ? I am trying following method below. I am new to iOS and i struggled with silent push notification,googled a lot and got stuck. Will iOS awake my app when i receive silent push notification when app is not launched(i.e when app is removed from app switcher). my pay load is as { aps:

didReceiveRemoteNotification not working in the background

爱⌒轻易说出口 提交于 2019-11-27 03:20:49
I'm working on a big app with a huge chunk of legacy code. Currently - there's an implementation for: - (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo The problem is that it is only called when the app is in the foreground OR when the user taps the the notification while the app is in the background. I tried to implement: - (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler But the app behaves the same. In any case

Why push notifications is not working on testflight?

跟風遠走 提交于 2019-11-27 03:06:11
I have tested push notifications as a developer account and it worked, But when i tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received, So is there a kind of certificate that i need to generate for TestFlight? But when i tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received. That sentence is confusing. If you didn't get the push notification, what data is correctly received? Anyway, if I recall correctly, for TestFlight you are using an AdHoc

Xcode 8 “the aps-environment entitlement is missing from the app's signature” on submit

只谈情不闲聊 提交于 2019-11-27 03:04:54
I've got an app that we've submitted dozends of versions to in the last 6 months and we do use APNS. I got the following email from Apple after upgrading to Xcode 8 Dear developer, We have discovered one or more issues with your recent delivery for APP_NAME. Your delivery was successful, but you may wish to correct the following issues in your next delivery: Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push

Get device token for push notification

核能气质少年 提交于 2019-11-27 02:45:06
I am working on push notifications. I wrote the following code for fetching a device token. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. // Add the view controller's view to the window and display. [self.window addSubview:viewController.view]; [self.window makeKeyAndVisible]; NSLog(@"Registering for push notifications..."); [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; return

How to detect user uninstalled iOS App? I need push serious notification. I don't wanna lose it

[亡魂溺海] 提交于 2019-11-27 02:22:52
问题 I know Apple won't let you know user uninstalled your app. My Problem I have an old legacy SMS system to send alert Short Message to end user. Most of these messages are serious. Bottleneck is the GSM module has limitation when send hundreds SMS users simultaneously. Delay is inevitable. Thus, I build a new alert system to send push notification to my users, if they installed my app. After register their phone number, their SMS Alert will be switched into new alert system. Problem is some old

iPhone: Push Notification Testing on Production Certificate

拥有回忆 提交于 2019-11-27 01:47:25
问题 I have a quick question. I have been testing Development Push Notification Certificate for my iPhone App and its been working fine. I just want to know that is it possible to test Production Certificate before submitting my application to AppStore? I did try but message is not coming along when I use production certificate. Does Apple required application to be in AppStore when I use production certificate? Thanks. 回答1: If you create an Ad-Hoc Profile, you'll find that it uses the production