Advertisement
taweesoft

PushAlert Get Subscriber ID HTML

Jun 13th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.36 KB | None | 0 0
  1. <script>
  2.         (pushalertbyiw = window.pushalertbyiw || []).push(['onSuccess', callbackOnSuccess]);
  3.    
  4.         function callbackOnSuccess(result) {
  5.             console.log(result.subscriber_id); //will output the user's subscriberId
  6.             //TODO: save subscriber's id to localstorate or cookie and use it when call register function
  7.         }
  8. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement