wild-silentW
Convex Community16mo ago
9 replies
wild-silent

Using Convex Triggers Across Multiple Frameworks: Jetpack Compose, SwiftUI, and Next.js

I'm working on a multi-framework project using Jetpack Compose (Kotlin) and SwiftUI (Swift) for the native apps, and Next.js (React) for the admin dashboard. I want to implement a Convex trigger that logs every insert on the user table to an activity tracker table.

Since each framework has its own "convex" folder at the root, do I need to set up the trigger in all three folders, or can I define it once for the entire project? How should I structure the Convex backend for such use cases?

Here are convex sample project repos for reference:

iOS Example: https://github.com/get-convex/ios-convex-workout
Android Example: https://github.com/get-convex/android-convex-workout
Next.js Example: https://github.com/get-convex/template-nextjs-clerk-shadcn


Any advice would be appreciated!
GitHub
Contribute to get-convex/ios-convex-workout development by creating an account on GitHub.
GitHub - get-convex/ios-convex-workout
GitHub
Sample Android Convex app using Jetpack Compose. Contribute to get-convex/android-convex-workout development by creating an account on GitHub.
GitHub - get-convex/android-convex-workout: Sample Android Convex a...
GitHub
Contribute to get-convex/template-nextjs-clerk-shadcn development by creating an account on GitHub.
GitHub - get-convex/template-nextjs-clerk-shadcn
Was this page helpful?