Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70440 articles
Browse latest View live

Ionic4 : Multiple directories under webdriver-js-extender

$
0
0

@jaroc wrote:

Hello,
I am using the version4, and I think there is tiny “bug” when the “built” directory is created after each call of the server.
I have

Ionic:
_ ionic (Ionic CLI) : 4.10.3 (C:\Users\papa\AppData\Roaming\npm\node_modules\ionic)_
_ Ionic Framework : @ionic/angular 4.0.1_
_ @angular-devkit/build-angular : 0.12.4_
_ @angular-devkit/schematics : 7.2.4_
_ @angular/cli : 7.2.4_
_ @ionic/angular-toolkit : 1.4.0_

Cordova:
_ cordova (Cordova CLI) : 8.0.0_
_ Cordova Platforms : none_
_ Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 5 other plugins)_

System:
_ NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)_
_ npm : 5.6.0_
_ OS : Windows 10_

I observe that the directory tree :
C:\Users…\Brucal_Ionic4_etape6\node_modules\webdriver-js-extender**built\built\built\built\built\built\built\built\built\built\built\built\built\built\built\built\spec\command_tests
become creasy .
It doesn’t hurt but it will certainly endup with a problem.

This message is for IONIC developper .

Thanks

Posts: 1

Participants: 1

Read full topic


Failed Building Android with DexBuilder For Debug

$
0
0

@chanhope wrote:

Ionic Info:

   ionic (Ionic CLI)  : 4.3.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.9

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 6.4.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 15 other plugins)

System:

   NodeJS : v8.12.0 (/usr/local/bin/node)
   npm    : 6.4.1
   OS     : macOS Sierra
   Xcode  : Xcode 8.3.2 Build version 8E2002

While trying to build an android platform in ionic after updating android studio this error started showing up.

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ’:transformClassesWithDexBuilderForDebug’. >

com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException:

Failed to process /.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.13.1/b49cf3799bd473199e96c4fb9987e9e08395a1c0/okhttp-3.13.1.jar

Posts: 1

Participants: 1

Read full topic

Ionic3 document is not working

Ionic 4 - buttons in modal not firing click

$
0
0

@adr9-9 wrote:

Hi,
I have been working on an Ionic 4 app based on ngx-rocket. The framework is really impressive (both Ionic and ngx-rocket) and nice to work with, however for the past week I’ve been wasting time on a small problem that stops my progress, and I have no clue as to its solution. This problem halts all development and I need to figure it out fast.

I have a Modal window with an angular-cropper element and a toolbar with ‘dismiss’ and ‘apply’ buttons. Everything works great in Android and on browsers (chrome, FF and safari), but only on iPhone devices (tested on 5,7,8+), the buttons don’t fire the click event. Actually, any button or clickable element I place on the page, in header, footer, toolbar or in the content, above, below the cropper, or even absolute positioned overlay on top of it, does not work, and only on iPhone devices. The cropper element on the modal is working fine.

Furthermore, the buttons are accessible and clickable - they interact visually with the click, and in the inspector I can see classes shift on the button elements when clicking on them. But for some reason, no click events are sent to the app, and the click handlers are not running. If I remove the angular-cropper element, buttons works fine.

I’ve tried converting the modal into a popover, but had similar results (buttons not firing click events).
The one thing I haven’t tried is setting up a full blown routed page for the crop, but this is not an acceptable solution, design wise.

I’ve also created a small ionic side menu test app with a similar page and modal, but everything works great there, so this is not an issue with the cropper not being supported by Ionic on a modal.

What am I missing? Is there a module I’m not importing?
Is it an Ionic syntax error by my part?
Is this a bug in the framework, since it only happens on iPhone devices (not even safari)?

Here is the modal’s html:

<ion-header color="c-dark-gray" no-border>
    <ion-toolbar no-padding color="c-dark-gray">
        <ion-buttons slot="start">
            <ion-button fill="clear" no-margin no-padding text-center (click)="dismiss()">
                <ion-icon slot="icon-only" name="close" color="light"></ion-icon>
            </ion-button>
        </ion-buttons>

        <ion-title translate color="light">Move and Scale</ion-title>

        <ion-buttons slot="end">
            <ion-button fill="clear" no-padding no-margin (click)="apply()">
                <ion-text translate color="c-orange" text-uppercase>Apply</ion-text>
            </ion-button>
        </ion-buttons>
    </ion-toolbar>
</ion-header>

<ion-content color="c-dark-gray">
    <ion-grid no-padding no-margin>
        <ion-row>
            <ion-col no-padding no-margin>
                    <angular-cropper
                        #cropper
                        *ngIf="_image"
                        [cropperOptions]="_cropperjsSettings"
                        [imageUrl]="_image"
                        [ngClass]="{'round-cropper': _round}"></angular-cropper>
            </ion-col>
        </ion-row>
    </ion-grid>
</ion-content>

The code for opening the modal:

 async cropBanner(ev: any) {
        const modal = await this.modal.create({
            component: ModalImageCropComponent,
            componentProps: {
                event: ev,
                ratio: 310.0 / 80.0
            },
            showBackdrop: false
        });

        modal.onDidDismiss()
            .then((evMod: OverlayEventDetail<any>) => {
                this._bannerInput.getInputElement()
                    .then((val: HTMLInputElement) => {
                        log.debug('resetting input');
                        val.value = null;
                    });
            });
        await modal.present();
    }

And the modal’s ngModule declaration:

@NgModule({
  declarations: [
    ModalImageCropComponent
  ],
  exports: [
    ModalImageCropComponent
  ],
  entryComponents: [
    ModalImageCropComponent
  ],
  imports: [
    CommonModule,
    IonicModule,
    AngularCropperjsModule
  ]
})

Please help,
Thanks!

Posts: 1

Participants: 1

Read full topic

How to use Adcolony in ionic 3

Does this fix in ionic 4 [virtual scroll with filter]

$
0
0

@indraraj26 wrote:

if you type so fast then erase everything from searchbar you will get blank page
if you scroll down to bottom and search for first 10 item you wont get that in filter

i tried ngx-virtual-scroller too but it is not working with filter application gets hanged

Posts: 1

Participants: 1

Read full topic

Ionic 4 android app stuck on white screen

$
0
0

@iyashsoni wrote:

Hello all, I am trying an Ionic 4 app with "cordova-plugin-ionic-webview": "4.0.0", and I am facing the blank white screen issue on Android Platform only.

Now the scenario is,
The app starts and we make a loadUrl call to CordovaActivity with this parameter file:///android_asset/www/index.html
This works fine.

But then, we download some web resources and put into path /data/user/0/io.ionic.starter/no_backup/www/
Next, we reload the app and try to load the new file with URL file:///data/user/0/io.ionic.starter/no_backup/www/index.html

Here is when we hit the blank white screen. Any help is appreciated.

Thanks.

Posts: 1

Participants: 1

Read full topic

Iframe with video content inside ion slides not working

$
0
0

@deepakkj wrote:

I have iframe inside innerhtml which is inside ion-slide. When i open the slide the video player auto plays and when the user reaches the video player containing slide the video plays again thus resulting in single video playing twice without user interaction. Anyone can resolve this?

Posts: 1

Participants: 1

Read full topic


Render text into an image

$
0
0

@APrince wrote:

Hello, I am still new to web technologies and basically what I need to do now is render some text into and image and send that image somewhere. Basically I need to generate an image and it would be nice if I could use the common web techniques to do it. Sort of like doing a screenshot of a certain div. The final image should only contain some text. Also the result should be created off-screen. Any ideas?

Thanks

Posts: 1

Participants: 1

Read full topic

Alert- if do not press alert button go to a page

$
0
0

@lunneyd wrote:

Is there a way to send a person to a page etc if alert button(s) are not pressed after a certain timeout.

I know how to send people to a page if they do press the buttons but want to send people people to a page if they do not press alert button after a certain time.

Posts: 1

Participants: 1

Read full topic

forEach is not a function error

$
0
0

@MOHANTHANGARAJ wrote:

this.cart = this.aggregateCart(‘cart’);

aggregateCart = (cart) => {
let newCart = ;
cart.forEach(function(item) {
if(newCart.indexOf(item) < 0) {
newCart.push(item);
}
});
return newCart;
}
i have initialized this in constructor and i intend to use this function to aggregate my cart elements but the error is shown like this “”

Posts: 1

Participants: 1

Read full topic

How to change background color of side menu in ionic4

$
0
0

@demokumar wrote:

I want to change background color of the side menu I apply background color to ion-content which is inside menu but it not works

Posts: 1

Participants: 1

Read full topic

Replacement for PhotoViewer?

$
0
0

@Topyz wrote:

Hi everyone,
So I’ve built an app with Ionic v4, and integrated the camera to take photos. Then i save them as Thumbnails.

When the user presses the thumbnail i want to open the image on full screen. I’ve used Photo Viewer and works when I install the dev apk.

But when I build the final version, jarsigner , zipalign the apk and upload it to play store, the app crashes when I load the PhotoViewer page.

If I remove all the photoviewer code, the app on the Play Store works correctly.

Is there any other plugin that does the same effect?

Posts: 1

Participants: 1

Read full topic

Error while refusing the transition

In ionic 4 ion-select i want hide default icon add my png down icon

$
0
0

@baraniraja20 wrote:

I am trying hide default icon below code but cant work please let me know.how to hide this.

.select-icon {
.select-icon-inner {
display: none !important;
}
}

Posts: 1

Participants: 1

Read full topic


Grid Column Issue

TypeError: Cannot read property 'get' of undefined - STORAGE

$
0
0

@DianLabuschagne wrote:

import { Injectable } from '@angular/core';
import { SessionProvider } from '../sessionprovider';
import { SqliteProvider } from '../sqlite/sqlite'
import {Storage} from '@ionic/storage'

/*
  Generated class for the ConnectioncheckproviderProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class ConnectioncheckproviderProvider {
  state:any;
  // static get parameters() {
  //   return [[HttpClient], [Storage]];
  // }
  
  constructor(private storage: Storage, public http: HttpClient,public session:SessionProvider,public sqlite:SqliteProvider) {
    window.addEventListener('online', this.changestate);
    window.addEventListener('offline', this.changestate);
      storage.get('age').then((val) => {
        console.log('from asyncTest --> Your age is', val);
      });

         setInterval(this.test,5000)

  }
  

  changestate(){
    this.storage.get('age').then((val) => {
      console.log('from asyncTest --> Your age is', val);
    });
    this.state=navigator.onLine ? 'online' : 'offline'
  }```

Please help: Why do I get undefined error - like in the title - when changestate is called, but in the constructor it works fine (get null for the value because there is nothing in storage)?

Posts: 1

Participants: 1

Read full topic

How Can I Access Object in Array Within Array

$
0
0

@harshm90 wrote:

How can i access of object in Array within Array?

Complicated Question Right?
Please check below:

In the above image in console.log i get the data within [{…}] which i can access it easily but i don’t know how do i access to the data which is inside sub_item which has Array[5].

I want to show the sub_item Details in the list marked in image. Please Help!!

Posts: 1

Participants: 1

Read full topic

Increase thickness of ion-icon - Urgent Please!

$
0
0

@sribk wrote:

Hi All,

Please let me know how I can increase ion-icon thickness. I’m able to change the size by using font-size. Tried font-weight but did not work

I’m using arrow-forward and arrow-back.

Thanks
Sri

Posts: 1

Participants: 1

Read full topic

Ionic 4 Non native Ionic wheelpicker component

$
0
0

@mitmatmoo wrote:

I would like to use a wheel picker component within a Ionic 4 PWA. I understand that I will not be able to use anything from the native library to do this. Do any 3rd party plugins / components already exist that I could import into my project.

Kind regards,
Ian

Posts: 1

Participants: 1

Read full topic

Viewing all 70440 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>