mardi 27 mars 2018

when click on notification no response (one signal)

var OneSignal = window.OneSignal || [];

/* Do NOT call init twice */
OneSignal.push(["init", {
  appId: "786ed1c1-634b-44ac-b05f-caab9b8007bb",
  notificationClickHandlerMatch: 'exact', /* See above documentation: 'origin' relaxes tab matching requirements, 'exact' is default */
  notificationClickHandlerAction: 'navigate', /* See above documentation: 'focus' does not navigate the targeted tab, 'navigate' is default */
  /* ... */
}]);

OneSignal.push(["addListenerForNotificationOpened", function (data) {
  alert("Received NotificationOpened:");
  alert(data);
}]); // here to click

[enter image description here][1]

[1]: https://i.stack.imgur.com/eg9sr.pngstrong text




Aucun commentaire:

Enregistrer un commentaire