Skip to content

3.5.0 Release

Compare
Choose a tag to compare
@jkasten2 jkasten2 released this 27 Apr 22:58

Added Observers and Misc fixes

New Methods

  • addPermissionObserver
    • onPermissionChanged will fire when user changes Android notification settings.
      • This fires when your app is open / resumed if the user blocks notifications under Settings > App.
  • addSubscriptionObserver
    • onSubscriptionChanged will fire when notification subscription properties change.
      • Includes userId, pushToken, userSubscriptionSettings, and subscribed
  • getPermissionSubscriptionState
    • Returns an object with permission and subscription instances with:
      • subscription.userId, subscription.pushToken, subscription.useSubscriptionSettings, permission.enabled
  • Added JSONObject constructors to OSNotification* classes. Request #198

Fixes

  • Misc Fixes when group key is used (AKA stacked notifications)
    • Fixes for closing an in-app alert with a group key set when no other other exist in the shade with the key
      • Fixed issue where this could show a notification in the shade.
      • Fixed an instability issue that could crash the app after an unrelated OneSignal event.
    • Fixed issue where if first notification part of a group key was show as an in app alert future notifications wouldn't group if more are received with the same key when the app is out of focus.
  • Badges are now cleared when notifications are disabled.
  • Fixed SyncService error if started with a null Intent.