Skip to content

Releases: OneSignal/OneSignal-Website-SDK

Release 151400

14 Apr 23:41
8ff65ee
Compare
Choose a tag to compare

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

26 Feb 19:42
44badf1
Compare
Choose a tag to compare

macOS Chrome requireInteraction available & base html tag fix

  • Fix ServiceWorker scope handling of base html tag
    • Regression from version 151300
    • PR #754
  • requireInteraction now available for again for Chrome on macOS 10.15+.
    • Was forced disabled in version 150710 due to a breaking notification change in macOS 10.15
    • PR #755

Release 151301

25 Feb 03:38
bf7d47d
Compare
Choose a tag to compare

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.

Release 151300

19 Feb 22:17
bf67efb
Compare
Choose a tag to compare

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

08 Feb 22:23
Compare
Choose a tag to compare

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

04 Dec 00:19
Compare
Choose a tag to compare

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

18 Sep 16:28
ea9aa90
Compare
Choose a tag to compare

Release 151104 includes the following changes:

  • #701 RM CookieSyncer
  • #697 fix broken icon in bell
  • #696 Bump node-sass from 4.12.0 to 4.13.1
  • #698 Bump node-fetch from 1.7.3 to 2.6.1
  • #699 Bump yargs-parser from 13.1.1 to 13.1.2 in /express_webpack

Release 151103

02 Sep 18:50
Compare
Choose a tag to compare

Changes button and checkbox default blue color to a darker alternative for accessibility purposes.

Old color: #1165f1
New color: #4285f4

Release 151102

01 Sep 00:10
Compare
Choose a tag to compare
  1. Changed default notification title resolution to use site name #684
    Now the order is the following: Actual notification title (if present) -> default title set via setDefaultTitle -> site name as specified in OneSignal dashboard (required for all apps created via dashboard) -> document.title
  2. Refactored category slidedown to use web api for secure creation of slidedown UI #681
  3. Bug fix for http integrations not being able to send outcomes #683
  4. Fixed typo in default path string OneSignalSDKUpdaterWorker.js #678

Release 151100

21 Jul 22:50
Compare
Choose a tag to compare

Category Slidedown

  • Adds support for Category Slidedown (documentation)
  • Update to WebSDK Sandbox