@adv-ui/ij-braze-wrapper

1.5.0 • Public • Published

Jobs Braze wrapper

Description

This wrapper sets up the required logic in order to interact safely with the Braze browser SDK, named under the legacy appboy object

Features

Register for in-app messages

The subscribeToInApp method is possible to subscribe for any InApp campaign.

N.B. This method is automatically invoked when creating a Braze instance, so is not necessary to call it explicitly.

Register for Web Push Notifications

The registerPushMessages method allow to render the soft prompt for push notification triggering a Braze InApp campaign.

Since this is a custom event (Web Push Primed), if the soft prompt does not render check wheter the campaign is correctly configured in the Braze dashoboard.

The registerPushMessages method accept an optional object parameter for additional options.

{
  pageWhitelist: Array<string>
}
  • pageWhitelist: list of allowed pages for rendering the Prime for push campaign. If none is passed, the campaign is available for any page.
import Braze from '@adv-ui/ij-braze-wrapper'

const braze = new Braze()

// Trigger the campaign everywhere
braze.registerPushMessages()

// Trigger the campaign only for the passed pages
braze.registerPushMessages({ pageWhitelist: ['/ofertas-trabajo']})

Release a new version

Once you have merged your changes, the @s-ui/ci tool will automatically release a new minor version for the dependency @s-ui/ij-braze-wrapper

Readme

Keywords

none

Package Sidebar

Install

npm i @adv-ui/ij-braze-wrapper

Weekly Downloads

89

Version

1.5.0

License

ISC

Unpacked Size

9.46 kB

Total Files

6

Last publish

Collaborators

  • sebastian.badea.adevinta
  • thomas.page.ext
  • victoria.pasichnyk.ext
  • andresadv
  • daniel.perez.ext
  • albert.peiro
  • frandelacasa-adevinta
  • mariapaula.forero.ext
  • sziauberyte
  • oriol.hilari
  • victor.perez.adevinta
  • carlos-barroso-ext
  • carolina.mallo.ext
  • carlos.gonzalezl
  • david.nieto
  • ferran.simon
  • alfredo.zimperz
  • sergi.quintela
  • jamile.radloff
  • luz_adv
  • ignacio.rodriguez
  • izaskunpena
  • carlosvillu-adevinta
  • andresin87.adevinta
  • adria.velardos
  • emiliovz
  • ruben-martin
  • cristina.rodriguez.duque
  • pol.valls
  • lolaruf
  • arturo.vicente
  • sergio.escano
  • marc.benito
  • tomasadevinta
  • alex.castells
  • beatrizip
  • pablo.rey-adevinta
  • sergiocollado
  • cristhianb
  • alisa_bayanova
  • chloe.leteinturier
  • davidmartin2108
  • belen.santos
  • alfredo.arronte
  • joanleon-adv
  • luis-garrido
  • giodelabarrera.adevinta
  • aitor.rodriguez
  • oscar_ramirez
  • jordi.munoz
  • ignacio_navarro
  • serena.mejias
  • luard-adv
  • izeller
  • alejandro.ferrante
  • oriol.egea
  • pa.chruscinski.ext
  • jenifer.lopez
  • a.ferrer
  • ivanmlaborda
  • daniela.aguilera
  • xavi_conejo
  • pablogs
  • javier.miguel
  • marian.lucaci
  • oriol.puig
  • hpintos_adevinta
  • nacho_torrella
  • isabelgomez87
  • sabri-castelli
  • xavi.murcia
  • mario.fernandez.ext
  • azahara
  • javiauso
  • francisco.ruiz.lloret
  • schibstedspain