Skip to content

SDK Release Notes - Web Apps

Track all the changes for the Web Apps JS SDK, providing valuable insights into every update, improvement, bug fix, and new feature introduced by the JS SDK development team. With each entry, developers gain a clear understanding of the modifications made in each version, facilitating seamless integration and adaptation of their applications.

Upgrading to 0.9.* version

[0.9.6] - 23.04.2024

Updated

  • Updated nudge to use locally stored userId for diff among login and anonymous users.
  • Using locally stored userId for events in case of no login in the same session.

[0.9.4] - 22.04.2024

Updated

  • fixed bug on nudge_response event for multiple nudges shown at a same time. Was using the time from the last nudge in all responses.

Added

  • Added ability to fetch nudges for anonymous users, set allowAnonymousUsers to true in createSDKInstance options.

[0.9.3] - 17.04.2024

Updated

  • Updated SDKInit method to decouple logIdentifyEvent and SDK init.
      CfLog.createSDKInstance(SDK_KEY,
        {
          activateNudgeMechanism: true,
          selfManagedNudges: true/false // based on your intervention criteria.
        }
      )
    
      AND 
    
      CfLog.getSDKInstance().identify(IdentifyAction.Login, 'USER_ID', userDetail)
    
  • Refactored EducationLevel enum to EducationalLevel AND IdentifyAction to IdentityAction
  • Merged schedule_delivery and delivery events.
  • The new delivery event now has the optional params to pass on delivery and dispatch coordinates as well.
  • Updated enums for payment events,
    • such as DeferredPaymentType & PaymentsMethodAction to PaymentAction
    • PaymentMethodType is refactored to PaymentMethod
  • SDK now provides the ability to fetch in-app nudges on an individual screen.
    • To enable that set selfManagedNudges to true in the CFLog options.
    • Then on your Home Screen of the app or any screen of your choice, use CfLog.getSDKInstance().fetchNudgesForScreen(NudgeScreenType.xx)
    • In the above, NudgeScreenType is an enum, if you don't want to show the messages based on a specific screen, use NudgeScreenType.None else NudgeScreenType.Home or other available screen types based on the intervention.

Added

  • Added Marital Status, Family Members, Birth Year, Gender and Number of Children under 5 years params as OPTIONAL for User Catalog.
  • Rate event has more enum values such as customer, hcw, hcw_site, facility, process, assessment, etc.
  • Payment Method now have more enum values such as mobile_transfer, cash, other, etc.
  • SDK nudges will now track nudge_response as expired as well for both push_notifications and in_app_messages.