github OneSignal/OneSignal-Android-SDK 5.4.0-alpha-01

latest releases: 5.9.3, 5.9.2, 5.9.1...
pre-release8 months ago

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!

Don't miss a new OneSignal-Android-SDK release

NewReleases is sending notifications on new releases.