Skip to content

Web Push需要配置appSecret吗? #4

Open
@csm-dev-hub

Description

@csm-dev-hub

您好,我正在尝试配置使用Web Push的功能;
send_webpush_message.py,我看到有三个配置项提示我配置

 app_id_at = "Your android application's app id"
 app_secret_at = "Your android application's app secret"
 app_id_push = "Your Web application' app id "

我能在开发者网站上找到我项目的app_id,于是我用这个id配置了 app_id_at app_id_push . 但运行程序后返回状态码400。
请问是因为我没有配置app_secret_at导致的吗? 可是我找不到在那里获取 app_secret_at

能给我一些指导吗, 到底需要怎么配置, 才能正常和华为Push服务器通信呢 ? 谢谢

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @csm-dev-hub

        Issue actions

          Web Push需要配置appSecret吗? · Issue #4 · HMS-Core/hms-push-serverdemo-python