OneSignal-Android-SDK icon indicating copy to clipboard operation
OneSignal-Android-SDK copied to clipboard

[Bug]: Brief white screen after app is in background for more than 30 seconds

Open wif70068 opened this issue 1 year ago • 0 comments

What happened?

After resuming the app from the background (after 30 seconds or more), a brief white screen appears. Upon debugging, it appears that OneSignal creates a new session when the app has been in the background for 30 seconds or longer. This issue only occurs with OneSignal, as it does not happen when the plugin is uninstalled.

OneSignal SDK 5.1.24 11 RKQ1.200826.002 Xiaomi Mi 9T Pro MIUI Global 12.5.1 Stabil 12.5.1.0 (RJDEUXM)

Steps to reproduce?

1. Use OneSignal Cordova plugin version 5.2.7 with Capacitor Android.
2. Open the app and send it to the background.
3. Wait for at least 30 seconds while the app is in the background.
4. Bring the app back to the foreground.
5. Observe a short blank white screen until the app is usable again.

What did you expect to happen?

normal resume without blank screen

OneSignal Android SDK version

Release 5.1.24

Android version

11, 9

Specific Android models

No response

Relevant log output

OneSignal: [main] BackgroundManager cancel background sync
OneSignal: [main] SessionService.onFocus() - fired from start: false
OneSignal: [main] SessionService: New session started at 1735401872225
OneSignal: [main] InfluenceManager.restartSessionIfNeeded(entryAction: APP_OPEN):
OneSignal:  channelTrackers: [ChannelTracker{tag=notification_id, influenceType=INDIRECT, indirectIds=["<uuid>"], directId=null}, ChannelTracker{tag=iam_id, influenceType=UNATTRIBUTED, indirectIds=null, directId=null}]
OneSignal: [main] ChannelTracker.getLastReceivedIds: lastChannelObjectReceived: [{"notification_id":"<uuid>","time":1734216358094},{"notification_id":"<uuid>","time":1734217197852},{"notification_id":"<uuid>","time":1734283443457},{"notification_id":"<uuid>","time":1734876512036},{"notification_id":"<uuid>","time":1734876557052},{"notification_id":"<uuid>","time":1734876681559},{"notification_id":"<uuid>","time":1734876731833},{"notification_id":"<uuid>","time":1735052055053},{"notification_id":"<uuid>","time":1735265540112},{"notification_id":"<uuid>","time":1735399881292}]
OneSignal: [main] InfluenceManager.restartSessionIfNeeded: lastIds: ["<uuid>"]
OneSignal: [main] ChannelTracker.getLastReceivedIds: lastChannelObjectReceived: []
OneSignal: [main] InfluenceManager.restartSessionIfNeeded: lastIds: []
HsmCoreServiceImpl: onTransact in code is: 103
MediaProcessHandler: playingUids: 
RecentsTaskLoadPlan: to show tasks size is 4
OneSignal: [main] OutcomeEventsController.sessionStarted: Cleaning outcomes for new session
OneSignal: [main] OperationRepo.enqueue(operation: {"name":"track-session-start","appId":"<uuid>","onesignalId":"<uuid>"}, flush: true)
JankService: processEntry, not beta version or commercial log off
OneSignal: [main] OperationRepo.enqueue(operation: {"name":"refresh-user","appId":"<uuid>","onesignalId":"<uuid>"}, flush: false)
OneSignal: [OpRepo] processQueueForever:ops:
OneSignal: [bucket:21, retries:0, operation:{"name":"track-session-start","appId":"<uuid>","onesignalId":"<uuid>","id":"<uuid>"}
OneSignal: ]
OneSignal: [OpRepo] UpdateUserOperationExecutor(operation: [{"name":"track-session-start","appId":"<uuid>","onesignalId":"<uuid>","id":"<uuid>"}])
Capacitor: App started
OneSignal: [DefaultDispatcher-worker-3] HttpClient: Request Sent = PATCH https://api.onesignal.com/apps/<uuid>/users/by/onesignal_id/<uuid> - Body: {"refresh_device_metadata":true,"deltas":{"session_count":1}} - Headers: Accept=[application/vnd.onesignal.v1+json], Content-Type=[application/json; charset=UTF-8], OneSignal-Install-Id=[<uuid>], OneSignal-Subscription-Id=[<uuid>], SDK-Version=[onesignal/android/050124], SDK-Wrapper=[onesignal/cordova/050207]
ZrHung.AppEyeUiProbe: notify runnable to start.
ZrHung.AppEyeUiProbe: restart watching
OneSignal: [main] ApplicationService.onActivityResumed(1,APP_OPEN): com.<app-name>@<random-id>

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

wif70068 avatar Dec 28 '24 22:12 wif70068