问题
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