problem in react native chat app algorithm

147 Views Asked by At

I am building an app contains chat but i couldn't figure out somethings.

  1. Notifications: I can send notifications to devices but they appear everytime (app in on screen or not) but i want to send "chat" notification only the chat page not open. I think i need to send data notifications instead of normal notifications.

  2. Storing chats: I can't pull all the chats eveytime user wants to see messages. I need to store them and show only the new messages. How can i seperate them? Device has to say i have messages until this timestamp give me newer ones.

I am using firebase and gifted chat. I can give you any version codes if you want.

0

There are 0 best solutions below