Reputation: 179
What i did is :
I have used JobScheduler
. In every two hours, it checks weather there is a new data available or not in Server->Database->Table
. If new data available it retrieves the data and notifies to the subscriber.
Kindly any one suggest me weather this is right approach or not?
Is there any other way to do so?
Can I implement PUB/SUB concept here.. If yes, How?
I am using Godaddy Hosing..
Upvotes: 0
Views: 65
Reputation: 812
No,its not a good way
You may try like this
1) Integrate FCM Push notification at Backend side(PHP etc)
2) Take Legacy Server Key for Push notification from Firebase
3) Wherever you will get update of data send notification using Device Token
4)at app side you need to add code for handle push notification
for more help refer this URL
Upvotes: 1