
Overview
We are using Expo Push Notifications to send push notifications to your users.Setup
Actually I handled this in codebase. If you interested, you can go to the@/hooks/usePushNotifications.ts file.
With this hook, your user can get notifications in background, on lock screen, and in notification center automatically.
You don’t need to do anything else but I want to give you some hints:
expoPushToken is your user’s push token. You can use this token to send push notifications to your user.Types
Advanced
If you want to send advanced notifications, you should create Supabase Edge Functions. Let me tell you step by step. But I am not going to code this in this documentation. Because it is project specific.I assumed you already set up Supabase and created your tables. Such as
profiles, likes, comments, etc.Go to Supabase Edge Function documentation. Which is: Supabase Edge Functions.
Now we need to integrate with Expo Push Notifications.
You can follow this link: Sending Notifications