ios - Firebase: Listen ChildEventListener even if app exits -


i'm working on ios application, , want achieve behavior push notifications using firebase real time db.

in case app listening firebase node , i'll send local push notification user in case node updated.

the issue is, if app not running i.e. user has killed it, app continue listening particular node? guess, in android we've support this, explained in link (link).

can achieve same behavior in ios. if no, can alternative?

thanks

update:

1- there's nothing triggering push notifications locally in ios app. wanted achieve remote notification's behavior , can't done.

2- far listening event concerned, can't done when app not in foreground or background.

you can’t if ios app killed/not present in memory.

however, can tasks if app in background, , present in memory. can use background fetch request in case.

in android, there services run when app killed. on ios, there no such thing this.

you can add firebase observers in root view controller, , implement background fetch request continue observing data when app in background.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -