ionic4

Capacitor livereload not working

我的梦境 提交于 2021-01-23 06:18:08
问题 I can't figure out how to use livereload with ionic 4 and Capacitor on ios. I'm running this command ionic cap run ios -l which add my local ip address to capacitor.config.json . however, it seems like I'm missing something in here. Note: according to Provide live-reload functionality #3130 this should work. my environment setup: Ionic: ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-beta.2 @angular-devkit/core : 0.7.3 @angular-devkit

Capacitor livereload not working

做~自己de王妃 提交于 2021-01-23 06:17:51
问题 I can't figure out how to use livereload with ionic 4 and Capacitor on ios. I'm running this command ionic cap run ios -l which add my local ip address to capacitor.config.json . however, it seems like I'm missing something in here. Note: according to Provide live-reload functionality #3130 this should work. my environment setup: Ionic: ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-beta.2 @angular-devkit/core : 0.7.3 @angular-devkit

Capacitor livereload not working

北战南征 提交于 2021-01-23 06:17:11
问题 I can't figure out how to use livereload with ionic 4 and Capacitor on ios. I'm running this command ionic cap run ios -l which add my local ip address to capacitor.config.json . however, it seems like I'm missing something in here. Note: according to Provide live-reload functionality #3130 this should work. my environment setup: Ionic: ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-beta.2 @angular-devkit/core : 0.7.3 @angular-devkit

Capacitor livereload not working

被刻印的时光 ゝ 提交于 2021-01-23 06:16:50
问题 I can't figure out how to use livereload with ionic 4 and Capacitor on ios. I'm running this command ionic cap run ios -l which add my local ip address to capacitor.config.json . however, it seems like I'm missing something in here. Note: according to Provide live-reload functionality #3130 this should work. my environment setup: Ionic: ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-beta.2 @angular-devkit/core : 0.7.3 @angular-devkit

Custom Icons with Ionic 5?

走远了吗. 提交于 2021-01-21 06:47:09
问题 I recently updated from Ionic 4 to Ionic 5. With Ionic 5 the icons received an update too. Apparently however also the mechanism loading the icons changed. In Ionic 4 it was possible to add custom icons like this: https://medium.com/@JordanBenge/how-to-create-custom-ionic-4-icons-af80cc6cc148 Add e.g. ios-my-custom-icon.svg and md-my-custom-icon.svg in an icon folder in the assets . Then it was necessary to reference them in the angular.json like: ... "assets": [ ... { "glob": "**/*.svg",

Custom Icons with Ionic 5?

血红的双手。 提交于 2021-01-21 06:46:46
问题 I recently updated from Ionic 4 to Ionic 5. With Ionic 5 the icons received an update too. Apparently however also the mechanism loading the icons changed. In Ionic 4 it was possible to add custom icons like this: https://medium.com/@JordanBenge/how-to-create-custom-ionic-4-icons-af80cc6cc148 Add e.g. ios-my-custom-icon.svg and md-my-custom-icon.svg in an icon folder in the assets . Then it was necessary to reference them in the angular.json like: ... "assets": [ ... { "glob": "**/*.svg",

Ionic 5 - How to replace default icon and splash screen image and generate resources

☆樱花仙子☆ 提交于 2021-01-20 16:41:33
问题 I recently started using ionic 6 and capacitor(not cordova), and I don't know how to replace its default application icon and splash screen. Is there any way to do it and generate resources using ionic capacitor cli like what we were doing with cordova(ionic cordova resources android)? where should I replace icon and splash images with my own? after adding android platform using capacitor(ionic cap add android), it generates icon and splash images in android resources, but I don't know how to

Ionic 5 - How to replace default icon and splash screen image and generate resources

青春壹個敷衍的年華 提交于 2021-01-20 16:40:14
问题 I recently started using ionic 6 and capacitor(not cordova), and I don't know how to replace its default application icon and splash screen. Is there any way to do it and generate resources using ionic capacitor cli like what we were doing with cordova(ionic cordova resources android)? where should I replace icon and splash images with my own? after adding android platform using capacitor(ionic cap add android), it generates icon and splash images in android resources, but I don't know how to

How to use a .catch in firebase onSnapshot

柔情痞子 提交于 2021-01-20 07:26:08
问题 I've created an Ionic Firebase chat app. The problem I think I'm having is I've set up a query snapshot on initialization of the message page with the following: ngOnInit() { this.messageService.getAllMessages() .doc(`${this.userId[0] + '-' + this.userId[1]}`) .collection('message') .orderBy('createdAt', 'asc') .onSnapshot((doc) => { this.messages = []; doc.forEach((snap) => { this.messages.push({ content: snap.data().content, createdAt: snap.data().createdAt, userId: snap.data().userId }); }

Problem screen ionic app on iPhone 11 Pro Max

五迷三道 提交于 2021-01-04 07:27:32
问题 I'm facing some problems on the look and feel of my Ionic app on iPhone 11 Pro Max: How Can I improve and fix the problem of the spaces on both upper and bottom part of the screen? **UPDATE This is my config.xml: <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> <icon height="57" src="resources/ios/icon/icon.png" width="57" /> <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /> <icon height="29" src="resources/ios/icon/icon-small.png"