Releases: OneSignal/OneSignal-Website-SDK
Releases · OneSignal/OneSignal-Website-SDK
Release 151400
Slidedown Prompts & Misc Fixes
- Includes new Slidedown prompts. More details soon!
- Fixes to documentation links that show up to help debug configuration errors. PR #767
Release 151302
macOS Chrome requireInteraction available & base html tag fix
Release 151301
Update ServiceWorker if its href or scope changes
- If you change the scope or href to your OneSignal ServiceWorker it will register on the next page reload.
- PR #747
Release 151300
Removed ServiceWorker Page Control Requirement
- No longer have to visit a page that is in OneSignal's ServiceWorker scope to subscribe for push. - PR #745
- Addresses compatibility with other ServiceWorkers, such as PWAs.
- OneSignal's ServiceWorker default scope is still root
"/"
, this is to prevent any possible breaking changes of existing setups. - OneSignal's ServiceWorker scope can be customized to be non-root to take advantage of this change.
⚠️ Warning: Existing subscribers won't move over to the new ServiceWorker scope automatically if you customize it. This is being addressed in a future update with more details on how to transition smoothly.
Release 151200
Timezone Identifier
There is currently a known issue with time zones. There is a case where notifications sent after DST (Daylight Savings Time) changed end arriving on the wrong UTC user. This release includes a Timezone Identifier to fix this issue.
Configuration Changes
Main PR: #738
- Includes configuration changes for upcoming Web Prompts feature that allows for a smoother transition to the new configuration schema.
- Supports configuring multiple slidedown options in WebSDK Configuration
Example of "Version 2" Configuration Schema:
{
"slidedown":{
"prompts":[
{
"type":"push",
"autoPrompt":true,
"icon":"icon url",
"text":{
"acceptButton":"Allow",
"cancelButton":"No Thanks",
"actionMessage":"We'd like to send you notifications for the latest news and updates."
},
"delay":{
"pageViews":1,
"timeDelay":0
}
},
{
"type":"category",
"autoPrompt":true,
"icon":"icon url",
"delay":{
"pageViews":1,
"timeDelay":0
},
"text":{
"acceptButton":"Allow",
"cancelButton":"No Thanks",
"actionMessage":"We'd like to send you notifications for the latest news and updates.",
"negativeUpdateButton":"Cancel",
"positiveUpdateButton":"Save Preferences",
"updateMessage":"Update your push notification subscription preferences."
},
"categories":[
{
"tag":"news",
"label":"News"
},
{
"tag":"product_updates",
"label":"Product Updates"
}
]
},
{
"type":"smsAndEmail",
"icon":"icon url",
"delay":{
"pageViews":1,
"timeDelay":0
},
"text":{
"acceptButton":"Allow",
"cancelButton":"No Thanks",
"actionMessage":"We'd like to send you notifications for the latest news and updates.",
"smsLabel":"Phone Number",
"emailLabel":"Email Address",
"confirmMessage":"message here"
}
}
]
}
}
Release 151105
Identity Verification
Highly Recommended
OneSignal supports a higher security method known as Identity Verification. This helps prevent users from impersonating one another by generating a user-specific token on your server, if you have one.
Enabling Identity Verification applies to:
- Adding Email and SMS records into OneSignal AND associated tags.
- Setting external_user_id for any record across all channels (Push, Email, SMS)
Reference
Release 151104
Release 151103
Changes button and checkbox default blue color to a darker alternative for accessibility purposes.
Old color: #1165f1
New color: #4285f4
Release 151102
- Changed default notification title resolution to use site name #684
Now the order is the following: Actual notification title (if present) -> default title set viasetDefaultTitle
-> site name as specified in OneSignal dashboard (required for all apps created via dashboard) -> document.title - Refactored category slidedown to use web api for secure creation of slidedown UI #681
- Bug fix for http integrations not being able to send outcomes #683
- Fixed typo in default path string
OneSignalSDKUpdaterWorker.js
#678
Release 151100
Category Slidedown
- Adds support for Category Slidedown (documentation)
- Update to WebSDK Sandbox