Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Message.class -> field "To" - should be type of List<String> #8

Open
Bryksin opened this issue Apr 30, 2020 · 0 comments
Open

Message.class -> field "To" - should be type of List<String> #8

Bryksin opened this issue Apr 30, 2020 · 0 comments

Comments

@Bryksin
Copy link

Bryksin commented Apr 30, 2020

Hi

According to the official documentation field to is a an array which can take multiple tokens

the example provided in the official documentation:

[
  {
    "to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
    "sound": "default",
    "body": "Hello world!"
  },
  {
    "to": "ExponentPushToken[yyyyyyyyyyyyyyyyyyyyyy]",
    "badge": 1,
    "body": "You've got mail"
  },
  {
    "to": [
      "ExponentPushToken[zzzzzzzzzzzzzzzzzzzzzz]",
      "ExponentPushToken[aaaaaaaaaaaaaaaaaaaaaa]"
    ],
    "body": "Breaking news!"
  }
]

look at the 3d message in the list, it has multiple tokens

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

No branches or pull requests

1 participant