apple-push-notifications

APNS connection failure

狂风中的少年 提交于 2021-02-10 06:14:10
问题 Facing problem with APNS push services at client end. Server side is ok and it sends push to APNS properly as particular devices get stuck at some moment. Here are the server logs. VOIP Push: Push notification waiting by APNs gateway. VOIP Push: Push notification accepted by APNs gateway. Here are the console logs of effected device default 09:16:30.203262 +0400 apsd Connection 1507: enabling TLS default 09:16:30.203409 +0400 apsd Connection 1507: starting, TC(0x0) default 09:16:30.203504

PushKit notification not arriving after application kill AND device reboot

谁说我不能喝 提交于 2021-02-07 09:32:49
问题 My iOS application successfully receives VoIP push notifications even if it is closed, thanks to PushKit. There is only one condition when it fails: If I swipe my app out(terminate) throught the standard task switcher AND reboot my device. At first, I had this problem simply after rebooting the device, as described in this question: Troubleshooting post-boot push notification delivery failures A background task hack helped me, many thanks to the author, too bad I couldn't add any score. Now I

PushKit notification not arriving after application kill AND device reboot

自古美人都是妖i 提交于 2021-02-07 09:29:01
问题 My iOS application successfully receives VoIP push notifications even if it is closed, thanks to PushKit. There is only one condition when it fails: If I swipe my app out(terminate) throught the standard task switcher AND reboot my device. At first, I had this problem simply after rebooting the device, as described in this question: Troubleshooting post-boot push notification delivery failures A background task hack helped me, many thanks to the author, too bad I couldn't add any score. Now I

didReceiveRemoteNotification not called in iOS 13.3 when app is in background

折月煮酒 提交于 2021-02-06 15:14:28
问题 I am banging my head. I am implementing push notification. Everything is working fine (push is received, badge is updated) but under iOS 13.3 the method application(_:didReceiveRemoteNotification:fetchCompletionHandler:) is not called when the app is in the background. If the app is in the foreground or using an iOS 12 device the method is called. I register for push notification in the following way: [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:

Sending Firebase Push Notifications to Logged-in Users Only

孤者浪人 提交于 2021-02-04 21:46:19
问题 I developing an iOS application that integrates with Firebase to deliver remote push notifications. The application includes a login feature, and sending a notification using the FCM token sends it even though the user is not logged-in, and I get why that happened because the FCM token is an app-device combination not an app-user combination. But is there a workaround to guarantee that the notification is only delivered when the user is logged-in? 回答1: Push notification are not linked with

Test Rich Notifications in Simulator

感情迁移 提交于 2021-02-04 07:29:08
问题 I am able to test the normal notifications in Simulator, but when I tried to test rich notifications nothing happens, event title is not getting updated. Could you please assist me, how to proceed. Do I need to change any simulator settings? I am using Xcode 11.4 Sample Payload : { "aps": { "mutable-content": 1, "alert": { "body": "Push notification body", "title": "Push notification title" } }, "media-url": "https://i.imgur.com/t4WGJQx.jpg" } NotificationService Extension Method: - (void

Can I see my new git commits in a new TestFlight build if I have unresolved issues from Apple Store Connect?

和自甴很熟 提交于 2021-01-29 07:16:29
问题 A few days ago I successfully delivered Version 1.0.0 Build 1 of my new app to TestFlight. I then made some updates to my code and updated everything to my Github repo's master branch. When I attempted to deliver a new build of my app. I received this email... "Dear Developer, We identified one or more issues with a recent delivery for your app, "AppName" 1.0.0 (2). Your delivery was successful, but you may wish to correct the following issues in your next delivery: ITMS-90078: Missing Push

iOS 13 reason: 'Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push callback.'

北战南征 提交于 2021-01-29 06:02:15
问题 From many days I am stuck at this problem... AnyHashable("aps"): { alert = { action = test; body = "{\"action\":\"connect\",\"meetingId\":\"mdkdkkydjgedjhd\",\"from\":\"sender\",\"fromToken\":\"9d739e878521cf770d9e5136161cf7611c242ef2a8b53c83c81b6b6021a7b31b\",\"to\":\"receiver\",\"toToken\":\"e65bf5e3d6a3e440eb364fb620539de4f4c2c1bf98be5f753f5abfbe7fecea74\",\"callUUID\":\"9EB823F3-F857-490B-BCFC-373D05E56933\"}"; title = Call; }; }] This is the payload which I am receiving and raising an

Play song in Notification

本小妞迷上赌 提交于 2021-01-29 05:30:07
问题 I want to play a song. When a notification comes. My code is working fine when the app is foreground mode. I want to play a song when the app is in background mode. Please help. 回答1: Add custom sound to your local notification Swift 3.0 func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) { var state: UIApplicationState = application.applicationState if state == .active { var soundID: SystemSoundID var mainBundle: CFBundleRef =

handling local push notifications when app is in the background

橙三吉。 提交于 2021-01-28 11:12:34
问题 In iOS 10, I see that there are two functions for handling local push notifications: func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) and func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) The first is invoked when a push