Code Monkey home page Code Monkey logo

hms-push-serverdemo-go's Issues

Refresh token is not work

Access token after refresh token is not replace on http request for send push notification.
HTTP request still use previous access token.

Incorrect data type in Color struct

Should Color struct data type be float64 instead of int? hms api gate answers: Illegal payload, blue of color in light settings must rang [0,1] when I pass integer value bigger than 1.

type Color struct {
       	Alpha int `json:"alpha"`
       	Red   int `json:"red"`
       	Green int `json:"green"`
       	Blue  int `json:"blue"`
}

ForegroundShow flag is being omitted

HMS PushKit ForegroundShow flag defaults to true so this field should be sent explicitly with false 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 is true 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.