User authentication succeeds in Ioniv View but fails in app

User authentication works in my web browser also fails on the app with the error message:

http://serveraddress/api-token-auth/ 404 (Not Found) ionic.bundle.js:19346

I have the cordova plugin white list intalled. It was installed by default in the app I created based on the blank template.

I have added this meta tag in index.html below my other meta tags:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

I have added
<allow-navigation href="http://*/*" />
in config.xml. I didn’t know where to put it so put it just below author.

What more can I try to fix the not found error?

I solved it by installning some more Android SDK packages, reinstalling node.js, ionic and cordova. I don’t know what was the deciding factor.