【发布时间】:2020-09-14 09:16:41
【问题描述】:
我正在使用 Firestore 数据库
我正在使用 python 编写触发器,点击链接 Python- Trigger
我为推送通知创建了触发器
我创建了一个函数和触发器。它在android中工作,但在IOS中不工作
我的代码
newtoken=[usertoken]
message = messaging.MulticastMessage(
notification=messaging.Notification(
title="Push title",
body="Push body"),
tokens=newtoken,
)
respponse = messaging.send_multicast(message)
print(respponse)
在 IOS 中不触发
【问题讨论】:
-
您是否收到错误消息?你检查过日志吗?如果是这样,你有什么问题吗?
-
@SamuelRomero 没有显示任何错误但 IOS 没有显示通知
标签: google-cloud-firestore triggers google-cloud-functions firebase-cloud-messaging