Skip to content

5.4.0-alpha-01

Pre-release
Pre-release

Choose a tag to compare

@jinliu9508 jinliu9508 released this 26 Sep 21:54
6293840

Channels: Alpha

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!