ionic1 fcm推送通知自定义点击 [英] ionic1 fcm push notification custom click

查看:271
本文介绍了ionic1 fcm推送通知自定义点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在所有我使用ionic1的推送通知功能的帮助下firebase
在这里我提到使用插件
$ b $ 1.PLAN插件添加cordova插件在应用程序

2.ionic插件添加cordova-plugin-fcm

<3> 3.ionic插件添加cordova-plugin-velda -devicefeedback



一旦应用程序打开并在前台,然后通知工作,也许我关闭应用程序,并发送通知它不工作的帮助



<通知工作正常我需要当用户点击通知我在我的应用程序显示警告框,并显示在通知消息警报帮助

解决方案

当应用程序在后台为了得到点击事件,你需要修改发送到firebase api的数据。请查看 https://stackoverflow.com/a/45325585/7140972 以获取详细的答案。


hi all i am using ionic1 push notification functionality with help of firebase here i mentioned used plugins

1.ionic plugin add cordova-plugin-inappbrowser

2.ionic plugin add cordova-plugin-fcm

3.ionic plugin add cordova-plugin-velda-devicefeedback

Once app open and in foreground then notify worked maybe i closed app and send notify it's not working help

Notification working fine i need when user click notify i am show alert box in my app and show the notify message in alert help

解决方案

When the application is in the background in order to get the click event you need to modify the data sending to the firebase api. Check this link https://stackoverflow.com/a/45325585/7140972 for the detailed answer.

这篇关于ionic1 fcm推送通知自定义点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆