W
Wasp6d ago
Cam Pak

CapacitorJS & Wasp

I want to know if anyone has played around with CapacitorJS and turning a Wasp app into a mobile app. Technically I know how to make it work, but I just wanted to see if anyone else has experience before I LEROY JENKINS my way into it
4 Replies
kapa.ai
kapa.ai6d ago
Hi @Cam Pak. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Yes, there has been some interest in using Wasp with mobile app frameworks like Capacitor. In fact, one user mentioned in a GitHub issue that they were planning to experiment with wrapping the generated Wasp client SPA with Capacitor to see if it would work as a mobile app GitHub Issue #1475. Currently, Wasp doesn't have first-class mobile client support like it does with web via React. However, there have been some attempts and discussions around this topic: 1. There's an open GitHub issue specifically about supporting mobile app generation in Wasp GitHub Issue #1088. 2. A user named ErlisK did some initial experimentation with React Native and manually got a Wasp app running to some degree, as mentioned in the same issue. 3. Another approach being considered is implementing PWA (Progressive Web App) support, which would be a step toward making Wasp apps usable on phones GitHub Issue #1117. If you do proceed with your Capacitor experiment, the Wasp team would likely be interested in your findings. As one of the Wasp team members mentioned to the user who wanted to try Capacitor: "Let me know if you manage to make some progress, I can possibly offer some advice on how best to do it, although right now it will almost certainly end up being hacky." GitHub Issue #1475. So while there's interest in this direction, it seems like you might be among the first to seriously try the Capacitor approach with Wasp! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Cam Pak, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
toticozeni
toticozeni6d ago
Hey @Cam Pak I know that @miho played around with mobile stuff. He did an Wasp + Expo example: https://github.com/wasp-lang/wasp-expo-app. But I don't think anyone did anything wityh CapacitorJS yet.
miho
miho6d ago
The linked example shows using Wasp via custom API endpoints, basically treating Wasp as an API only. We haven't played around with packing up the client app into a mobile app directly if that's what you are looking for.
Cam Pak
Cam PakOP5d ago
Thanks for sharing! And yes, I'm looking for the latter. It's very possible I think Did it with Astro in the past to create the launcher for Wisephone II

Did you find this page helpful?