I
I
Ivan2019-03-28 18:10:49
PHP
Ivan, 2019-03-28 18:10:49

Getting device_token with google cloud messaging?

Good afternoon.
I want to cancel the gravitec push mailing service.
I used to use a bunch of google cloud messaging + gravitec. In fact, all customers who signed up remained on GCM.
The question is how do I send mail to php since I don't know the device token. All data given by the user after the subscription is stored on gravitec.
Or maybe there is a way to get these tokens from GCM.
I looked through the documentation and didn't find anything. Only how to send push with a key.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-03-29
@402d

Subscribe to notifications
https://habr.com/en/post/321924/

<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <script
        src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
</head>
<body>
<button type="button" id="subscribe">Следить за изменениями</button>
</body>
</html>
<script src="https://www.gstatic.com/firebasejs/5.4.1/firebase.js"></script>
<script type="text/javascript" src="/firebase_subscribe.js"></script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question