1. Are you ready for the Galaxy S20? Here is everything we know so far!

Firebase, messages, tokens, etc.

Discussion in 'Android Development' started by 23tony, Oct 7, 2019.

  1. 23tony

    23tony Well-Known Member
    Thread Starter

    I'm wondering if anyone can point me to, or offer, a good overview of FIrebase messaging and the use of tokens and such.

    I've been sending messages to my emulator for a few weeks using the token, but suddenly, yesterday, I got "Token retrieval failed without exception" and the emulator has no token. This has led me into a hole about refreshing tokens, saving and updating tokens, etc.

    I can dig through everything I'm finding and will probably eventually understand what I need to do to make a truly seamless experience - but I'm hoping someone might have some information that will speed that process up a bit!

    Thanks!
     


  2. 23tony

    23tony Well-Known Member
    Thread Starter

    I suppose to clarify what the problem is:

    I have a key that corresponds to the emulator. I actually can't remember and can't find the reference to how I got this value, but I put that value in the "to" field of the message I'm sending:
    Code (Text):
    1. {
    2.     "notification": {
    3.         "title": "My Title",
    4.         "body": "My message goes here"
    5.     },
    6.     "to": "<key>"
    7. }
    Now, suddenly, this key isn't working anymore, so it looks like something has changed. How do I make sure that this stays up to date so that my app can continue to send notifications to the same device?
     
Loading...
Similar Threads - Firebase messages tokens
  1. Manish Thapa
    Replies:
    0
    Views:
    261
  2. TsubasaChronix
    Replies:
    0
    Views:
    865
  3. BushraEisa
    Replies:
    0
    Views:
    411
  4. Cinemato
    Replies:
    0
    Views:
    427
  5. Azad Mamiyev
    Replies:
    1
    Views:
    446
  6. krjayakannankr
    Replies:
    0
    Views:
    402
  7. arpan_de
    Replies:
    0
    Views:
    255
  8. sohanverma
    Replies:
    0
    Views:
    462
  9. Chin Chun Seong
    Replies:
    0
    Views:
    540
  10. moumen shobaky
    Replies:
    0
    Views:
    365

Share This Page

Loading...