This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| swagger: '2.0' | |
| info: | |
| title: CodeGen | |
| description: A brand new API with no content. Go nuts! | |
| version: '1.0' | |
| consumes: | |
| - application/json | |
| produces: | |
| - application/json | |
| paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type DamageAssesment { | |
| id: ID! | |
| title: String! | |
| description: String | |
| author: String | |
| date: String | |
| notes: [DamageNote!]! | |
| } | |
| type DamageNote { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| subscription subscribeTasks{ | |
| subscribeTasks{ | |
| id | |
| title | |
| description | |
| version | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| subscription SubscribeData{ | |
| subscribeTasks{ | |
| id | |
| title | |
| description | |
| version | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const cache = new InMemoryCache(); | |
| const client = new ApolloClient({ | |
| link: new HttpLink(), | |
| cache | |
| }); |
- Do not touch normal request and let them fail
- Promise is never resolved for offline requests Offline requests blocking promises. This will mean that code in success will never be called until device becomes online.
OFFLINE LINK Enqueue original operation and send dummy one. XXXX SPLIT HTTP and OFFLINE TERMINATING LINK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let config = { | |
| "version": 1, | |
| "namespace": "test", | |
| "clientId": "org.aerogear.ionic.showcase", | |
| "services": [ | |
| { | |
| "id": "e339e761-3687-11e9-9467-0af08791569c", | |
| "name": "sync-app-test-org.aerogear.ionic.showcase", | |
| "type": "sync-app", | |
| "url": "https://sync-app-showcase-server-demo.comm2.skunkhenry.com/graphql", |
- Ionic icon (migrate showcase one)
- Can go back from login page and see app (Will be invalidated anyway)
- Test.doc do not work on openshift as empty volume is created.
- Push notifications are disabled by default
- Device security dialog with rating is not showing up
- Push works only when app is minimized (but not closed)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public getHeaderProvider(tokenUpdateTime: number) { | |
| const headerProvider = () => { | |
| const tokenUpdate = this.extract().updateToken(tokenUpdateTime) as any; | |
| // Keycloak doesn't use a proper promise. Instead it uses success and error. | |
| return new Promise((resolve, reject) => { | |
| tokenUpdate.success(() => { | |
| resolve({ "Authorization": "Bearer " + this.extract().token }); | |
| }).error((error: any) => { | |
| // tslint:disable-next-line:no-console | |
| console.info("Cannot update keycloak token", error); |