I'm making a mobile app that has push notification, from frontend I'm using flutter and backend I'm using laravel api and Postgres12 as database. I need to do a push notification where laravel will notify flutter of new notification whenever the database is updated. How to make a a reliable connection between flutter and laravel and that the push notification will work. Please help I have try searching for answers everywhere but I couldn't find the one that can help me solve the problem.
Asked
Active
Viewed 2,358 times
1
-
I really didn't understand your question. commenting what I did understand. are you trying to make your own push notification server. You need to consider firebase like services. – Mahi Jul 02 '22 at 04:41
-
yes own push notification from laravel – Depressedgirlcode Jul 02 '22 at 05:24
-
This is almost impossible. Since your app will finally come to the background, it cannot maintain a long connection to the server using whatever technologies. You should integrate both your client & service to products like APN or Firebase push notification to achieve this, which offer push notification capability in the OS level. – Lebecca Jul 02 '22 at 05:56
-
I agree with @mahi. But You can use firebase messaging pakage to receive push notifications on flutter side. To send notifications from Bank-end(laravel) you need to call firebase api from your server. – Vishal Zaveri Jul 02 '22 at 06:45
-
I cannot used firebase , thats why im in really in trouble – Depressedgirlcode Jul 02 '22 at 16:17