onthemarq
onthemarq2mo ago

Convex in Release Build (React Native)

I am moving from a local build (in an iOS simulator) to a release build (on my iPhone) of my app. I am using Convex as my backend. I am noticing that none of the database or API functions are firing as expected. Are there additional setup steps required? Do I need to follow the production deployment steps for this testing phase? Thanks!
8 Replies
Convex Bot
Convex Bot2mo 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
erquhart2mo ago
It should still work fine. Are you using swift or react native? Expo? Any specific errors
onthemarq
onthemarqOP2mo ago
React Native and Expo No specific errors are coming through from what I can see. I'll double check. It works great on the simulator but not on my mobile phone.
erquhart
erquhart2mo ago
Got it. You'll want to do some logging to figure out what the issue is. Basics to establish: - are any convex function calls being logged in the Convex dashboard? - assuming there's authentication, is the auth state what you'd expect? - are useQuery results simply remaining undefined or do they ever change?
onthemarq
onthemarqOP2mo ago
Just checked all of this. Nothing is being fired in convex. I'm assuming I need an actual backend server (since I'm not running convex dev on my laptop). I can see the Clerk webhook succeeding which should create the user in Convex, but that's not happening.
erquhart
erquhart2mo ago
Is this an expo development build Convex is your backend server, whether you’re running against your development instance or your production instance, they are both cloud deployments. You see the clerk webhook succeeding in the convex dashboard logs?
onthemarq
onthemarqOP2mo ago
Yes. I see the webhook succeeding (after switching to my production deployment). It must be some uncaught error somewhere.
erquhart
erquhart2mo ago
The webhook from Clerk succeeds but does not create a user in Convex? That happens completely on the server, you’ll want to log from within your webhook handler to find out what’s happening there.

Did you find this page helpful?