Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49170

Retrieving device tokens form Ionic Platform

$
0
0

@prz wrote:

I've just got through Ionic Push / Full Setup docs and succeeded in sending pushes via Ionic Platform. The problem comes when I try to make my own POST http request. I am obliged to pass an array of device tokens ( "tokens": ["your", "device", "tokens"] ). It seems that tokens are persisted on Ionic Platform (code taken from the tutorial):

push.saveToken(token);  // persist the token in the Ionic Platform

aren't they?
And there comes the problem I'm struggling with: in order to make my own push POST request the device tokens should be stored on my own server (am I right?). But this is what I really do not want do to. I wish I could get all the registered tokens from Ionic Platform via another http request, is it ever possible?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>