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
| async downloadImageToBase64(imageUrl: string) { | |
| const resp: Blob = await this.httpClient.get(imageUrl, | |
| { | |
| headers: { | |
| accept: 'image/png, image/webp, image/jpeg, image/gif' | |
| }, | |
| responseType: 'blob' | |
| }).toPromise(); | |
| return (await this.convertBlobToBase64(resp)) as string; | |
| } |
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
| sudo npm install -g ios-deploy --unsafe-perm=true |
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
| sudo npm install --unsafe-perm=true --allow-root |
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
| ##================================================ | |
| # STEP 1 | |
| # iOS: Add Platform (Current Version: 4.5.5) | |
| # https://github.com/apache/cordova-ios/releases | |
| ##================================================ | |
| $> ionic cardova platform add ios@4.5.5 | |
| //--> Don't forget to open Xcode and set Developer Team or Provisioning Profiles | |
| //--> IMPORTANT: If using Xcode 10: Go to "File -> Workspace Settings..." and choose "Lagacy Build System"! |
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
| buildscript { | |
| repositories { | |
| maven { | |
| url "https://maven.google.com" | |
| } | |
| jcenter() | |
| } | |
| dependencies { | |
| // NOTE: Do not place your application dependencies here; they belong |
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
| rateApp() { | |
| this.platform.ready().then(() => { | |
| if (this.platform.is('cordova')) { | |
| this.appRate.preferences = { | |
| displayAppName: 'Skills4School', | |
| simpleMode: true, | |
| useLanguage: 'en', // Needed. Otherwise will crash. | |
| storeAppURL: { | |
| ios: '1350221649', | |
| android: 'market://details?id=de.skills4school.app' |
NewerOlder