gpt4 book ai didi

android - 将 google-services.json 放在 Titanium 项目中的什么位置?

转载 作者:搜寻专家 更新时间:2023-11-01 08:31:40 25 4
gpt4 key购买 nike

我正在使用 Titanium 为 Android 应用开发推送通知。我已经创建了 GCM 服务器 API key 和发件人 ID。并下载了配置文件

google-services.json

我应该把这个文件放到我的 Titanium 项目的什么地方?

最佳答案

添加 google-services.json 是 native 应用程序轻松集成 GCM/FCM 的便捷步骤。

要将推送通知集成到 Titanium 项目中,您必须首先决定您希望如何发送通知。有类似 Arrow Push 的服务和 Firebase Notifications允许您从图形网络控制台发送通知。

如果您想继续 Arrow Push,您可以查看 Titanium CloudPush Module

The CloudPush module supports Android push notifications for a device by providing a connection to the push notification server to the device to receive push notifications and to optionally present a tray notification to the user when a new push notification is received.

在您项目的 tiapp.xml 中,您需要添加一些键来配置推送通知。

<!-- Property keys for Arrow Push (required) -->
<property name="acs-api-key-development" type="string">YOUR DEVELOPMENT API KEY HERE</property>
<property name="acs-api-key-production" type="string">YOUR PRODUCTION API KEY HERE</property>
<property name="acs-api-key" type="string">YOUR API KEY HERE</property>

为了集成 Firebase 通知,不确定我们是否有一个好的 Firebase Titanium android 模块。 Appcelerator / Titanium module project存在以构建和使用 Firebase SDK,但它不根据 this 集成 Firebase 通知问题。

很少Titanium GCM modules此外,您还必须了解如何在这些模块中提供 GCM 发件人 ID/ key 。

关于android - 将 google-services.json 放在 Titanium 项目中的什么位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40122458/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com