gpt4 book ai didi

android - meteor raix :push notification channelId for android 8. 0.0

转载 作者:太空宇宙 更新时间:2023-11-03 10:58:28 26 4
gpt4 key购买 nike

我一直在使用 raix:push 包为 android 和 ios 发送推送通知。它一直运行良好,但在 android 8.0 上却不行。

显然,我们需要为 android 8 及更高版本的每种通知类型关联一个 channelId。我的推送对象如下:

meteor 版本:1.7.0.3

raix_push 版本:3.3.0

Push.send({
from: '',
title: title,
text: text,
NOTIFICATION_CHANNEL_ID : '45664',
android_channel_id : '12chdt09',
channel_id : '79',
CHANNEL_ID : '81',
channelID : '123',
notId : nId,
gcm: {
title: title,
NOTIFICATION_CHANNEL_ID : '45664',
channelID : '123',
android_channel_id : '12chdt09',
channel_id : '79',
CHANNEL_ID : '81',
style: 'inbox',
summaryText: 'There are %n% notifications '
},
payload : {
id : id
},
query: {
userId: {
$in: userIds
},
},
"time_to_live" : 2419200
});

我已尝试通过上述各种方式插入 channelId,但尚未获得肯定的结果。有帮助吗?

最佳答案

我的 meteor 版本:1.8

phonegap-plugin-push@2.2.3

cordova-plugin-meteor-webapp@1.4.1

1) Using this comment将此文件添加到指定路径。

2) 在 <root>/cordova-build-override/google-services.json 为您的应用添加 google-services.json 表单 firebase

此配置对我有用。我在我们的生产中使用它直到现在都没有崩溃。

关于android - meteor raix :push notification channelId for android 8. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51267263/

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