Releases: OneSignal/OneSignal-Android-SDK
Releases · OneSignal/OneSignal-Android-SDK
Release 5.1.8
🐛 Bug Fixes
- external_id skipped and updates stop if something updates the User (such as addTag) shortly before login is called (#2046)
- Fixes [Bug]: Using OneSignal.login() does not set externalId in Subscription Records #2043
- Possibly fixes [Bug]: some of the user device is not in the subscription list #2041
- Possibly fixes [Bug]: In v5, the Subscription Status does not change to 'Subscribed'
- Bug existed since 5.0.0 but triggered more often in 5.1.7, due to batching improvements in PR #2033
Release 5.1.7
🐛 Bug Fixes
- Fix network call batching not waiting the full 5 seconds in most cases to reduce the total number of REST API calls to OneSignal. (#2033)
optIn()
not prompting if called before push subscription is created on backend (#2037)- Fix crash with EventProducer's fire events (#2034)
- Fixes issue #2007
- Fix for context not being set on all entry points (#2018)
- Fixes issue #1282
🔧 Maintenance
- Battery improvements
- Duplicate GET /user call on cold start when calling login with the same external_id (#2015)
- [Docs] Update supported android versions in readme to include Android 14 (#2024)
- This was already the case, just the docs didn't reflect this.
- [Internal Only] Switch to kotest-extensions-android (#2023)
Release 4.8.8
✨ Enhancements
- Add setting to prefer HMS over FCM #1984
- Add
<meta-data android:name="com.onesignal.preferHMS" android:value="true"/>
under your<application>
tag if you like to use this setting. - See OneSignal's Prefer HMS over FCM documentation page for more details.
- Only applies if you app has both FCM and HMS libraries AND the device has both "HMS Core" AND "Google Play services" installed.
- Only 2020 and older Global variants of Huawei devices would have both installed by default.
- Add
🐛 Bug Fixes
- Attempt retrying OutOfMemoryError errors when starting threads. #2027
- Make sure your app doesn't have any memory leaks and is handling onTrimMemory so the SDK can move on once memory is free
- Fix rare null crash with
taskQueueWaitingForInit.poll()
#2026- Addresses issue #1761
- Fix rare null crash with
timeFocusedAtMs
#2025
Release 5.1.6
Release 5.1.5
✨ Improvements
- Keep banner-style IAMs on the screen while background is tapped in #1999
Release 5.1.4
Release 5.1.3
Release 5.1.2
Release 5.1.1
What's Changed
- Deadlock and concurrent modification related to Model.data #1944
- Fix: Method
optIn()
not working afteroptOut()
has been called #1957 - [Fix] Bump
adroidx.work:work-runtime-ktx
to2.8.1
#1960- Requires apps use compile SDK version 33 or higher now
Full Changelog: 5.1.0...5.1.1
Release 5.1.0
🎉 New Methods
- Add getter for
onesignalId
andexternalId
and aIUserStateObserver
to be notified of changes #1909- See the API Reference in the Migration Guide for usage, under User Namespace
⚠️ Behavior Changes
- Location sharing with OneSignal now defaults to false #1942
- You will need to explicitly enable location sharing with OneSignal with
OneSignal.getLocation().setShared(true)
(in Java) orOneSignal.Location.isShared
(in Kotlin)
- You will need to explicitly enable location sharing with OneSignal with
- Removed
ACCESS_COARSE_LOCATION
permission from the OneSignal Location module #1949- You will need to include location permission in your own app's manifest
🐛 Bug Fixes
- Fix: Adding the same trigger multiple times will still display the in-app message #1925
- Fix: Reliably show IAMs when they are triggered early in the foregrounding process #1926
- Fix: Notification click event was not fired without IAM module #1931
- Fix: Crash on bindService with broadcast receiver context #1935
- Fix: IllegalStateException on call to Google's location library #1940
Full Changelog: 5.0.5...5.1.0