Skip to content

Remove local webserver and refactor native bridge#176

Open
ecc521 wants to merge 1 commit intomainfrom
remove-local-webserver-15624957458305916308
Open

Remove local webserver and refactor native bridge#176
ecc521 wants to merge 1 commit intomainfrom
remove-local-webserver-15624957458305916308

Conversation

@ecc521
Copy link
Copy Markdown
Owner

@ecc521 ecc521 commented Feb 18, 2026

This change removes the dependency on @ionic-native/web-server and cordova-plugin-webserver, which were causing issues.

Key changes:

  1. Architecture: The app now runs directly in the Capacitor WebView (configured to www), eliminating the need for a local node.js-like server and iframe.
  2. Native Integration: Native features like Geolocation and Firebase Auth are now accessed directly via Capacitor plugins in src/allPages/nativeIntegration.js, which is dynamically imported on native platforms.
  3. Service Worker (sw.js): The Service Worker has been updated to handle remote updates. When running in the app, it intercepts requests for local assets and attempts to fetch the latest version from https://rivers.run. It caches the response for offline use and falls back to the bundled assets if the network is unavailable.
  4. Build System: buildCapacitor.sh now builds the web app into a www directory and copies it to the native platform, streamlining the deployment process.
  5. Configuration: capacitor.config.json is updated to point to www and use the https scheme on Android for secure context.

PR created automatically by Jules for task 15624957458305916308 started by @ecc521

Replaces the legacy local webserver and iframe architecture with a standard Capacitor app structure served from the local filesystem.
- Implements remote updates and offline support via a Service Worker strategy that prefers remote content but falls back to the local bundle.
- Refactors native bridge logic (geolocation, authentication, deep linking) to use Capacitor plugins directly.
- Simplifies build process to output to `www` directory.

Co-authored-by: ecc521 <42424091+ecc521@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant