-
Notifications
You must be signed in to change notification settings - Fork 39
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
ForegroundShow flag is being omitted #8
Comments
Thank you for your advice. There is no need to add a default value to a Boolean value, it can be judged according to the meaning of the field. |
I'm not sure if you understood what I tried to explain. The problem here is that Using this library it is not possible to create a notification with Besides the issue itself, I'm also suggesting improving Huawei's documentation by saying that if the flag is not sent in the request's body then it is considered as |
Thank you for your advice, we will add the default value of |
Specifying in HMS documentation that default value for The property defined here has an I opened PR #9 that removes the |
HMS PushKit ForegroundShow flag defaults to
true
so this field should be sent explicitly withfalse
in order to don't display a notification when the app is in foreground.Huawei documentation should also be improved in order to say explicitly that the default value of
foreground_show
flag istrue
if it is not sent.Documentation links:
https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-fgrd-show-0000001050040126
https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/https-send-api-0000001050986197#EN-US_TOPIC_0000001134031085__p163211583235
The text was updated successfully, but these errors were encountered: