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
8 Replies
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!
components
is in the generated folder:
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-notificationsso, we cant do it without eas? wanted to do it without eas
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
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.
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.
Should have linked that in the first place
thank you so much, man, checking out