Skip to content

Set push token #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lironzemingo opened this issue Sep 28, 2023 · 6 comments
Closed

Set push token #29

lironzemingo opened this issue Sep 28, 2023 · 6 comments

Comments

@lironzemingo
Copy link

How do I set a Firebase push token?

@edsonjab
Copy link
Contributor

hi @lironzemingo , do yo mean about this token ?

@lironzemingo
Copy link
Author

hi @lironzemingo , do yo mean about this token ?

yes

@edsonjab
Copy link
Contributor

You can follow that URL (from firebase) they explain how implement in flutter, for your project, you can include analytics_flutter methods like 'track' inside the message methods.

@lironzemingo
Copy link
Author

lironzemingo commented Sep 29, 2023

You can follow that URL (from firebase) they explain how implement in flutter, for your project, you can include analytics_flutter methods like 'track' inside the message methods.

when I used the discontinued flutter_segment package, I set the token using :

await Segment.setContext({
  'device': {
    'token': yourTokenString
  },
});

(see docs)
isn't there something similar here?

@edsonjab
Copy link
Contributor

edsonjab commented Oct 4, 2023

Hi @lironzemingo sorry for the delay, you can follow this test as example to set token on your context:
image
On line 36 you can access to set a new token value for your context.

@ggirotto
Copy link

@edsonjab this sounds a little bit hacky to set directly on the platform instance. There's no plugin function to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants