更新时间:2021-09-14 22:28:15
您可以使用 dry_run
字段:
dry_run
如果包括,允许开发人员无需实际测试他们的要求
发送消息。可选。默认值是假的,而且必须是
JSON布尔值。
If included, allows developers to test their request without actually sending a message. Optional. The default value is false, and must be a JSON boolean.
如果它不工作,你可以尝试用一个无效的包名称 restricted_package_name
字段。我还没有尝试过,但它可能会表现得你想要的方式。
If it doesn't work you can try the restricted_package_name
field with an invalid package name. I haven't tried it, but it might behave the way you want.
restricted_package_name
restricted_package_name
一个包含应用程序的包名字符串。当设置,
消息将只发送匹配包注册ID
名称。可选。
A string containing the package name of your application. When set, messages will only be sent to registration IDs that match the package name. Optional.
引号是从 GCM建筑概述服用。