ionic-framework

Ionic App crash after Open native camera - Error 20

久未见 提交于 2019-12-24 01:17:00
问题 I'm using the cordova camera plugin on ionic 4 to capture some image. takePicture() { console.log(' camera takePicture '); const options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.DATA_URL, encodingType: this.camera.EncodingType.JPEG, mediaType: this.camera.MediaType.PICTURE } this.camera.getPicture(options).then((imageData) => { this.selectedImage = 'data:image/jpeg;base64,' + imageData; }, (err) => { // Handle error console.log('Camera issue:' + err); });

Ngx-Bootstrap popover not setting correct height or width

丶灬走出姿态 提交于 2019-12-24 00:59:50
问题 I am trying to use ngx-bootstrap in my Ionic 2 / Angular 2 app and for some reason the popover is not displaying correctly in my view: <button placement="right" [outsideClick]="true" popover="this is a teseofnwifo ef efo efoih wefohwefo wef h ioef whefhweofihwoeht" [isOpen]="true" triggers="click" ion-button full outline class="flex-col rounded box-shadow" color="primary" style="height:100%;font-size:16px;border-width:1px;" (click)="goTo('new-client')" #1> <i class="fa fa-user-plus text

Firebase 3, AngularFire 2 in Ionic app data not updating real time / live update (with Video demo)

余生长醉 提交于 2019-12-24 00:57:55
问题 Firebase is known for its real-time data update, so this is a weird one for me. I am using Firebase 3 (New firebase console app. Want to add authentication later) and AngularFire 2. I started the app using Ionic's tab template so the app.js' router config should be the same. Click here to see a (90 second) video demo of the issue I have my ionic app served to the browser using 'ionic serve --lab' so I can see iOS and Android view. When I try to toggle data in one view (say iOS), the changes

How do I interact with items in the background in ionic while a popover is active?

半世苍凉 提交于 2019-12-24 00:57:30
问题 Ionic Version: 1.x Platform: all I have an ionic app which uses an ionic popover. However, when the popover is active (open), I can no longer interact with things in the background, for example scroll down my list of items. I have tried looking for existing answers for this question, but did not see the question being asked. The popover itself does not have to be bound to any active element on the page, since it currently has position:fixed and will always appear in the same position. So

Resize image in ionic cards

荒凉一梦 提交于 2019-12-24 00:52:12
问题 I want display a set of images with a description below. I chose to use Ionic cards. I got this result (the first image): While I want to preserve the same layout I have now, and add a description. Here is my code: <ion-content ng-controller="cityController"> <div class="row"> <div class="col col-33"> <div class="list card"> <div class="item item-body"> <img class="full-image"src="img/images/opera.jpg"/> This is a "Facebook" styled Card.. </div> </div> </div> <div class="col col-33"> <img src

PouchDB ETIMEDOUT error

不问归期 提交于 2019-12-24 00:49:37
问题 So we've been building an app that uses couchDb/cloudant with Pouchdb as our driver client side (ionic framework) and server side (node). Of late we've been getting errors when connecting to the remote, that seem to appear at random and only disappear temporarily restarting the app, or opening a new browser. update-data.service.js:38 Error: ETIMEDOUT(…)(anonymous function) @ update-data.service.js:38processQueue @ angular.js:16383(anonymous function) @ angular.js:16399$eval @ angular.js:17682

Loading url in ionic shows blank screen

最后都变了- 提交于 2019-12-24 00:47:10
问题 I have searched on web but got nothing concrete about this issue. I'm using ionic v1, in which I'm loading my adfs url to ask user for login though adfs web page but only on some phones I see login page and on others I see blank screen. I tried debugging it but I got nothing[only the url] constructive so far. I'm loading url using window.open("https://inve....", '_system'); So far we've encountered with this issue on Android phones only, but I'm targeting iPhones also. Any help will be

Getting “Sorry! The configured backend (pro) does not know about ionic upload” When trying to upload the Ionic App

安稳与你 提交于 2019-12-24 00:27:29
问题 I'm trying to upload the App I built to my Ionic Pro account. I've linked my account and added the SSH keys but after running ionic upload I'm getting this error [ERROR] Sorry! The configured backend (pro) does not know about ionic upload. This is My Ionic Info cli packages: (/home/jos/Desktop/helloapp/node_modules) @ionic/cli-utils : 1.9.2 ionic (Ionic CLI) : 3.9.2 global packages: Cordova CLI : 7.0.1 Gulp CLI : not installed globally local packages: Cordova Platforms : android 6.2.3 browser

Ionic 4 custom styling Shadow DOM

淺唱寂寞╮ 提交于 2019-12-24 00:27:19
问题 Been trying to change footer background but I cant get it right. I have a color for each tag but only the last tag is changed (blue - #0000ff) . How does one do styling in Ionic 4? <template> <ion-footer> <ion-toolbar> <ion-title v-if="loggedIn"> <a href="https://www.facebook.com/" target="_blank"> <ion-icon name="logo-facebook"></ion-icon> </a> <a href="https://www.instagram.com/" target="_blank"> <ion-icon name="logo-instagram"></ion-icon> </a> </ion-title> </ion-toolbar> </ion-footer> <

How to keep $stateparams parameters after i refresh the browser

て烟熏妆下的殇ゞ 提交于 2019-12-24 00:25:58
问题 I have this list of users .. When a user clicks in one of those user in the list.. it will redirect me to my profileState with the associated UID of the user. I use state parameters to pass the UID from the userListState to the profileState.. When i type console.log($stateParams); it displays the UID which i passed from userListState .. but once i refresh the page.. the UID will become null.. So i would like to know how you guys make that specific data remain there after page reload. 回答1: How