I wrote an Angular2 application.
It works great in browser (using phonegap desktop app).
However, on an android device, it doesn't work.
The errors are: 404 error for JS files.
This is because of a piece of code angular2 creates an index file with "<base href="/">", which is a must.
Removing it, makes angular fail.
Changing it to "", works for all of the local assets, but not remote files, or local files when in a url with a slash (like "user/1")
Is there a way to make base href / work?
Please indicate the exact error messages you receive for each thing you've tried with the base href tag?
Also, see Asking Better Questions (PhoneGap Forum) and then provide the requested information so that we can better help you.
These are not console errors, or build erros, but 404 errors. because the href is relative, the only thing that should work is "/", and that won't work in the current build, as the files are not in root, obviously.