obtinere token fcm in php
Last Updated: Dec 27 2019 12:08, Started by
bunicu9
, Dec 27 2019 12:08
·
0
#1
Posted 27 December 2019 - 12:08
Incerc sa adaug notificari in site-ul meu cu firebase
Acum incerc sa salvez token-ul in baza de date mysql const messaging = firebase.messaging(); messaging .requestPermission() .then(function () { MsgElem.innerHTML = "Notification permission granted." console.log("Notification permission granted."); // get the token in the form of promise return messaging.getToken() }) .then(function(token) { TokenElem.innerHTML = "token is : " + token }) .catch(function (err) { ErrElem.innerHTML = ErrElem.innerHTML + "; " + err console.log("Unable to get permission to notify.", err); }); Cum pot obtine acest token si in php pentru a putea salva in baza mea de date? |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users