poetic/ember-cli-cordova

Android Build all requests respond with 404 not found (from cache)

Closed this issue · 2 comments

Recently after installing a new version of Cordova a build of an app (that we have built many times to apk) failed all its authorization requests with a status 404 (from cache).

After much research we were able to locate this thread in stack overflow http://stackoverflow.com/questions/30161952/ionic-angular-how-to-avoid-the-404-not-found-from-cache-after-post-reque.

I only followed step one to resolve this by navigating to the cordova directory of the app, and then typing the command. cordova plugin add cordova-plugin-whitelist We did NOT add the meta tag that is explained in the accepted answer on the stack overflow.

After adding the plugin we rebuilt the app and then reinstalled on the device and all network requests worked properly.

dukex commented

Hi @JohnGoodman, do you found a fix for this issue?

@dukex Yes just enter cordova plugin add cordova-plugin-whitelist into your terminal after you cd into your cordova directory.

If this fix doesn't work for anyone please let me know as I'll help troublshoot.