New cordova app + documentation - additional steps not in docs:
- Add `* file:` to `default-src` in `Content-Security-Policy` meta tag in `index.html` - it can look like this: `<meta http-equiv="Content-Security-Policy" content="default-src * file: 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">`
- `cordova plugin add cordova-plugin-inappbrowser`
- add `<access origin="*" />` to `config.xml`
- use e.g. browserify so you can use `require` statements
- in `init` snippet there should be `require` instead of `import`
New cordova app + documentation + android + self-signed certs - additional steps not in docs:
In documentation there are no code examples for how to:
- determine that user is authenticated (`authService.isAuthenticated()`)
- get user profile (`authService.loadUserProfile().then(...).catch(...)`)
In documentation http://docs.aerogear.org/aerogear/latest/identity-management.html#refreshing-the-authentication-token cordova example should be `authService.extract()...` instead of `authService.service.extract()...` |