Skip to content

Releases: OneSignal/OneSignal-Website-SDK

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

Release 151002

08 Jun 21:48
Compare
Choose a tag to compare

Send Unique Outcome for Web

Adds support for sending unique outcomes for Web called using sendUniqueOutcome

Release 151001

18 May 19:52
Compare
Choose a tag to compare

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

22 Apr 20:41
Compare
Choose a tag to compare

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

17 Apr 20:58
20d112b
Compare
Choose a tag to compare

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