Posts

Showing posts with the label ionic3

Navigate to tab passing parameter

Navigate to tab passing parameter Is posibble to pass parameter with this method: this.app.getRootNav().getActiveChildNav().select(3); i tried: this.app.getRootNav().getActiveChildNav().select(3, {apto: 1}); but it didnt work. 1 Answer 1 No , according to the docs the select function only takes one parameter ( tabOrIndex ) specifying the tab or index to select. A quick look into the corresponding code verifies this. select tabOrIndex To work arround this and pass data from one tab to another you can refer to this answer which offers three possible approaches to this problem. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Ionic 3 and firebase when download an audio it gives an error

Image
Ionic 3 and firebase when download an audio it gives an error when i try to download an audio from firebase storage it gives me an error . here is my .ts file import { FirebaseProvider } from './../../providers/firebase/firebase'; import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { FirebaseListObservable } from 'angularfire2/database'; import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic- native/file-transfer'; import { File } from '@ionic-native/file'; import { NativeAudio } from '@ionic-native/native-audio'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { constructor(private transfer: FileTransfer,private file: File,private nativeAudio: NativeAudio) { const fileTransfer: FileTransferObject = this.transfer.create(); this.download(); this.nativeAudio.preloadSimple('uniqueId1', this.file.dataD...

Ionic serve VS ionic serve -c

Image
Ionic serve VS ionic serve -c I'm new in Ionic and using Ionic 3.9.2 I got several terminal commands to serve my ionic-app but, I'm not getting any difference between these two commands. ionic serve and ionic serve -c 2 Answers 2 This is basically short form of ionic serve --consolelogs for printing the log of you app in ionic CLI.(see the image) ionic serve --consolelogs There is second command to debug the app which is ionic serve --verbose ionic serve --verbose Hope this helps you to find out the difference. ionic serve -c ionic serve -c or ionic serve --consolelogs will Print app console logs to your Ionic CLI. Hope this helps By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

ionic build android's Error : copyFileSync: could not write to dest file

ionic build android's Error : copyFileSync: could not write to dest file When I use the command : ionic cordova build android here is what I get : ionic cordova build android cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml Parsing /Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml failed (node:2306) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open '/Users/mehdigriche/work/cam1/test/platforms/android/res/xml/config.xml' [10:50:14] lint finished i Have you checked the existence of or the permissions on the files mentioned in the error? – Thomas Smyth Dec 28 '17 at 11:17 8 Answers ...