【发布时间】:2019-07-04 08:04:43
【问题描述】:
我在firebase中创建了一个项目,并在里面创建了两个android应用程序。
但如果我使用 Admin SDK 发送推送通知,通知会发送到两个应用程序,我们如何才能将通知限制为仅单个包?
我的通知格式如下:
var message = {
notification: {
title: 'Test title',
body: 'Test body',
},
android: {
ttl: 3600 * 1000,
notification: {
icon: 'test_icon',
color: '#f45342',
},
},
topic: topic
};
【问题讨论】:
-
restricted_package_nameMayBe..
-
@ADM iOS 呢?
标签: android node.js push-notification firebase-cloud-messaging firebase-admin