OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com
Updated included Android SDK to 5.0.2 Updated included iOS SDK to 5.0.2
Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/5.0.0...5.0.1
In this major version release for the OneSignal Cordova SDK, we are making a significant shift from a device-centered model to a user-centered model. A user-centered model allows for more powerful omni-channel integrations within the OneSignal platform.
Note that Identity Verification has not yet been enabled in this version and will be released in a later version
setLaunchURLsInApp
has been removedOneSignal.init
to OneSignal.initialize
OneSignal.Notifications.permission
to OneSignal.Notifications.hasPermission()
addEventListener
and removeEventListener
InAppMessageClickResult.urlTarget
a string type and fix iOS so it matches AndroidOneSignal.Notifications.permissionNative()
methodLogLevel
enumOneSignal.Notifications.canRequestPermission()
for Android await OneSignal.Location.isShared()
await OneSignal.Notifications.requestPermission(fallbackToSettings?: boolean)
await OneSignal.Notifications.canRequestPermission()
await OneSignal.InAppMessages.getPaused() // which is also renamed from `isPaused`
Updated included Android SDK to 5.0.0 Updated included iOS SDK to 5.0.1
For information please see the migration guide.
Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/5.0.0-beta-02...5.0.0
🚧 Beta release. Please test thoroughly prior to production use. 🚧
Notification, In App Message, and Push Subscription events have been renamed. The migration guide has been updated to reflect the changes.
Updated included Android SDK to 5.0.0-beta4 Updated included iOS SDK to 5.0.0-beta-04
Bump native iOS SDK version from 3.12.3
to 3.12.4
Bump native Android SDK version from 4.8.2
to 4.8.5
🚧 Beta release. Please test thoroughly prior to production use. 🚧
In this major version beta release for the OneSignal SDK, we are making a significant shift from a device-centered model to a user-centered model. A user-centered model allows for more powerful omni-channel integrations within the OneSignal platform.
For information please see the migration guide.
Updated included Android SDK to 5.0.0-beta2 Updated included iOS SDK to 5.0.0-beta-02
If you run into any problems, please don’t hesitate to add to this issue!
[Feature] Add iOS Live Activities support in #824 that include 2 methods for associating and deleting a temporary push token with an Activity ID on the OneSignal server.
Documentation
Example usage:
window.plugins.OneSignal.enterLiveActivity("activity_id", "token");
window.plugins.OneSignal.exitLiveActivity("activity_id");
Full changelog: 3.2.0...3.3.0
Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/3.1.1...3.2.0
OneSignalPlugin
so it can be imported in consumer typescript code by @wilgert in https://github.com/OneSignal/OneSignal-Cordova-SDK/pull/806
Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/3.1.0...3.1.1
promptForPushNotificationsWithUserResponse
now has an optional fallbackToSettings
boolean parameter. Use the fallbackToSettings
parameter to prompt the user to open the settings app if a user has already declined push permissions.promptForPushNotificationsWithUserResponse(fallbackToSettings?: boolean, handler?: (response: boolean) => void)
4.8.1
from 4.7.3
3.11.2
from 3.11.1
Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/3.0.4...3.1.0
setLanguage(language, onSuccess?, onFailure?)
#790
Adds optional success and failure callbacks to the setLanguage method.setInAppMessageLifecycleHandler
in #787Full Changelog: https://github.com/OneSignal/OneSignal-Cordova-SDK/compare/3.0.3...3.0.4