I’m facing a problem to implement PouchDB / Cloudant on Ionic 2. I have followed the Josh Morony pouchdb tutorial and it works perfectly on ionic serve.
Then i have deployed on my Android device and nothing happened. No data are retrieved from Cloudant remote database.
I have this in my chrome inspect device console :
Failed to load resource: the server responded with a <my bluemix cloudant url> Failed to load resource: the server responded with a status of 403 (Forbidden)
After long research, i have also installed cordova whitelist plugin, and added the following meta in my
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Also add this in my config.xml
<allow-navigation href="*" /> <allow-navigation href="http://*/*"/>
But still not working on device
Any idea ?
Thanks a lot