Skip to content
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

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

Open
1 task done
wif70068 opened this issue Dec 28, 2024 · 0 comments
Open
1 task done

Comments

@wif70068
Copy link

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

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant