How to call a class function in background when ionic app is completely closed?

青春壹個敷衍的年華 提交于 2019-12-12 15:11:44

问题


I am using Ionic local notification plugin to display notification alert.

Logic behind this is my function is directly connected with firebase database.

As any new record updates in firebase database, this function immediately alerts a notification.

It is working perfectly while my app is active or in background mode. but as i close my application, then this function doesn't work and firebase connectivity also getting lost.

Please suggest me any solutions to keep firebase connection active when application is closed?

Thanks a lot!

来源:https://stackoverflow.com/questions/47903447/how-to-call-a-class-function-in-background-when-ionic-app-is-completely-closed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!