Keep data from the Firebase Realtime Database always in sync

后端 未结 2 501
野的像风
野的像风 2020-12-20 01:00

I\'m currently re-working an app of mine which updates it\'s internal SQLite database by fetching raw data from an website, not an official API.

As this is quite err

2条回答
  •  难免孤独
    2020-12-20 01:30

    FCM would be a great choice for you considering that using only push data without notification as this forces the sent to data to be received in the onReceive method in your mobile application. If your device is offline it will resend the data again while it comes online again.

    Whenever any change happens in your backend send push data to your devices using their presaved tokens.

提交回复
热议问题