Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 48984 articles
Browse latest View live

Package.json is being modified after run or build for device on windows

$
0
0

@distante wrote:

I have notice this problem happening when I run ionic cordova run android, ionic cordova run androidor any variation of them (say–prod`).

In an project with an git status that gives “nothing to commit, working tree clean” after run the above commands the next git status says:

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

    modified:   package.json

git diff shows this:
image

And I have no idea how to prevent that ionic cli deletes the package.json's at the end of the file

Posts: 1

Participants: 1

Read full topic


IONIC 4 Don't have Maps

Problems to close modal Ionic 4

Ionic 4 Slides - option spaceBetween broken

$
0
0

@nextgencodecompany wrote:

Ionic 4@latest with angular & Cordova

When using the slides component, if you add spaceBetween in the options, it seems to break the slides altogether and it does not recognize more than just one slide - thus you can’t slide to the next slide even though you can see it on the right when you drag.

Posts: 1

Participants: 1

Read full topic

[Ionic 4] How should I clear searchbar programmaticaly?

$
0
0

@gilcon wrote:

How should I clear the searchbar input programmatically? it look like the clearInput method is removed in ionic 4.

Posts: 1

Participants: 1

Read full topic

Firebase phone authentication iOS Token Mismatch error

$
0
0

@obinnae wrote:

I’m building an app with Firebase phone authentication using this tutorial https://medium.com/@gbrigens/ionic-3-phone-authentication-with-firebase-dbed967e95ef. It works fine on an Android device, but on an iPhone, when I call

FirebasePlugin.verifyPhoneNumber()

I get this Token Mismatch error…

ERROR: {“description”:“Error Domain=FIRAuthErrorDomain Code=17048 “Token mismatch” UserInfo={NSLocalizedDescription=Token mismatch, error_name=INVALID_APP_CREDENTIAL}”,“code”:17048}

I have no clue how to resolve this. Any help would be greatly appreciated.

Thanks.

Posts: 1

Participants: 1

Read full topic

About Mantra Finger Scanner

Sending get request in ionic 4

$
0
0

@hg8200 wrote:

I want to send get request in ionic onClick but when i run app the screen is blank before onClick

Here is the code of ----------------------------------------------------------------------------------- app.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';

import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';

import { HTTP } from '@ionic-native/http';


@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    BrowserModule,
    IonicModule.forRoot(),
    AppRoutingModule
  ],
  providers: [
      HTTP,
    StatusBar,
    SplashScreen,        
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

and here is the code of --------------------------------------------------------------------------- home.page.ts

import { Component } from '@angular/core';
import { HTTP } from '@ionic-native/http';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage 
{

constructor(private http: HTTP) {}

showAlert() 
{

this.http.get(SERVER_URL, {}, {})
  .then(data => {

    console.log(data.status);
    console.log(data.data); // data received by server
    console.log(data.headers);

  })
  .catch(error => {

    console.log(error.status);
    console.log(error.error); // error message as string
    console.log(error.headers);

  });
}


}

Here is the code of home.page.html where onClick triggered.

<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-menu-button></ion-menu-button>
    </ion-buttons>
    <ion-title>
      Home
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
    <ion-card class="welcome-card">
      <ion-img src="/assets/shapes.svg"></ion-img>
      <ion-card-header>

    <div id="container">
      <ion-list>

    <br>
      <ion-item >
        <ion-label fixed>User Name</ion-label>
        <ion-input type="text" value=""  id="rounded" [(ngModel)]="username"></ion-input>
       </ion-item>
 
    </ion-list>
  </div>

        <ion-button (click) = "showAlert()">Submit</ion-button>
        <br>
        <ion-button color="primary">light</ion-button>
      </ion-card-header>
    </ion-card>
    
</ion-content>

Posts: 1

Participants: 1

Read full topic


[Ionic 4] Can't bind to 'formControl' since it isn't a known property of 'input'

$
0
0

@alex87 wrote:

Trying to use the Angular 7 MD mat-autocomplete but getting this error: Can't bind to 'formControl' since it isn't a known property of 'input'. and then If 'mat-option' is an Angular component, then verify that it is part of this module.

I have imported the relevant modules into my app.module.ts and my home.page.ts.

What am I missing?

Posts: 1

Participants: 1

Read full topic

How to remove plugin from project?

$
0
0

@demokumar wrote:

I want to reinstall image picker plugin when I remove it using the command
ionic cordova plugin rm cordova-plugin-telerik-imagepicker --save
it removes from package json but not remove from platform android

Posts: 2

Participants: 2

Read full topic

When try to pick image from gallery app crash

$
0
0

@demokumar wrote:

I use cordova-plugin-telerik-imagepicker plugin to pick images from gallery it works but when I install phonegap-plugin-push for push notification image picker not work directly app crash without giving any error
anyone face this problem please help

Posts: 1

Participants: 1

Read full topic

Enter key only works after the mouse has clicked somewhere in the document

$
0
0

@whereskeem wrote:

I can tab through the elements on the page being displayed in the browser, the focus ring is displayed as each element receives focus but the “enter” key does nothing (such as clicking the button that has focus) unless i have already used the mouse to click somewhere on the page. I am trying to make sure the page has accessibility for anyone only using a keyboard and not using a mouse.

Posts: 1

Participants: 1

Read full topic

*ngif does not check in background

$
0
0

@abeersuhaim wrote:

hi all

i finished implement my app , bu i notice some improper action with *ngif in html ,
it’s look like the app show how to check my condition , and the process not in background

example when condition ==1 show case1 , when condition == 2 show case 2 , when condition == 3 show case 3 ,

if i click button and the condition == 3
the app show case 1 for sec then case 2 for sec then show the correct case

my code like this

case1
case2
case3

this also happen if i have one condition *ngIf - else

Any help would be appreciated.

Posts: 8

Participants: 2

Read full topic

Ionic v4 opening url not working ios

$
0
0

@athifshaffy7 wrote:

tried

window.open(url, '_system');

to open url from ionic mobile, as well as ionic inAppBrowser plugin, the link will keep opening within the app itself even though option is given as ‘_system’

Any idea why that is so?

Posts: 1

Participants: 1

Read full topic

Alert Controller not working in ios Device

$
0
0

@lohith95 wrote:

Hi, i have an alert controller which works very smooth on android but not in ios.
I dont know what would be the reason, Its not giving any error also.

let alert = this.alertCtrl.create({
        title: "Submission of Order",
        message: "Are you sure you want to submit",
        buttons: [
          {
            text: "Cancel",
            role: "cancel",
            handler: () => {
              console.log("Cancel clicked");
            }
          },
          {
            text: "Submit",
            handler: () => {
              console.log("Submit clicked");
              alert.onDidDismiss(() => {
                let loading = this.loadingCtrl.create({
                  content: "Please wait until the order gets displayed ....."
                });
                loading.present();

-
-
-
-
loading.dismiss()
})
}
}
]
)}

thats my code and whenever i try to click on submit button its calling the cancel handler.

Weird!!

Can anyone please help me with this issue.

Posts: 1

Participants: 1

Read full topic


Ionic cordova platform add (ERROR), How to solve this issue?

Is there any way to use javascript in ionic 3

$
0
0

@mahdimunfarid wrote:

i have created a project with ionic 3
and i want to add some javascript code in one of my html page called. about.html.

i have added the bellow javascript code but it’s not working

here is my javascript code

 <script type="text/javascript"> app="www.cricwaves.com"; mo='ExtNotf'; nt="8"; mats =''; tor =''; Width='292px'; Height='170px'; wi ='w'; co ='ExtNotf'; ad="1"; </script><script type="text/javascript" src="http://www.cricwaves.com/cricket/widgets/script/scoreWidgets.js"></script>

Posts: 3

Participants: 2

Read full topic

Ionic 4 - why it is showed in all pages?

$
0
0

@rssh22 wrote:

I’ve been trying to find out whats the magic that makes the ion-tab-bar in the template [ionic start example tabs --type=angular] to be shown in front of all the pages. But I haven’t found an answer yet. Could anybody uncover the trick?

Posts: 1

Participants: 1

Read full topic

Which type ionchange event is?

$
0
0

@aguiarguilherme wrote:

Hi! I’m currently developing a PWA with Ionic v4 and Angular 6. I’m trying to reinforce typescript usage over my team, and while typing everything it struck me with a question: Which type does ionchange event belong? I couldn’t find it over the docs.

Also, I don’t know if it is a high impact question, but does the ionchange event type change over the different elements, or are they all the same?

Thanks! :smiley:

Posts: 1

Participants: 1

Read full topic

Having trouble with epubjs

Viewing all 48984 articles
Browse latest View live


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