简体   繁体   English

离子Android推送通知仅在后台工作

[英]Ionic android push notification works only in background

I'm building an Ionic App which uses push notifications. 我正在构建一个使用推送通知的Ionic应用程序。 I followed the documentation from here . 我从这里开始关注文档。 I can register, I see the token is registered OK, but when I send notifications from ionic , I receive them only if the app is in background. 我可以注册,我看到令牌已注册好,但是当我从ionic发送通知时,仅当应用程序处于后台时,我才会收到通知。 If the app is running, I get no notification . 如果该应用程序正在运行,则不会收到通知。 The event cloud:push:notification is not triggered. 未触发事件cloud:push:notification

Any ideas? 有任何想法吗?
Thanks! 谢谢!

Make sure to use the ionic-cloud library for interfacing with Ionic.io. 确保使用ionic-cloud库与Ionic.io进行接口。 The event you mentioned is not triggered by the deprecated ionic-platform-web-clinet 您提到的事件不是由已弃用的ionic-platform-web-clinet触发的

http://docs.ionic.io/migration.html#push ` http://docs.ionic.io/migration.html# push`

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

相关问题 xamarin android 推送通知只能工作一次 - xamarin android push notification only works once 离子中的android推送通知 - android push notification in ionic 离子推送通知(背景信息) - Ionic Push notification(Background fone) android 离子推送通知不打开后台应用程序 - Ionic push notification does not open the background app on android 带离子框架的推送通知Android - Push Notification Android with ionic framework 没有GCM的Android推送通知可在后台服务中运行,但推送通知在预计时间之前显示 - Android push notification without GCM works in background service but push notification is showing up before estimated time Firebase 云消息推送通知无法在前台工作,仅在后台工作,在 Android - Firebase Cloud Messaging push notification not working in foreground, only background, on Android 当通过fireBase收到推送通知时,IONIC2在android后台应用程序时增加徽章 - IONIC2 Increment badges while app in background on android when push notification is received via fireBase 用于离子的pushwoosh推送通知不适用于android - pushwoosh push notification for ionic does not work with android Ionic 2推送通知在Android版本4中不起作用 - Ionic 2 push notification not working in android version 4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM