简体   繁体   English

如何将推送通知从 Firebase 发送到 iOS 设备上的 web 应用程序?

[英]How to send push notification from Firebase to web app on iOS device?

everyone, I would like to ask how to send push notification from Firebase Cloud Messaging (FCM) to web app on iOS device?大家好,请问如何将Firebase云消息(FCM)的推送通知发送到iOS设备上的web应用程序? I am having the problem on receiving the push notification from FCM when I turned on the web app on iOS device.当我在 iOS 设备上打开 web 应用程序时,我在接收来自 FCM 的推送通知时遇到问题。 However, there is no issue to receive the push notification from FCM when the web app had been turned on on the android device.但是,在 android 设备上打开 web 应用程序时,从 FCM 接收推送通知没有问题。

The following programming languages that I am using:我正在使用的以下编程语言:

  1. front-end for web app - HTML, CSS, JavaScript web 应用程序的前端 - HTML、CSS、Z686155AF75A60A0F36E9D80C1F7ED
  2. back-end for web server - PHP Laravel, MySQL web 服务器的后端 - PHP Laravel、Z62A004B95946BB97541AFAAZ471DCCA73
  3. way to push notification - Firebase Cloud Messaging (FCM)推送通知的方式 - Firebase 云消息传递 (FCM)

Should I subscribe the membership for Apple developer in order to get the push notification from FCM on iOS device?我应该订阅 Apple 开发人员的会员资格,以便在 iOS 设备上从 FCM 获得推送通知吗?

Thanks everyone!感谢大家!

Push notifications don't work for IOS with web apps only native apps can do this.推送通知不适用于 IOS 和 web 应用程序,只有本机应用程序可以执行此操作。 You could use a firebase cloud function to message the user phone number though.不过,您可以使用 firebase 云 function 向用户电话号码发送消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Laravel 5.1中使用AWS SNS将推送通知从Web发送到iOS和android设备? - How to send push notification from web to iOS and android device using AWS SNS in Laravel 5.1? 从 php web 应用程序发送推送通知以响应本机应用程序 - send push notification from php web app to react native app 如何从onesignal发送推送通知,将设备ID存储在数据库中-Cordova应用 - how to send push notification from onesignal the device id's are stored in database - cordova app 如何在Laravel中使用Kreait / Firebase云消息向多个设备发送发送推送通知 - How to send send push notification to multiple device using kreait/firebase cloud message in laravel 如何从 web 向应用程序发送 FCM 通知 - How to send FCM notification to app from web 设备令牌无效时将推送通知发送到ios设备崩溃 - Send push notification to ios device crash when device token is invalid 向iOS应用发送推送通知:Google Cloud - Send push notification to ios app : Google cloud 如何将Chrome推送通知发送到多个设备 - How to send Chrome push notification to mulitple device 如何将附加数据发送到 Firebase 推送通知 - How to send additional data to firebase push notification 如何使用触发器发送Firebase推送通知 - How to send firebase push notification using trigger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM