How to send notification to specific user in Expo/Laravel

Viewed 50

I have an Expo app with a Laravel backend and I want to send notifications to the app. But the condition is that only a specific user can receive it. I installed the Following library Exponent Notifications I've Installed expo-notifications as well But I don't know How it works, How I can listen to the notification channel and How to send Notification from backend.

2 Answers

Yes you can send notification to specific user using expo and laravel. The simple logic is you have to store expo notification token to your database.that token is unique for every apps and devices.So using that token you send notification to specific user. Please follow this link

With Expo you don't get to pick the push notification service according to you, you can try Firebase Cloud messaging or One Signal, but I don't think you can do it only by your Laravel Backend

Related