Moinul Moin
Moinul Moin2w ago

expo-push-notification with convex

anyone managed to work with convex expo push notification component? like this blog is not helping me enough or I am dumb enough to make it work, https://www.convex.dev/components/push-notifications where I can find the components here in this code snippet // convex/example.ts import { PushNotifications } from "@convex-dev/expo-push-notifications"; const pushNotifications = new PushNotifications(components.pushNotifications); and can you I use this convex expo push notification component without using expo apps service? thanks a lot
Convex
Expo Push Notifications
Send push notifications with Expo. Manage retries and batching.
8 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart2w ago
components is in the generated folder:
import { components } from "./_generated/api”
import { components } from "./_generated/api”
Using the component does require use of Expo's notifications service, there's a section in the component docs titled "Registering a user for push notifications" that mentions this and links to the push notifications setup doc for Expo: https://docs.expo.dev/push-notifications/push-notifications-setup/#registering-for-push-notifications
Moinul Moin
Moinul MoinOP2w ago
so, we cant do it without eas? wanted to do it without eas
erquhart
erquhart2w ago
The component is specifically made to work with Expo notifications. Expo notifications docs state that they don't require you to use eas, not sure if going that route is compatible with the component though Okay so wait, there's eas and then there's Expo's Notification Service. I suspect you don't need eas (I don't use it either), but checking to confirm eas' role in the process
erquhart
erquhart2w ago
Yeah I believe you just need to get credentials manually if you're not using eas build: https://docs.expo.dev/push-notifications/push-notifications-setup/#get-credentials-for-development-builds
Expo Documentation
Push notifications setup
Learn how to set up push notifications, get credentials for development and production, and send a testing push notification.
erquhart
erquhart2w ago
Oh, and the most helpful advice I can give - every Convex component repo has an example directory with a reference implementation: https://github.com/get-convex/expo-push-notifications/tree/main/example
GitHub
expo-push-notifications/example at main · get-convex/expo-push-noti...
Contribute to get-convex/expo-push-notifications development by creating an account on GitHub.
erquhart
erquhart2w ago
Should have linked that in the first place
Moinul Moin
Moinul MoinOP2w ago
thank you so much, man, checking out

Did you find this page helpful?