Skip to content

Releases: OneSignal/OneSignal-Android-SDK

2.1.0 Release

13 Feb 05:18
Compare
Choose a tag to compare

Simpler customization of open action and misc fixes

  • Now supports application meta-tag 'com.onesignal.NotificationOpened.DEFAULT' with the value 'DISABLE' to turn off the launching of the main Activity.
    • No longer need to create a BroadcastReceiver just to have your NotificationOpenedHandler fire in your Application class.
  • Fixed issue with deleteTag not working when the value is a number.
  • Added a number of checks around tag methods to make them consistent to what the REST API supports.
  • Fixed location warning.
  • Reverted back to Robolectric 3.0 as custom shadows in 3.1 were not working.

2.0.9 Release

11 Feb 02:35
Compare
Choose a tag to compare

Added xamarin build target

  • Modified gradle script to take 4 properties that make xamarin aar support easy.
  • Gradle can now produce a onesignal-xamarin-aar file used with Xamarin projects.
  • Removed maven push logic from gradle which was causing a build error.
  • Made OneSignalDbContract package-private to fix Xamarin build error.

2.0.8 Release

19 Jan 04:41
Compare
Choose a tag to compare

Default notification sound fix

  • Fixed issue where onesignal_default_sound was not being used as a default notification sound.

2.0.7 Release

19 Jan 04:32
Compare
Choose a tag to compare

Rare Registration and location fields fixes, and open callback improvements

  • Fixed rare issue where the device would not register with OneSignal due to intermittent connection issues or GMS aar file version mismatches.
  • Added new removeNotificationOpenedHandler method.
    • Required for Corona and Cordova SDKs to fix a back button issue.
  • Fixed issues with location fields.

2.0.5 Release

08 Jan 22:24
Compare
Choose a tag to compare

Registration with location and old GMS fix

  • Fixed issue where device may not register if the app has location permission and a very old (older than 7.0.0) or incomplete version of the Google Play services client library is used.

2.0.4 Release

01 Jan 02:33
Compare
Choose a tag to compare

App close fix

  • Fixed issue where notification callback would fire instead of showing a notification when init was called from onCreate of the Application class.

2.0.3 Release

24 Dec 03:19
Compare
Choose a tag to compare

Proguard fixes

  • Fixed registration, IAP tracking, and Android 2.3.3 issues when proguard is enabled.

2.0.2 Release

19 Dec 07:42
Compare
Choose a tag to compare

Compatibility fix for GMS library 8.1.0 and newer

  • Fixed compatibility issues when using GMS (Google Play services library) 8.1.0 or newer in your app.
    • Also insured backwards compatibility to 7.0.0.
  • Better clean up of internal sdk resources to prevent warnings in StrictMode.

2.0.1 Release

16 Dec 04:30
Compare
Choose a tag to compare

Lowered required support library revision and geo tag fix

  • No longer requires revision 23 of the Android Support Library. 22 is need for all features but an older one can be used safely.
  • Fixed bug where geo tag permission prompt did not work if used from the Application class on Android 6.0

2.0.0 Release

12 Dec 01:21
Compare
Choose a tag to compare

OneSignal Android Native SDK 2.0!

  • Network optimizations and offline support for tags, subscription setting, and getTags.
  • Added geo tagging.
  • Removed loopj library
    • Now uses the HttpURLConnection class which is built into the Android OS.
  • Smaller SDK size
  • Fixed Activity leak.
  • Simpler setup, no longer need to add OneSignal.onResumed() and OneSignal.onPaused() to each activity.
    • The SDK now handles this for you automatically.
  • New builder init pattern.
  • OneSignal app id and Google project number now pulled from the AndroidManifest.xml.
    • Android Studio users - Set these in the gradle file. See update notes below.
  • Now support Android market:// links.
    • Now directly opens all links instead of opening your app first.

Updating from 1.x.x

1. Add the following to your gradle file:

compile 'com.google.android.gms:play-services-location:+'
compile 'com.android.support:appcompat-v7:23.1.1'

`2.` Add `onesignal_app_id` and `onesignal_google_project_number` to your app's gradle file.
manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                        onesignal_app_id: "b2f7f966-d8cc-11e4-bed1-df8f05be55ba",
                        onesignal_google_project_number: "703322744261"]

`3.` Move OneSignal initialization to your Application class and use new builder pattern:
OneSignal.startInit(this)
   .setAutoPromptLocation(true)
   .setNotificationOpenedHandler(new ExampleNotificationOpenedHandler())
   .init();

`4.` Remove all calls to OneSignal.onResumed() and OneSignal.onPaused() `5.` Update any calls to GameThrive with OneSignal.

See the all new setup documentation here:
https://documentation.onesignal.com/docs/android-studio-sdk-installation