Experience porting a web app using Capacitor

So far there have been a few hiccups around native auth for google auth, and also the app overtook the top status bar, which was unexpected.
I had to get up to speed with Android Studio and so you have to kind of edit things in your web IDE and then go to android studio to build each time. There might be a faster way, but for right now, this is what I am doing.

Also, current AI in the IDE is blind to the larger issue of integrating the camera preview with the native app. After 2 hours of debugging I finally searched the web and asked chatGPT.. which seems to be a good step in finally making progress. Seems like antigravity over-engineered the web things, but this was a few steps in the wrong direction…

1 Like

OK, so a lot of my problems came from installing outdated packages and version mismatches… once everything was running on the same latest version (capacitor 8) things became smooth.

1 Like

Another general insight is anti-gravity or whatever code assistant IDE does not work as well as it cannot see the full picture between the repo and Android studio… packages installed by the AI are not up to date… not all the manifest configs are correct…

It looks like Android Studio might have a built-in agent mode, if you haven’t already tried it.

1 Like

I do think this is good, especially since I have a gemini subscription… the thing is the web code is housed in antigravity and the capacitor folder is in the “android” folder. So neither IDE (antigraviy/android studio) sees the full picture… as far as I know…

As far as the AI agents are concerned, I think there are just folders. If the code is in a folder and you open the parent folder in Antigravity, Android Studio, or Gemini CLI, the agents should be able to see all the code.

I’m not sure what it looks like, but if you are in a directory that has child directories like android and website, you can type gemini (for Gemini CLI) in the parent directory to start an AI chat there, or just open that directory in either editor and start chatting in the editor.

They kind of are folders, but I don’t know why it is… Antigravity is seriously failing at capacitor integration…

I just made a branch for it today and rolled back a bunch of stuff to keep the web app working… I will probably silo the capacitor repo and pull in the react components as I need to… not sure how I am going to do it to be honest…

If you want another set of eyes on it, let me know and I could take a look. I’ve never used Capacitor though.