Skip to content

Conversation

@jinliu9508
Copy link
Contributor

@jinliu9508 jinliu9508 commented Sep 26, 2025

🎉 5.4.0-alpha-01

Highlights

  • Non-blocking initialization

    • OneSignal.initWithContext has been refactored so heavy disk and network work are moved off the main thread. ANRs related to initialization should now be effectively eliminated when the SDK is used in the recommended way (see Notes below).
  • Performance Improvements

    • In our testing, the time spent on the main thread during initialization dropped by ~80% (e.g., from ~47–49 ms down to ~8 ms on a cold start in debug builds).

Notes

  • If your app calls OneSignal accessors (ex. OneSignal.User.oneSignalID) immediately after initWithContext, we recommend moving all OneSignal accessor calls off the main thread.
  • No breaking API changes; existing initWithContext(context) continues to work as before.

We appreciate your experience and feedback using this alpha version!


This change is Reviewable

@jinliu9508 jinliu9508 requested a review from jkasten2 September 26, 2025 21:36
@jinliu9508 jinliu9508 merged commit 6293840 into 5.4-main Sep 26, 2025
1 check passed
@jinliu9508 jinliu9508 deleted the rel/5.4.0-alpha-01 branch September 26, 2025 21:44
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

Successfully merging this pull request may close these issues.

3 participants