Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我目前正在开发一个使用onesignal的android应用程序。我遇到了这个问题,我不知道如何为服务器提供他需要的其余 API 密钥。非常感谢你
REST API 密钥不能从您的应用程序内部使用。这是因为这个密钥就像一个密码——如果恶意用户得到了它,那么他们可以像你一样向所有其他用户发送通知。
但是,通过 postNotification 向各个用户的 ID 发送消息时,不需要此 Key。