Skip to content
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

Localised notifications payload #12691

Open
alexandrter opened this issue Apr 23, 2024 · 0 comments · May be fixed by #12709
Open

Localised notifications payload #12691

alexandrter opened this issue Apr 23, 2024 · 0 comments · May be fixed by #12709
Assignees
Labels
good first issue Good for newcomers platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. plugin: messaging type: documentation Improvements or additions to documentation

Comments

@alexandrter
Copy link

alexandrter commented Apr 23, 2024

The documentation states that the message payload for a localised message should look like this:

{
  "data": {
    "title_loc_key": "NOTIFICATION_TITLE",
    "body_loc_key": "NOTIFICATION_MESSAGE"
  }
}

However, as commented by k-marciniak here, the actual payload for android should look something like:

{
  "androidConfig": {
    "notification": {
         "titleLocKey": "NOTIFICATION_TITLE",
         "bodyLocKey": "NOTIFICATION_MESSAGE"
      }
  }
}

It would also help a lot if the documentation could be adjusted for iOS as well since it's very inconvenient to test FCM on iOS and the currently documented approach did not work for me.

@alexandrter alexandrter added good first issue Good for newcomers type: documentation Improvements or additions to documentation labels Apr 23, 2024
@russellwheatley russellwheatley added plugin: messaging platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. labels Apr 25, 2024
@TarekkMA TarekkMA linked a pull request Apr 26, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. plugin: messaging type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants