I'm using CapacitorJS to turn my Angular web application into a mobile app. However, I have an issue.
These are the devices I've tested this on:
Pixel 4a emulator (Android 11),
iPhone XR (iOS 15),
Xiaomi Redmi Note 8 (Android 11)
Version(s):
@angular/core, router 13.0.2
@capacitor/core, android, ios 2.4.0
Repro:
Expected behavior:
Application javascript is taken from /
Actual behavior:
Application javascript is taken from /example (where it does not exist because /example is an Angular route)
Has anyone else experienced this issue, or have a solution for this?
Soved
The issue was I was that I had ./
as baseUrl instead of /
for angular :(