Tauseef-Hilal / WhatsUp

The ultimate mobile chat app. This project brings you the closest experience to WhatsApp, crafted with the power of Flutter and Firebase. With features like real-time conversations, efficient media transmission, voice messaging, and robust security, we've recreated the essence of WhatsApp while adding our unique touch.
https://github.com/Tauseef-Hilal/whatsapp_clone
MIT License
73 stars 23 forks source link

What does this part do? #8

Closed cmorsucci closed 5 months ago

cmorsucci commented 5 months ago

What does this url do? I can't figure out what it's pointing at or what it does exactly, thanks

const String url = 'https://wa_notifications-1-q2097095.deta.app/new_message'; https://github.com/Tauseef-Hilal/WhatsUp/blob/b3ab4ffdf7296e4df7b00dc2e982e65616fff295/lib/shared/repositories/push_notifications.dart#L37

Tauseef-Hilal commented 5 months ago

What does this url do? I can't figure out what it's pointing at or what it does exactly, thanks

const String url = 'https://wa_notifications-1-q2097095.deta.app/new_message';

https://github.com/Tauseef-Hilal/WhatsUp/blob/b3ab4ffdf7296e4df7b00dc2e982e65616fff295/lib/shared/repositories/push_notifications.dart#L37

It points to new_message endpoint on my WhatsUp Notification Server. I make a post request to this endpoint. The server then sends a notification to the receiver (identified by their FCM Token)

cmorsucci commented 5 months ago

Ah sorry, I hadn't seen your script to send push notifications. Thanks