Cordova apps have a different base URL depending on the platform, so short of specifying a different environment for every platform, you can’t really set a base URL. I’ve found that a simple workaround is to switch location from
hash in production. I’m not sure this is the best approach, though; at the very least, it breaks Ember Simple Auth’s behavior to force a page refresh after logout by replacing the window location with the base URL.
Is there a better approach currently than using hash-style URLs?
Why can’t Ember simply look at
window.location.hrefon boot to automatically determine the base URL?