apple-push-notifications

Production Push Notifications using Firebase with APNs Auth Key

与世无争的帅哥 提交于 2019-12-10 07:09:27
问题 When testing my application on TestFlight I have noticed that I do not receive push notifications. I have confirmed that I can receive notifications initiated from both cloud functions and the firebase console when loading builds from Xcode. I have referenced other similar questions but none of them reflect the precise problem I am dealing with. When configuring for remote notifications in Firebase I am using an APNs Auth Key , I have also included both .p12 files for Development and

remove iOS push notification after fresh reinstall

ぐ巨炮叔叔 提交于 2019-12-10 06:42:54
问题 I have application which has successfully integrated apple push notifications, when user logs in to the application app registers with the push notification and token is saved on our back-end, when user sign out from the app, we remove the push notification tokens from our back-end. but if user uninstall app from the device WITHOUT SIGN-OUT from app, and then re-install,in that case we can still send push notifications to the device, since app is newly installed and not logged in any user we

didReceiveRemoteNotification:fetchCompletionHandler not called when not attached to xcode iOS 8.0.2

纵饮孤独 提交于 2019-12-10 04:08:13
问题 Here's the problem, when the app is attached to xcode, didReceiveRemoteNotification:fetchCompletionHandler is called. But when i detach it, it's not called even when the notification is received. I attached app again (debug->attach to process) & send the notification, didReceiveRemoteNotification:fetchCompletionHandler called again. Someone could explain why didReceiveRemoteNotification:fetchCompletionHandler was not called when i detach it from xcode ? The app was not force closed. I just

Invalid IPA error on Testflight: The APS environment in your embedded.mobileprovision and your binary don't match

拥有回忆 提交于 2019-12-10 03:54:15
问题 I am sorry for posting so many questions, but getting this to work has been incredibly painful, even tho Testflight makes it much easier Invalid IPA error: The APS environment in your embedded.mobileprovision and your binary don't match I figure this has got to do with my Apple Push Notifications. I am using my distribution profile across all my settings. My app has been configured to both development and production. What could the causes of this error be? As a side note, I have been working

What if app bundle does not contain a key for the “loc-key” received in push notification?

断了今生、忘了曾经 提交于 2019-12-10 03:50:51
问题 According to apple documentation, notification payload can carry "loc-key" key which identifies localization string key in app bundle. What will happen if there will be no such key in app's bundle (for instance, when there were updates on the server and new notification types were added)? 回答1: You will most likely get the default behaviour of NSBundle 's localizedStringForKey:value:table: method which is to return the key when the value can not be found. 回答2: You can send your message

iOS Push Notification When app is killed

泪湿孤枕 提交于 2019-12-09 23:55:50
问题 I was wondering how does WhatsApp handle the Video Push Notification when the app is killed from the background. Taking into consideration that the app icon is clicked and not the notification. 1- The Push Notification keeps showing every 5 seconds 2- The Ringtone plays single time although the app keeps showing push notifications for around 30 seconds. 回答1: When app is in killed state, didReceiveRemoteNotification method will not be called. Then on the tap of notification application(_

XCUITest interact with a Notification Banner.

≡放荡痞女 提交于 2019-12-09 19:30:31
问题 Is it possible in XCUITest to validate that a notification banner is sent to the screen? I can add an accessibility identifier to the notification, but I am having a problem getting XCUITest to interact with it when the banner is ent to the screen. I know that XCUITest runs in a separate process from the app, but was wondeering if it was still possible to interact with the notification or is it beyond the scope of XCUITest? Thanks, 回答1: With Xcode 9 this is now possible. You can get access to

Delayed push notifications and checking if user enabled it

风格不统一 提交于 2019-12-09 16:26:40
问题 I develop an app, which builds itself around push notifications. The app requests notification permissions only when the user reaches certain point of the registration process. I have already managed to do the following: the app maintains an NSUserDefaults variable, which indicates if it is required to register for push at launch or not (by default: not) when the registration reaches that point, I flip the variable and call -registerForRemoteNotificationTypes: on iOS 7 and

Can I use PushKit to do regular push with out using VoIP? Will it allow killed app to be launched in background if user does not act on notification?

﹥>﹥吖頭↗ 提交于 2019-12-09 14:19:52
问题 In the PushKit it is mentioned we can use regular push or VoIP push. But I did not find any documentation for what PKPushType to use for regular push. Did anybody try the regular push using the PushKit? If I don't use VoIP is it possible for a killed app to be launched in the background if it receives push notification? Meaning if app is killed and a notification comes and user does not act on it, can the app be launched by iOS in the background if I use PushKit? 回答1: Since iOS 13.0, this is

Does iOS start app in background after reboot if remote-notification defined in UIBackgroundModes and new push notification comes?

我们两清 提交于 2019-12-09 13:32:30
问题 I have an iOS7 app which registers for background mode remote-notification: <key>UIBackgroundModes</key> <array> <string>remote-notification</string> </array> It works fine before reboot and app gets this event while in background: -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler But it looks like after reboot I don't get this event anymore until I start application