简体   繁体   中英

Pausing firebase connection when app is in background

无论如何,我可以在后台暂停从我的离子应用程序连接到firebase吗?

You may try register a pause event and add firebase.app.App.database.goOffline() in the pause event.

And add firebase.app.App.database().goOnline() in the resume event

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM