ionic-framework

Ionic Capacitor cordova plugin unable to write image to library on Android

时光毁灭记忆、已成空白 提交于 2020-12-15 05:33:25
问题 I am trying to use cordova-plugin-document-scanner with Ionic Capacitor for Android, but after the image is captured and when image crop UI should be displayed, it just returns to the capture screen again. This is the issue on the github repo. This is what seems relevant in the logcat console: 2020-08-03 13:26:05.320 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)4 dur=8 res=0x1 s={false 0} ch=false 2020

Add text from array of strings to in string in angular

醉酒当歌 提交于 2020-12-15 05:24:30
问题 This is encoder package file encoder Am using that package in my angular (ionic) project like this.. which is working fine.. let items: string[] = ['Apple', 'Orange', 'Banana']; let EscPosEncoder = require('esc-pos-encoder'); let encoder = new EscPosEncoder(); let result = encoder .initialize() .text(' test text') .newline() .encode(); The above code is working fine.. Now i need to add items details. My code ts file : let result = encoder .initialize() .text('The quick brown fox jumps over

Ionic 4 Events not working in device but working on browser

孤街醉人 提交于 2020-12-15 04:19:01
问题 I'm using "@ionic/angular": "^4.11.10" I'm trying to display the tabs in ion-tabs in ion-tab-bar depending on whether an event was emitted. I have an *ngIf for conditional rendering. Here's the code: <ion-tabs color="danger"> <ion-tab-bar class="tab-bar" slot="bottom"> <ion-tab-button *ngIf="!registerClicked" tab="tab1"> <ion-icon name="thumbs-up"></ion-icon> <ion-label>{{'Transfer' | translate}}</ion-label> </ion-tab-button> <ion-tab-button tab="tab2"> <ion-icon name="gift"></ion-icon> <ion

Ionic 4 Events not working in device but working on browser

荒凉一梦 提交于 2020-12-15 04:15:13
问题 I'm using "@ionic/angular": "^4.11.10" I'm trying to display the tabs in ion-tabs in ion-tab-bar depending on whether an event was emitted. I have an *ngIf for conditional rendering. Here's the code: <ion-tabs color="danger"> <ion-tab-bar class="tab-bar" slot="bottom"> <ion-tab-button *ngIf="!registerClicked" tab="tab1"> <ion-icon name="thumbs-up"></ion-icon> <ion-label>{{'Transfer' | translate}}</ion-label> </ion-tab-button> <ion-tab-button tab="tab2"> <ion-icon name="gift"></ion-icon> <ion

white screen ionic v6.11.8 capacitor

一个人想着一个人 提交于 2020-12-13 04:23:07
问题 As i'm trying to run the app via capacitor using the command below. ionic capacitor run android as it runs in the android studio 4.2 canary 11 successfully when i run my emulator on pixel or via mobile USB debug mode it gives me white screen after capacitor splash screen. If i use chrome chrome://inspect/#devices it shows my app running and as i see my console it also shows me console.log('dangggggggggggg'); which is inside the initializeApp() but i only see white screen. I have gone through

React Ionic 5: How to pass object from App component to Tab component

巧了我就是萌 提交于 2020-12-12 18:07:54
问题 I have created an Ionic React app using Ionic 5 tab template. I want to pass an object from App component to tab component. Is there any way to do it ? Tab1 and Tab2 are my tab components. Note: I want this object to be used in both Tab components with two way data binding i.e. whenever that object is changed in one Tab component, it must be updated in second Tab component.I want to achieve it without using Redux or any third party library. My App component is like below: <IonApp>

Searching alternative for events in ionic 5 [closed]

大兔子大兔子 提交于 2020-12-12 12:01:06
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 22 days ago . Improve this question Ionic 4 Components: import {Events} from '@ionic/angular'; constructor(private auth: AuthService, private events: Events) {} intercept(req: HttpRequest<any>, next: HttpHandler) { // Refresh token failed, logout user this.events.publish('user:logout', 'La sesión ha expirado');

How to put image in both <ion-header> and <ion-content> in Ionic

女生的网名这么多〃 提交于 2020-12-12 05:11:20
问题 I'm currently developing Ionic app and stuck at implementing image in both ion-header and ion-content. Here's screenshot how I implemented. As you can see from screenshot, ion header and ion-content contents are hidden because I set image z-index to high number; Could anyone please suggest how to achieve this? Thanks. 回答1: There's an easier way to do that, and it's by using the fullscreen property from the ion-content component (docs). So the trick is to make the content to be fullscreen and

How to put image in both <ion-header> and <ion-content> in Ionic

可紊 提交于 2020-12-12 05:10:42
问题 I'm currently developing Ionic app and stuck at implementing image in both ion-header and ion-content. Here's screenshot how I implemented. As you can see from screenshot, ion header and ion-content contents are hidden because I set image z-index to high number; Could anyone please suggest how to achieve this? Thanks. 回答1: There's an easier way to do that, and it's by using the fullscreen property from the ion-content component (docs). So the trick is to make the content to be fullscreen and

How to put image in both <ion-header> and <ion-content> in Ionic

为君一笑 提交于 2020-12-12 05:10:25
问题 I'm currently developing Ionic app and stuck at implementing image in both ion-header and ion-content. Here's screenshot how I implemented. As you can see from screenshot, ion header and ion-content contents are hidden because I set image z-index to high number; Could anyone please suggest how to achieve this? Thanks. 回答1: There's an easier way to do that, and it's by using the fullscreen property from the ion-content component (docs). So the trick is to make the content to be fullscreen and