aslanyanhaik / Quick-Chat

Real time chat app written in Swift 5 using Firebase
MIT License
1.84k stars 360 forks source link

Push Notifications #20

Closed JoshuaHolme closed 7 years ago

JoshuaHolme commented 7 years ago

Are there push notifications coded in the app? I can't seem to get them to work.

aslanyanhaik commented 7 years ago

no for push notifications you should setup firebase along with APNs

JoshuaHolme commented 7 years ago

I was able to send a notification to all users through the firebase console, but I can't seem to find a way to get it to work peer to peer. Say one user receives a message from another user, but their phone is locked. Nothing happens and there is no notification on their lock screen.

aslanyanhaik commented 7 years ago

You need to get device token and store in db along with user information. You should also have some logic on backend to send push notification so specific user.