Skip to content

Releases: OneSignal/OneSignal-Android-SDK

Release 5.1.8

10 Apr 02:06
1c9bf66
Compare
Choose a tag to compare

🐛 Bug Fixes

Release 5.1.7

29 Mar 18:15
55c5443
Compare
Choose a tag to compare

🐛 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)
  • Fix for context not being set on all entry points (#2018)

🔧 Maintenance

  • Battery improvements
    • Possibly resolves issue #1880 "Egregious levels of battery drain"
    • Prevent OperationRepo from continuously pulling when empty (#2033)
    • Add backoff to OperationRepo when retrying network calls (#2017)
    • Limit refresh User and GET IAMs to foreground (#2036)
  • 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

09 Mar 01:37
74c0d20
Compare
Choose a tag to compare

✨ 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.

🐛 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
  • Fix rare null crash with timeFocusedAtMs #2025

Release 5.1.6

01 Mar 22:33
c00b322
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Make ServiceBuilder.getService thread safe (#2012)
    • Will fix some null Context crashes from initWithContext
    • Addresses issues; #1990 & #1917
  • 4.x.x migration: Missing onesignalId during initWithContext (#2009)

🔧 Maintenance

  • [Internal only] Upgraded compileSdkVersion to 34 (#1994)
    • Apps can still use Android compile SDK 33, target SDK version unaffected
  • [Internal only] Added nested JSONObject support to JSONObject.toMap() (#2004)
  • [Internal only] Upgrade tests to JUnit5 and Kotest to 5.8.0 (#2006)

Release 5.1.5

22 Feb 20:47
f325142
Compare
Choose a tag to compare

✨ Improvements

  • Keep banner-style IAMs on the screen while background is tapped in #1999

Release 5.1.4

09 Feb 22:29
1d0d45f
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix: exception due to missing notification_types when upgrading from v4 to v5 #1986

🔧 Maintenance

  • Update firebase-messaging version to 23.4.0 #1987
  • Upgrade play-services-basement to 18.1.0 #1982

Release 5.1.3

07 Feb 23:30
e6da1e5
Compare
Choose a tag to compare

What's Changed

🐛 Bug Fixes

  • Fix an issue with sending IAM impressions in #1980

Release 5.1.2

29 Jan 20:27
ae7fa7c
Compare
Choose a tag to compare

What's Changed

  • Concurrent modification in event producer - #1970

Full Changelog: 5.1.1...5.1.2

Release 5.1.1

12 Jan 00:36
709b441
Compare
Choose a tag to compare

What's Changed

  • Deadlock and concurrent modification related to Model.data #1944
  • Fix: Method optIn() not working after optOut() has been called #1957
  • [Fix] Bump adroidx.work:work-runtime-ktx to 2.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

28 Dec 21:34
52987ab
Compare
Choose a tag to compare

🎉 New Methods

  • Add getter for onesignalId and externalId and a IUserStateObserver 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) or OneSignal.Location.isShared (in Kotlin)
  • 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