[[NEW]] DFINERY Growth Action Integration [Web]
Follow
Introduction
DFINERY Growth Action is to help you with user engagement marketing.
[[인용:안내:보통]] For DFINERY Growth Action
_ You can send targeting&scenario push using Growth Action.
_ Growth Action is Premium Add-on, you have to pay an extra charge fee for it. [Contact us for Growth Action]
Support Browser
Growth Action for Web push requires a minimum version for these browsers.
Window | Mac | Android | iOS | |
IE | X | - | - | - |
MS Edge | 17+ | 17+ | 17+ | - |
Google Chrome | 50+ | 50+ | 50+ | Unsupported |
Mozilla Firefox | 47+ | 47+ | 105+ | Unsupported |
Apple Safari | - | 10+ | - | Unsupported |
Samsung browser | - | - | 4+ | - |
DFINERY Console Setting
To use Growth Action in Web, developers need Web Push Setting in DFINERY Console.
Go to Growth Action -> Settings -> Web Push Setting in DFINERY Console.
For more information please see the Web Push Setting guide.
- Reference : [Web Push Setting]
Web SDK Setting
Web SDK integration
To use Growth Action in Web, you need to integrate Web SDK first.
Web SDK init push setting
To use Web Push add push setting code on SDK init api.
<head> . . <!-- AdBrix Web SDK init --> <script> window.adbrix.init({ appkey: 'your_appkey', webSecretkey: 'your_webSecretKey' // abx push setting push : { enable : true, serviceWorkerOptions : { file_name : 'service-worker.js', file_path : '/' scope : '/' } } }); </script> . </head>
Each option for push is the following.
Push
Setting the options for push messages on the web.
Options | Type | Note |
enable | bool | Either use push or not (default: false) |
serviceWorkerOptions | ServiceWorkerOptions | Service Worker Options [What is Service Worker] |
ServiceWorkserOptions
Set ServiceWorkseOption for push message
Options | Type | Note |
file_name | string | Service worker file name. |
file_path | string | Service Worker file location. |
scope | string | Range of Service Worker |
If you don't have your own ServiceWorker file please download this file and add it to your project. (You need to extract the js file) [Download]
If you already use ServiceWorker add this script to your ServiceWorker file.
//AdBrix Push Service worker importScripts('https://static.adbrix.io/web-sdk/latest/service-worker.min.js');
Push Subscription api
To the user receive a push message, call the push subscription API to request push permission from the user.
If the user already accepts push permission this API not going to call.
//AdBrix Push subscription alarm await adbrix.push.showPrompt();
[[인용:안내:보통]] If you are using Alternative Domain push, a push subscription popup will call after the push subscription notification.