Currently, Wappler does not have a way to specify connections to different targets in mobile projects. Typically, development will happen against a non-prod target of the Wappler server project and at a certain point the mobile app will need to be packed for deployment to end users against the prod target.
I would like to see a way to change the target, like we do in Server projects, so when the app is built/packaged, it updates all of the URL references from the non-prod URL to the prod URL.
As an example, all of these URLs need to be switched from dev URL to prod URL.
This is a real challenge when building mobile apps.
1 Like
Hi @George, this is a challenging issue for mobile development. I've started to build workarounds by using variables and dynamic bindings to switch the domain on pages, but I've run into a blocker on App Flows.
There's no way to dynamically bind a Server Connect action in App Flows. It seems my only option is to run a find/replace across my entire project whenever I want to build against a different target.
It would be ideal to have a global target(s) that can be used across all parts of the mobile app, with a default target that works on the web server, and being able to build against different targets.
2 Likes