Releases: OneSignal/OneSignal-Android-SDK
5.4.1
5.4.0
Channels: current
🔖 Auto-Generated Release Notes
Channels: current
What is NOT included
If you use one these features you will need to stay the matching version:
- 5.2.x - Identity Verification (JWT) - Feature is still in beta
- 5.3.x - Custom Outcomes - Feature is still in beta
🔧 Improvements
- improvement: Offloaded work on background threads. (#2394)
- improvement: Using a OneSignal Threadpool to execute all OneSignal related operations
- improvement: Added newer suspend methods that could be used in ViewModels to init the SDK, login and logout
- improvement: Improved code quality around PermissionsActivity.
🚀 New Features
- Feat: Detect for timezone changes and update the user (#2378)
- add: security hardening around webview javaScriptEnabled (#2377)
🐛 Bug Fixes
- Fix: ANR on POST to Outcomes endpoint (#2371)
- ANR GmsLocationController timing out ([#2396]#2396)
- ANR #2335
- ANR #2266
- ANR #2397
- ANR #2399
- ANR #2400
- Crash/ANR #2192
📦 Version
5.4.0
Upgrade Notes
This version solves ANRs from initWithContext, however if your app calls OneSignal accessors (ex. OneSignal.User.oneSignalID) on the main thread immediately after initWithContext you may see the ANR problem shift to them. To solve all OneSignal ANRs, we recommend moving all OneSignal accessor calls off the main thread.
5.4.0-alpha-03
Channels: alpha
🔖 Auto-Generated Release Notes
Channels: current
🚀 New Features
- Feat: Detect for timezone changes and update the user (#2378)
🐛 Bug Fixes
- Fix: ANR on POST to Outcomes endpoint (#2371)
🔧 Improvements
- add: security hardening around webview javaScriptEnabled (#2377)
📦 Version
5.4.0-alpha-03
5.1.38
5.4.0-alpha-02
Channels: alpha
🔖 Auto-Generated Release Notes
Channels: alpha
🚀 New Features
- feat: Add Kotlin MainApplication and suspend initialization support (#2374)
🐛 Bug Fixes
🔧 Improvements
📝 Uncategorized PRs
📦 Version
5.4.0-alpha-02
5.4.0-alpha-01
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!
5.1.37
5.1.36
Release 5.3.0-alpha-01
Channels: alpha
🎉 Custom Events Support
This alpha release introduces Custom Events support for the Android user model SDK.
To get started with using Custom Events, please contact [email protected] to enable this feature for your app. Please see documentation on Custom Events.
We appreciate your experience and feedback using this alpha version!