Releases: OneSignal/OneSignal-Website-SDK
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
Release 151002
Send Unique Outcome for Web
Adds support for sending unique outcomes for Web called using sendUniqueOutcome
Release 151001
Includes an additional parameter device_type
to the request body in onNotificationOpen
function of ServiceWorker class https://github.com/OneSignal/OneSignal-Website-SDK/blob/master/src/service-worker/ServiceWorker.ts#L839.
Release 151000
Time and page view count based prompt delays
Added support for time and page view count based delay on automatic prompts, i.e. native and slidedown - #630.
- New settings are available in web settings at OneSignal dashboard.
- Supported for typical and custom configurations.
- Existing configurations not affected, to use please update your app config first.
More information in our docs here.
Other
Small fix for simplified debugging of service worker. Flip the flag self.shouldLog
on your service worker and see OneSignal logs output for your service worker.
Release 150900
New session tracking and support for web outcomes
- NEW Outcomes
- Session count now track after un-focusing the site for 30+ seconds then coming back.
- Before session counts were track by browser session.
- Time spent on site now tracked.
More details in this PR -> Feature branch: new session logic + outcomes #624