5.4.0-alpha-01
Pre-release
Pre-release
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!