Releases: OneSignal/OneSignal-Website-SDK
Releases · OneSignal/OneSignal-Website-SDK
Release 150700
On the way to making typical site setup more powerful and to deprecating ambiguous autoRegister flag, we are introducing the following changes:
- Adding a new
autoResubscribeflag- Solely responsible for automatically subscribing users who have current notification permissions in the allowed state and have not opted out but miss their subscription data.
- Can be set in the dashboard for all types of integrations. Can be overwritten in custom setup but is not required as part of init options.
- Adding a native browser prompt as a prompt option
- Supported on sites not using the subscription workaround
- Can be set to do auto-prompting with the new
autoPromptflag or called manually viaOneSignal.showNativePrompt. - More info in our documentation -> https://documentation.onesignal.com/docs/native-browser-prompt
- Updated slidedown prompt
- Not also has
autoPromptproperty to configure whether it will be shown automatically or programmatically usingOneSignal.showSlidedownPrompt - Native prompt takes priority over slidedown if both selected and both have auto prompting enabled.
- Not also has
- All changes are backwards compatible and will map correctly for the
autoRegisterflag unless new flags are explicitly present.
This release also includes:
- Updated error message text if no matching app id found (thanks @rafaelncarvalho for pointing it out)
- Refactored initialization logic to be more straightforward.
registerForPushNotificationsno longer subscribes opted out users, rolled back to the previous implementation for consistency.- Fixed ES5 console errors with OneSignal.push(())
Release 150600
Reduced SDK Size
OneSignalSDK.jsis now a small shim that checks if the browser supports push before loading the full SDk.OneSignalPageSDKES6.jswill be dynamically added to the page- This also means less bandwidth as OneSignalPageSDKES6.js is a smaller size
- Even less bandwidth for browsers that do no support push, such as iOS.
Release 150506
Includes:
- Added support for setting and removing external user id on a player record. Works similar to tags.
Release 150505
Release 150503
Release 150501
Includes the following improvements:
150500 Release
150404 Release
150403 Release
Fix for OneSignal init in Chrome 69 on http
- Fix for Issue #404
150402 Release
Init on HTTP "Secure origins" Error Fix
- Fixes
DOMException: Only secure origins are allowederror during init on HTTP sites- Issue #391