-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background notifications not received on first open. Have to hard close and re-open app. #6553
Comments
Just some further information that may be relevant: I tried updating to iOS 14 to see if it would resolve the issue. I updated to iOS 14, uninstalled the existing quick start messaging app. Restarted my device and reinstalled from TestFlight and followed the above steps. This time the notification came through on first app open. I thought the iOS 14 update may have fixed it. However, on repeating the above steps it it failed to work again. So I guess either:
|
Following a comment here: invertase/react-native-firebase#4299 (comment) I tried setting the podfile versions as follows:
Unfortunately made no difference. Another potentially relevant bit of extra information: when I was testing this in my own app using react-native-firebase using the APNs token direct always worked on first open. It was only sending via FCM that didn't. Perhaps this suggests it's an issue linking the APNs token to the FCM token? |
I've also tried disabling swizzling (adding Unfortunately still experiencing the same issue. |
Did you find any solution for this? I have the exact same issue. |
Hi @ahmadworks - unfortunately not. I saw that you commented on invertase/react-native-firebase#4299 (comment) saying that downgrading As far as I can see, the older version It'd be great if you could also try repeating the steps I outlined above with the quick start iOS app to see if you have the same issue (with both the latest version and the older version of the SDK). That way it'll hopefully confirm if it's a reproducible issue or some quirk with my specific setup. |
same issue here, also I'm having issue receiving the normal push notification too,
|
I just tried the Version 6.33.0 with new api |
Are you sure? I tried it many times and it's not working, the newest version that worked for me is 6.29.0. I think you need to try it twice because it works sometimes. |
Thank you for your reminder. I will try again many times today. |
I am building with 6.33.0 now to confirm it for you. |
You can refer this commit: leyserkids/cordova-plugin-firebase@124dd72 |
So you edited RNFirebase files! I though you were able to update to 6.33.0 with completion just form Podfile. |
I am using Cordova. In addition to update pod package, I also did using the new api |
Sorry, I thought you are replying to my comment on Invertase Firebase plugin. |
Hey all, sorry for the slow response to this issue. Can you share some app logs on the first launch of your app (where silent notifications don't work) and subsequent launches (where notifications are received as expected)? |
@morganchen12 Here are some logs. With setLoggerLevel:FIRLoggerLevelMax btw. I has deleted some row not related to Firebase 0x01. Using Version 6.32.2 and use 2020-09-30 20:18:31.922470+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: Starting Firebase plugin 2020-09-30 20:18:31.922529+0900 LeySerKids-P[2611:143418] [CDVTimer][firebaseplugin] 0.082016ms 2020-09-30 20:18:31.960228+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: GoogleService-Info.plist found, setup: [FIRApp configureWithOptions] 2020-09-30 20:18:31.966475+0900 LeySerKids-P[2611:143699] 6.32.0 - [Firebase/Core][I-COR000001] Configuring the default app. 2020-09-30 20:18:32.014230+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set. 2020-09-30 20:18:32.023645+0900 LeySerKids-P[2611:143691] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:32.026575+0900 LeySerKids-P[2611:143699] 6.32.0 - [GULReachability][I-REA902003] Monitoring the network status 2020-09-30 20:18:32.030907+0900 LeySerKids-P[2611:143691] 6.32.0 - [GULReachability][I-REA902003] Monitoring the network status 2020-09-30 20:18:32.097310+0900 LeySerKids-P[2611:143699] 6.32.0 - [Firebase/InstanceID][I-IID008009] Deleted checkin plist file. 2020-09-30 20:18:32.097485+0900 LeySerKids-P[2611:143699] 6.32.0 - [Firebase/InstanceID][I-IID007006] Checkin parameters: { checkin = { iosbuild = { model = "iPhone11,8"; "os_version" = "IOS_14.0"; }; "last_checkin_msec" = 0; type = 2; "user_number" = 0; }; digest = ""; fragment = 0; id = 0; locale = "zh-Hans"; "security_token" = 0; "time_zone" = "Asia/Tokyo"; "user_serial_number" = 0; version = 2; } 2020-09-30 20:18:32.097803+0900 LeySerKids-P[2611:143699] 6.32.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.6.2 2020-09-30 20:18:32.098283+0900 LeySerKids-P[2611:143699] 6.32.0 - [GULReachability][I-REA902003] Monitoring the network status 2020-09-30 20:18:32.103013+0900 LeySerKids-P[2611:143775] 6.32.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging to ensure proper integration. 2020-09-30 20:18:32.103802+0900 LeySerKids-P[2611:143775] 6.32.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist 22020-09-30 20:18:32.144792+0900 LeySerKids-P[2611:143418] IAB.close() called but it was already closed. 2020-09-30 20:18:32.193109+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didReceiveRegistrationToken: dLtPcmPGAEN7t4f6MzIKwc:APA91bHGVBj-B3fAuRO-Jp2680Xodc1o1YNbsMa29Pq4GFWUZjJlz5fEN6DnK5bKSEi4Eh4ylpUPcPzUZRKOp2n4iwL-30iMSdCYvSR3d_M8-_YfgZdEVkQuRbtUnLDYgsQkrX7v-u_A 2020-09-30 20:18:32.251213+0900 LeySerKids-P[2611:143697] 6.32.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected 2020-09-30 20:18:32.251529+0900 LeySerKids-P[2611:143697] 6.32.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected 2020-09-30 20:18:32.251807+0900 LeySerKids-P[2611:143697] 6.32.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected 2020-09-30 20:18:32.251970+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID013002] Removed cached checkin preferences from Keychain because this is a fresh install. 2020-09-30 20:18:32.253081+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID013006] App reset detected. Will delete server registrations. 2020-09-30 20:18:32.253413+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:32.253678+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID014012] Invalidating cached token for 752538346208 (*) due to token is no longer fresh. 2020-09-30 20:18:32.253956+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID005004] Checkin is in progress 2020-09-30 20:18:32.286707+0900 LeySerKids-P[2611:143778] 6.32.0 - [Firebase/Installations][I-FIS001001] Sending request: { URL: https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/ }, body:{"appId":"*************","fid":"cO9j1h53hUQFkkIZz7NDDb","authVersion":"FIS_v2","sdkVersion":"i:1.7.0"}, headers: { "Content-Type" = "application/json"; "X-Goog-Api-Key" = "*********************"; "X-Ios-Bundle-Identifier" = "com.grapecity.*****************"; "X-firebase-client" = "apple-platform/ios apple-sdk/18A390 fire-analytics/6.8.2 fire-fcm/4.6.2 fire-iid/4.7.0 fire-install/1.7.0 fire-ios/6.10.2 firebase-crashlytics/4.6.1 swift/true xcode/12A7209"; "X-firebase-client-log-type" = 3; }. 2020-09-30 20:18:32.435629+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:32.458652+0900 LeySerKids-P[2611:143418] FCM hasPermission: [object Object] 2020-09-30 20:18:32.666558+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:32.668327+0900 LeySerKids-P[2611:143689] 6.32.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile. 2020-09-30 20:18:32.668414+0900 LeySerKids-P[2611:143689] 6.32.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development 2020-09-30 20:18:32.670629+0900 LeySerKids-P[2611:143778] 6.32.0 - [Firebase/InstanceID][I-IID014011] Invalidating cached token for 752538346208 (*) due to APNs token change. 2020-09-30 20:18:32.670963+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:32.671281+0900 LeySerKids-P[2611:143778] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:32.994214+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID007002] Invalid last checkin timestamp 2020-09-30 11:18:33 +0000 in future. 2020-09-30 20:18:32.995026+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID007003] Checkin successful with authId: 5279753475512558523, digest: 6GHjsCXLihTPikebR5vbBA==, lastCheckinTimestamp: 1601464712000 2020-09-30 20:18:32.995104+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID005004] Successfully got checkin credentials 2020-09-30 20:18:33.000230+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/InstanceID][I-IID008010] Checkin plist file is saved 2020-09-30 20:18:33.001574+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query { acct = "com.grapecity.*****************"; class = genp; gena = "com.google.iid"; svce = "com.google.iid.checkin"; } 2020-09-30 20:18:33.004951+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/InstanceID][I-IID005002] Checkin success. 2020-09-30 20:18:33.005020+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:33.005288+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity: 752538346208, scope: * 2020-09-30 20:18:33.191933+0900 LeySerKids-P[2611:143778] 6.32.0 - [Firebase/Installations][I-FIS001003] Request response received: { URL: https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/ }, error: (null), body: { "name": "projects/752538346208/installations/cO9j1h53hUQFkkIZz7NDDb", "fid": "cO9j1h53hUQFkkIZz7NDDb", "refreshToken": "2_5q2A2P6WGPCUWXmGg6Zp7xVu4jKRjvSDScCzJ0qRl6UNZc_ARx3k9nWXyCKovBIT", "authToken": { "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWQiOiJjTzlqMWg1M2hVUUZra0laejdORERiIiwicHJvamVjdE51bWJlciI6NzUyNTM4MzQ2MjA4LCJleHAiOjE2MDIwNjk1MTMsImFwcElkIjoiMTo3NTI1MzgzNDYyMDg6aW9zOjJkZTU4ZjU5MTVlYWM1MGEifQ.AB2LPV8wRgIhAIaHOpKjccm66fuaDkUV2E_4Hl4ITKYuRAhEh9cuopx-AiEAjstqO9TVlCPZVpnlolxR5VnnEW_XxOPZHOP1IEcIXVg", "expiresIn": "604800s" } } . 2020-09-30 20:18:33.193088+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/Installations][I-FIS001005] Parsing server response for https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/. 2020-09-30 20:18:33.195085+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/Installations][I-FIS001007] FIRInstallationsItem parsed successfully. 2020-09-30 20:18:33.214126+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID021000] Unregister request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=4753012421744185450&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.6.2&delete=true 2020-09-30 20:18:33.924020+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID014007] Successfully deleted GCM server registrations on app reset 2020-09-30 20:18:33.924754+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:33.926446+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:33.967997+0900 LeySerKids-P[2611:143778] 6.32.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=5279753475512558523&X-scope=*&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.6.2&sender=752538346208&X-subtype=752538346208&appid=cO9j1h53hUQFkkIZz7NDDb&gmp_app_id=************ 2020-09-30 20:18:34.403362+0900 LeySerKids-P[2611:143771] 6.32.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query { acct = "com.grapecity.*****************"; class = genp; gena = "com.google.iid-tokens"; svce = "752538346208:*"; } 2020-09-30 20:18:34.414845+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: cO9j1h53hUQFkkIZz7NDDb:APA91bFWe4RRka-e5tY5Izo2-JbnNGJXOtKA97CxXrGDnePsaV-755EVSnM8zrsdTUiA3ba0H9CEq3eQneswFHIRTKhFWsD8l0tYCQ4rKsjB8hD-o9TOt0MR-5Db7HJVXtiPL3VnpZ0P, authorizedEntity: 752538346208, scope:* 2020-09-30 20:18:34.414872+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didReceiveRegistrationToken: cO9j1h53hUQFkkIZz7NDDb:APA91bFWe4RRka-e5tY5Izo2-JbnNGJXOtKA97CxXrGDnePsaV-755EVSnM8zrsdTUiA3ba0H9CEq3eQneswFHIRTKhFWsD8l0tYCQ4rKsjB8hD-o9TOt0MR-5Db7HJVXtiPL3VnpZ0P 2020-09-30 20:18:34.417461+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID003016] Received APNS token while fetching default token. Refetching default token. 2020-09-30 20:18:34.419999+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:34.420400+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didReceiveRegistrationToken: cO9j1h53hUQFkkIZz7NDDb:APA91bFWe4RRka-e5tY5Izo2-JbnNGJXOtKA97CxXrGDnePsaV-755EVSnM8zrsdTUiA3ba0H9CEq3eQneswFHIRTKhFWsD8l0tYCQ4rKsjB8hD-o9TOt0MR-5Db7HJVXtiPL3VnpZ0P 2020-09-30 20:18:34.421828+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:34.424055+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID003010] Successfully fetched default token. 2020-09-30 20:18:34.424297+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/InstanceID][I-IID003008] Got default token cO9j1h53hUQFkkIZz7NDDb:APA91bFWe4RRka-e5tY5Izo2-JbnNGJXOtKA97CxXrGDnePsaV-755EVSnM8zrsdTUiA3ba0H9CEq3eQneswFHIRTKhFWsD8l0tYCQ4rKsjB8hD-o9TOt0MR-5Db7HJVXtiPL3VnpZ0P 2020-09-30 20:18:38.459050+0900 LeySerKids-P[2611:143778] FirebasePlugin[native] LOG: requestAuthorizationWithOptions: granted=YES 2020-09-30 20:18:38.459688+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:38.462262+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: requestAuthorizationWithOptions: granted=YES 2020-09-30 20:18:38.462774+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:56.219851+0900 LeySerKids-P[2611:143697] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:56.219852+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:56.220506+0900 LeySerKids-P[2611:143690] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:56.221420+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:59.096997+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:59.098523+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:18:59.098520+0900 LeySerKids-P[2611:143783] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:18:59.099411+0900 LeySerKids-P[2611:143783] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:19:02.333267+0900 LeySerKids-P[2611:143783] 6.32.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:19:02.333317+0900 LeySerKids-P[2611:143418] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:19:02.334216+0900 LeySerKids-P[2611:143418] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0xb1c55e32 7231dc2b 65b7ca0e 3147d138 ... dec5c386 bad9c511 } 2020-09-30 20:19:02.334422+0900 LeySerKids-P[2611:143783] 6.32.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 0x02. Using the Version 6.33.0 and to get token by 2020-09-30 20:23:02.390520+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: Starting Firebase plugin 2020-09-30 20:23:02.390578+0900 LeySerKids-P[2641:145484] [CDVTimer][firebaseplugin] 0.077963ms 2020-09-30 20:23:02.430735+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: GoogleService-Info.plist found, setup: [FIRApp configureWithOptions] 2020-09-30 20:23:02.438372+0900 LeySerKids-P[2641:145746] 6.33.0 - [Firebase/Core][I-COR000001] Configuring the default app. 2020-09-30 20:23:02.438940+0900 LeySerKids-P[2641:145746] 6.33.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set. 2020-09-30 20:23:02.494738+0900 LeySerKids-P[2641:145818] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:02.494874+0900 LeySerKids-P[2641:145818] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status 2020-09-30 20:23:02.496907+0900 LeySerKids-P[2641:145818] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status 22020-09-30 20:23:02.510345+0900 LeySerKids-P[2641:145743] 6.33.0 - [Firebase/InstanceID][I-IID008009] Deleted checkin plist file. 2020-09-30 20:23:02.581348+0900 LeySerKids-P[2641:145820] 6.33.0 - [Firebase/InstanceID][I-IID007006] Checkin parameters: { checkin = { iosbuild = { model = "iPhone11,8"; "os_version" = "IOS_14.0"; }; "last_checkin_msec" = 0; type = 2; "user_number" = 0; }; digest = ""; fragment = 0; id = 0; locale = "zh-Hans"; "security_token" = 0; "time_zone" = "Asia/Tokyo"; "user_serial_number" = 0; version = 2; } 2020-09-30 20:23:02.582371+0900 LeySerKids-P[2641:145820] 6.33.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.7.0 2020-09-30 20:23:02.582536+0900 LeySerKids-P[2641:145820] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status 2020-09-30 20:23:02.592931+0900 LeySerKids-P[2641:145820] 6.33.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging to ensure proper integration. 2020-09-30 20:23:02.593839+0900 LeySerKids-P[2641:145820] 6.33.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist 2020-09-30 20:23:02.632343+0900 LeySerKids-P[2641:145484] IAB.close() called but it was already closed. 2020-09-30 20:23:02.727884+0900 LeySerKids-P[2641:145745] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected 2020-09-30 20:23:02.728456+0900 LeySerKids-P[2641:145745] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected 2020-09-30 20:23:02.728504+0900 LeySerKids-P[2641:145745] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected 2020-09-30 20:23:02.728554+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/InstanceID][I-IID013002] Removed cached checkin preferences from Keychain because this is a fresh install. 2020-09-30 20:23:02.728659+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/InstanceID][I-IID013006] App reset detected. Will delete server registrations. 2020-09-30 20:23:02.728824+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:02.733912+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didReceiveRegistrationToken: cO9j1h53hUQFkkIZz7NDDb:APA91bFWe4RRka-e5tY5Izo2-JbnNGJXOtKA97CxXrGDnePsaV-755EVSnM8zrsdTUiA3ba0H9CEq3eQneswFHIRTKhFWsD8l0tYCQ4rKsjB8hD-o9TOt0MR-5Db7HJVXtiPL3VnpZ0P 2020-09-30 20:23:02.735173+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/InstanceID][I-IID014012] Invalidating cached token for 752538346208 (*) due to token is no longer fresh. 2020-09-30 20:23:02.736360+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/InstanceID][I-IID005004] Checkin is in progress 2020-09-30 20:23:02.767539+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/Installations][I-FIS001001] Sending request: { URL: https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/ }, body:{"appId":"************","fid":"cfH2l2SteUofs-JNqbptjx","authVersion":"FIS_v2","sdkVersion":"i:1.7.0"}, headers: { "Content-Type" = "application/json"; "X-Goog-Api-Key" = "****************"; "X-Ios-Bundle-Identifier" = "com.grapecity.*****************"; "X-firebase-client" = "apple-platform/ios apple-sdk/18A390 fire-analytics/6.8.3 fire-fcm/4.7.0 fire-iid/4.7.0 fire-install/1.7.0 fire-ios/6.10.3 firebase-crashlytics/4.6.1 swift/true xcode/12A7209"; "X-firebase-client-log-type" = 3; }. 2020-09-30 20:23:02.960784+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/Messaging][I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '752538346208'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set. 2020-09-30 20:23:02.962764+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID005004] Checkin is in progress 2020-09-30 20:23:02.971390+0900 LeySerKids-P[2641:145484] FCM hasPermission: [object Object] 2020-09-30 20:23:03.191036+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:03.192659+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile. 2020-09-30 20:23:03.192754+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development 2020-09-30 20:23:03.195040+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/InstanceID][I-IID014011] Invalidating cached token for 752538346208 (*) due to APNs token change. 2020-09-30 20:23:03.195230+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:03.195566+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:03.451921+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/InstanceID][I-IID007002] Invalid last checkin timestamp 2020-09-30 11:23:03 +0000 in future. 2020-09-30 20:23:03.451990+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/InstanceID][I-IID007003] Checkin successful with authId: 5539136355670603314, digest: w7fbvHmSalRovolKTP/3mA==, lastCheckinTimestamp: 1601464983000 2020-09-30 20:23:03.452655+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/InstanceID][I-IID005004] Successfully got checkin credentials 2020-09-30 20:23:03.457152+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/InstanceID][I-IID008010] Checkin plist file is saved 2020-09-30 20:23:03.458176+0900 LeySerKids-P[2641:145817] 6.33.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query { acct = "com.grapecity.*****************"; class = genp; gena = "com.google.iid"; svce = "com.google.iid.checkin"; } 2020-09-30 20:23:03.460157+0900 LeySerKids-P[2641:145817] 6.33.0 - [Firebase/InstanceID][I-IID005002] Checkin success. 2020-09-30 20:23:03.460280+0900 LeySerKids-P[2641:145817] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:03.460557+0900 LeySerKids-P[2641:145817] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity: 752538346208, scope: * 2020-09-30 20:23:03.460686+0900 LeySerKids-P[2641:145817] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity: 752538346208, scope: * 2020-09-30 20:23:03.591096+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/Installations][I-FIS001003] Request response received: { URL: https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/ }, error: (null), body: { "name": "projects/752538346208/installations/cfH2l2SteUofs-JNqbptjx", "fid": "cfH2l2SteUofs-JNqbptjx", "refreshToken": "2_XR68jA-uqH0QNeo_y_KITUbqj_JeOkVCtsXQI4tKnDSfcswtfC0WJfJOlYuwDtO_", "authToken": { "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWQiOiJjZkgybDJTdGVVb2ZzLUpOcWJwdGp4IiwicHJvamVjdE51bWJlciI6NzUyNTM4MzQ2MjA4LCJleHAiOjE2MDIwNjk3ODMsImFwcElkIjoiMTo3NTI1MzgzNDYyMDg6aW9zOjJkZTU4ZjU5MTVlYWM1MGEifQ.AB2LPV8wRgIhAKUA_dN12ukDsgl9cGQr8oeeiM4ZRHxzZj0HTS8OtBu5AiEA3ky8ZsH0RMId4yvANTA6DEsZSkbt_MlNqqI6pOhtVT0", "expiresIn": "604800s" } } . 2020-09-30 20:23:03.592564+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/Installations][I-FIS001005] Parsing server response for https://firebaseinstallations.googleapis.com/v1/projects/lk-kp-jp/installations/. 2020-09-30 20:23:03.593042+0900 LeySerKids-P[2641:145822] 6.33.0 - [Firebase/Installations][I-FIS001007] FIRInstallationsItem parsed successfully. 2020-09-30 20:23:03.610032+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/InstanceID][I-IID021000] Unregister request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=5279753475512558523&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.7.0&delete=true 2020-09-30 20:23:04.989124+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID014007] Successfully deleted GCM server registrations on app reset 2020-09-30 20:23:04.991015+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:04.991624+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:05.027613+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=5539136355670603314&X-scope=*&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.7.0&sender=752538346208&X-subtype=752538346208&appid=cfH2l2SteUofs-JNqbptjx&gmp_app_id=************ 2020-09-30 20:23:05.331914+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:05.331975+0900 LeySerKids-P[2641:145821] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:05.343096+0900 LeySerKids-P[2641:145484] API error: <_UIKBCompatInputView: 0x105948570; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric 2020-09-30 20:23:05.343238+0900 LeySerKids-P[2641:145484] API error: <_UIKBCompatInputView: 0x105948570; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric 2020-09-30 20:23:05.400384+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query { acct = "com.grapecity.*****************"; class = genp; gena = "com.google.iid-tokens"; svce = "752538346208:*"; } 2020-09-30 20:23:05.412890+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didReceiveRegistrationToken: cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX 2020-09-30 20:23:05.418993+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX, authorizedEntity: 752538346208, scope:* 2020-09-30 20:23:05.420212+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID003016] Received APNS token while fetching default token. Refetching default token. 2020-09-30 20:23:05.420856+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:05.425879+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=5539136355670603314&X-scope=*&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.7.0&sender=752538346208&X-subtype=752538346208&appid=cfH2l2SteUofs-JNqbptjx&gmp_app_id=************ 2020-09-30 20:23:05.425958+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didReceiveRegistrationToken: cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX 2020-09-30 20:23:05.426876+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:05.426948+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID003010] Successfully fetched default token. 2020-09-30 20:23:05.427352+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID003008] Got default token cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX 2020-09-30 20:23:05.697415+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX, authorizedEntity: 752538346208, scope:* 2020-09-30 20:23:08.941736+0900 LeySerKids-P[2641:145817] FirebasePlugin[native] LOG: requestAuthorizationWithOptions: granted=YES 2020-09-30 20:23:08.942244+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:08.943822+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: requestAuthorizationWithOptions: granted=YES 2020-09-30 20:23:08.944151+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:21.366847+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:21.366863+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:21.367523+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:21.367972+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity: 752538346208, scope: * 2020-09-30 20:23:21.368010+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:21.381468+0900 LeySerKids-P[2641:145823] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0&device=5539136355670603314&X-scope=*&plat=2&app=com.grapecity.*****************&app_ver=8.28.293&X-cliv=fiid-4.7.0&sender=752538346208&X-subtype=752538346208&appid=cfH2l2SteUofs-JNqbptjx&apns_token=s_382e87450d9b49eb0245e42f42aa7002536464d35ae91bd3495a0a9c51552240&gmp_app_id=************ 2020-09-30 20:23:21.857273+0900 LeySerKids-P[2641:145884] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: cfH2l2SteUofs-JNqbptjx:APA91bF01yx2NQSh3rX6_CSSfy8_CnAWdRqBuh78Kg115lo-tPFQ7a9SVVCBlYMQyUt9HMa_fIoQr6xw2ioKDOIGyCHw_1LaIO7z5XLWDbeex5bST0WQCLqzQFt7bZf253g5nw1wfvUX, authorizedEntity: 752538346208, scope:* 2020-09-30 20:23:24.257200+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:24.258403+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:24.258526+0900 LeySerKids-P[2641:145745] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:24.259592+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:27.453743+0900 LeySerKids-P[2641:145819] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:27.453809+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:27.454474+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-09-30 20:23:27.456891+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didRegisterForRemoteNotificationsWithDeviceToken: {length = 32, bytes = 0x382e8745 0d9b49eb 0245e42f 42aa7002 ... 495a0a9c 51552240 } 2020-09-30 20:23:28.770348+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: willPresentNotification: { aps = { alert = { body = LeySerKids; title = LeySerKids; }; badge = 59; "content-available" = 1; sound = default; }; badge = 59; extras = "{\"category\":\"test\",\"noIncreaseBadge\":true}"; "gcm.message_id" = 1601465008736867; "google.c.a.e" = 1; } 2020-09-30 20:23:28.775355+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: willPresentNotification: { aps = { alert = { body = LeySerKids; title = LeySerKids; }; badge = 59; "content-available" = 1; sound = default; }; badge = 59; extras = "{"category":"test","noIncreaseBadge":true}"; "gcm.message_id" = 1601465008736867; "google.c.a.e" = 1;} 2020-09-30 20:23:28.778757+0900 LeySerKids-P[2641:145484] FirebasePlugin.onNotificationOpen 2020-09-30 20:23:28.779356+0900 LeySerKids-P[2641:145484] {"extras":"{\"category\":\"test\",\"noIncreaseBadge\":true}","aps":{"content-available":1,"alert":{"title":"LeySerKids","body":"LeySerKids"},"badge":59,"sound":"default"},"google.c.a.e":"1","badge":"59","gcm.message_id":"1601465008736867"} 2020-09-30 20:23:28.791284+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Messaging][I-FCM018001] Device has capacity 60986 MB with 37464 MB free. 2020-09-30 20:23:28.792062+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Messaging][I-FCM006000] Received message missing local start time, dropped. 2020-09-30 20:23:28.792878+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Messaging][I-FCM019005] FIRMessagingAnalytics: Sending event: _nf params: { } 2020-09-30 20:23:28.794508+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Messaging][I-FCM006000] Received message missing local start time, dropped. 2020-09-30 20:23:28.794988+0900 LeySerKids-P[2641:145885] 6.33.0 - [Firebase/Messaging][I-FCM016004] Added sync message to cache: 1601465008736867 2020-09-30 20:23:28.796038+0900 LeySerKids-P[2641:145484] FirebasePlugin[native] LOG: didReceiveRemoteNotification: { aps = { alert = { body = LeySerKids; title = LeySerKids; }; badge = 59; "content-available" = 1; sound = default; }; badge = 59; extras = "{\"category\":\"test\",\"noIncreaseBadge\":true}"; "gcm.message_id" = 1601465008736867; "google.c.a.e" = 1; } 2020-09-30 20:23:28.803846+0900 LeySerKids-P[2641:145484] FirebasePlugin[native]: didReceiveRemoteNotification: { aps = { alert = { body = LeySerKids; title = LeySerKids; }; badge = 59; "content-available" = 1; sound = default; }; badge = 59; extras = "{"category":"test","noIncreaseBadge":true}"; "gcm.message_id" = 1601465008736867; "google.c.a.e" = 1;} 2020-09-30 20:23:28.804020+0900 LeySerKids-P[2641:145484] FirebasePlugin.onNotificationOpen 2020-09-30 20:23:28.804085+0900 LeySerKids-P[2641:145484] {"extras":"{\"category\":\"test\",\"noIncreaseBadge\":true}","aps":{"content-available":1,"alert":{"title":"LeySerKids","body":"LeySerKids"},"badge":59,"sound":"default"},"google.c.a.e":"1","badge":"59","gcm.message_id":"1601465008736867"} |
Thanks for the update @ewfian! @tomkelsey @ahmadworks @enasaz9 can you try updating to 6.33.0 and using the new Messaging API as well? |
Hi @morganchen12 - I've tried using the quickstart with version 6.33.0 but don't believe I'm using the new API (I was just using the code from the quickstart repository). I'm afraid I don't know objective c nor how everything pieces together. If you can let me know what changes I'd need to make to the quickstart example to use the new API I'm happy to test and see if it resolves the issue 👍 Also re: logs. Is there a way to get device logs from a testflight device? As that seems to be the environment where I can most reliably reproduce the issue. Failing that I can try and recreate via a device connected directly to my machine but I'm not sure how to access the logs after hard closing the app and then re-opening? |
Following on from my comment above, I saw this PR firebase/quickstart-ios#1053 on using the new messaging API and implemented the changes. Unfortunately it didn't change the behaviour I outlined above. I still seemed to get the same results on testing multiple times via TestFlight. |
I'm not sure I had the right level of debugging enabled, but I've included a bunch of app logs for it both working and not working running on a device attached to my computer (not via TestFlight) using the old API. In each case I opened the app, tapped Log Token, then backgrounded the app and tried to send a push notification via the Firebase console directly to the FCM token. Old API, worked:
Old API, worked:
Old API, worked:
Old API, worked:
Old API, didn't work:
Old API, didn't work:
|
@chliangGoogle can you take a look at these logs? |
Something I just noticed - in the two examples that didn't work, the FCM registration token is logged before the "swizzling" message. So perhaps this is a race condition if the FCM token is registered prior to swizzling? And then the APNs Token isn't properly associated? Sorry if this makes no sense - I'm hypothesising without a full understanding of how it all works! To reiterate a point I believe I mentioned previously - if I log the APNs token directly and send via that rather than Firebase it always works. So it seems to suggest to me that it's an issue with the FCM token and APNs being linked up properly? |
@tomkelsey So is this just some device work, some doesn't? Could be a delivery performance issue, for the devices that didn't work, can you try again to see if they do? And are they just keep not working, or they start working as described as the title? If you can find a device that is consistently not working, can you send out debugLogs: Can you send the logs for at first open and reopen? |
@chliangGoogle the logs are above in this comment: #6553 (comment) |
@morganchen12 Yeah I saw the logs. My question is based on after seeing the logs. And I try to first understand the behavior and then get the real debug logs that the comment is missing. |
Got it, thanks for clarifying 😅 @tomkelsey can you provide the logs with |
@chliangGoogle Hey :) Thanks for your time. The logs are all from the same device. I've just been deleting the app and running it again from xcode each time. On TestFlight, it seems to be consistent in that:
I can't as reliably reproduce this when running in debug mode via xcode directly on my device. During the examples above, sometimes hard closing and re-opening the app appeared to fix it whilst other times it did not. I'll try and re-create again with the I can't however see how to get the logs for when I re-open the app. If I run from xcode, then hard close the app and re-open it, I believe I lose the connection to xcode and the logs? |
@tomkelsey |
Hi @chliangGoogle - no, it also happens when testing on my device and running from xcode. It just seems to be more difficult to reproduce. That said, I reliably recreated the issue three times in a row just now.
Please find logs below with the First open from xcode, not working:
Hard close, re-run from x-code, working:
|
I just tried doing all of the steps above but I skipped the "Restart phone" step. So I deleted the existing app then re-ran it from x-code and it worked first time. Here are those logs: First open from xcode, working (didn't restart the device between uninstalling and reinstalling):
|
Thank you for sharing that, I will take a look at. Seems like the token retry wasn't triggered when system detects a late APNS arrives. This is rare but somehow Apple returns the valid APNS token at a later time. |
@tomkelsey Are you using the quickstart objectiveC app or the swift app? |
@chliangGoogle Objective-C 👍 |
When I can't receive the push by using the FCM, I directly use the APNs as same app instance with nothing to do, it always works. I am trying to provide users with a reset button when they complain about not receiving the push. It will call |
@ewfian You can file a customer report issue with us and our team can query if the token has successfully bind for you. |
@tomkelsey I'm not able to reproduce, but somehow your apns token is updated in the middle of fetch that the request didn't go through. Looking into it right now. |
@tomkelsey I'm able to reproduce, but then stop reproducing again. I've put up a fix and feel free to test it with the fix branch in the mean time. |
I am also experiencing this issue in my current React Native app: This is what happens:
|
@chliangGoogle Thanks again for your time and effort on this. Unfortunately I'm still having the same issues after applying your fix. After a bit of Googling, I attempted to use your fix by including this line in my Podfile.
But believe I received errors as the master is currently at version 7.0 and the other pods ( So I cleared out the Pods folder and Podfile.lock and reinstalled, then I manually patched Just thought I'd explain the above in case that's the wrong approach and isn't properly patching things. I then repeated the steps above as before. Here are the logs: PS. For me the key to being able to reproduce it appears to be restarting the device between uninstalling and reinstalling the app. Not sure if that triggers a delay with the APNS stuff or not? May just be a device specific quirk! First install from xcode. Not working.
Hard close, re-run from xcode. Not working
Second hard close, re-run from xcode. Working
|
@tomkelsey Awesome! Thank you for testing it. I'm able to reproduce based on your trick. The latest fix should resolve your problem. |
@chliangGoogle Perfect, thank you. I've just tested it and it appears to be working well! 🎉 On a somewhat related note, there does appear to be a delay in the APNS stuff after restarting a device. If you uninstall the app, restart the device then almost immediately run the app from xcode there was, for me, almost a 10 second delay before the APNS stuff kicked in. If I background the app too quickly (before the ~10 second mark) sending a message via firebase still doesn't work (as presumably the APNS bits aren't linked up?). But foregrounding the app again seems to allow it to catch up and link everything up properly. This is much better than before as it doesn't require a hard restart of the app. Also, if you restart the device and wait for a period of time before running from xcode the APNS stuff is pretty much instant. So it seems unlikely it would be an issue very often in "real life" but is perhaps worth documenting/mentioning somewhere as could well be run into when testing and not realising a delay is potentially required after a restart? Thanks again for for your (and everyone else's) help in resolving this 👍 |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Background notifications not received on first app open. You have to hard close and re-open the app before they start working.
Steps to reproduce:
Install and deploy the iOS Messaging Quickstart app to TestFlight.
https://github.com/firebase/quickstart-ios/tree/master/messaging
The only change to the code I made was to copy the FCM token to the clipboard on tapping "Log Token"
This was my process:
When testing the app without TestFlight and just running from Xcode to my device I experienced inconsistent results. Sometimes the notification is received on first install/open and other times I have to quit the app and re-open it. However, via TestFlight it seems to be consistently not working following the steps above (I've repeated them 10 times without seeing any difference).
Happy to help with any extra information I can. As a heads up, I'm afraid I know very little about native development! I came across from this issue on the react-native-firebase repo - invertase/react-native-firebase#4299
The text was updated successfully, but these errors were encountered: