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

Wrong type for TitleArgs in the Notification struct #29

Closed
ghost opened this issue Nov 24, 2020 · 2 comments
Closed

Wrong type for TitleArgs in the Notification struct #29

ghost opened this issue Nov 24, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 24, 2020

How can I pass TitleLocArgs and BodyLocArgs values as array of strings? In the message.go file
these values are defined as plain strings whereas FCM documentation specifies them as array of strings .

TitleLocArgs string `json:"title_loc_args,omitempty"`

BodyLocArgs string `json:"body_loc_args,omitempty"`

@ghost
Copy link
Author

ghost commented Nov 24, 2020

When I make a request with TitleLocArgs I get an error Error Message: unknown error type. However when I make same request connecting directly to FCM server everything works fine.

@appleboy
Copy link
Owner

Due to Migrate from legacy FCM APIs to HTTP v1. Please see the news in the comment #38 (comment)

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

1 participant