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

Ionic v3 emulate android [ERROR] Exception: Using cordova-fetch for emulate1.0.2


How to make content drop to bottom

$
0
0

@ndblackandblue wrote:

I’m try to make something like, if someone click in textarea, my scrool go to the bottom i make something like this:

 addKeyboardListeners() {
    this.keybaordShowSub = this.keyboard.onKeyboardShow().subscribe(e => {
      this.updateScroll("keybaord show", this.scrollTimeout);
      let newHeight =
        e["keyboardHeight"] + this.textareaHeight - this.initialTextAreaHeight;
      let marginBottom = newHeight + 44 + "px";
      this.renderer.setElementStyle(
        this.scrollContentElement,
        "marginBottom",
        marginBottom
      );
      this.renderer.setElementStyle(
        this.footerElement,
        "marginBottom",
        e["keyboardHeight"] + "px"
      );
      /*this.updateScroll("keybaord show", this.scrollTimeout);*/
      // console.log("keybaordShowSub");
      this.updateScroll("keybaord show", 300);
      this.updateScroll("keybaord show", 500);
    });
  }

but in IOS sometimes, if have a lot of item’s in content, if i click in text area, all html texts get invisible and only css its apply, can someone help with this?

Posts: 1

Participants: 1

Read full topic

Cannot find app in devapp

$
0
0

@pefe wrote:

I’m using ionic 4, whenever i tried using ionic serve -c it doesn’t show up on devapp (tried on android and ios)

Posts: 1

Participants: 1

Read full topic

Cannot find app in devapp

$
0
0

@pefe wrote:

I tried running ionic serve -c and it doesn’t appear on the list. i tried manually typing the address and it works. any idea why? it’s a bit of a hassle to enter the ip and port everytime.

Posts: 1

Participants: 1

Read full topic

Angular Navigation Problem

$
0
0

@hethcox wrote:

Hi. I’ve been trying to track down a bug in my app for several weeks and I’m not sure what else to try.

I’m using angular-ui-route to navigate my app.

On the main page of my app I have a simple list of jobs that, when a job is clicked, transition to a screen with the job detals. It’s simple master/detail setup and navigation works fine.

In another use the user navigates from the job detail to a third screen and then back to the jobs list. When this flow happens the navigation gets messed up. Specifically, the next time the user clicks on a job in the list they are displayed their previous selection. It’s as if ther previous job is still on the view stack. After navigating back to the list the problem goes away.

I notice that when this bug happens the detail controller does not get reloaded; the wrong detail screen is presented withot the detail controller getting a chance to update the data.

I’ve tried manipultaing $ionicHistory to clear the view stack, but I’m not sure what the problem is. Does anyone have any thoughts on what could be causing the controller to be reused without being reinitialized?

Thanks.

Posts: 1

Participants: 1

Read full topic

Strange error with moduleId

$
0
0

@lunneyd wrote:

undefined is not an object (evaluating ‘modules[moduleId].call’)

I am getting this error when I ionic serve. Any ideas what is going on. It deploys android perfectly but on iOS it doesn’t open the app.

Posts: 1

Participants: 1

Read full topic

Ionic Admob Not working After setting isTesting:false

$
0
0

@innocruts wrote:

I am working on Admob Integration, Admob Test ads is working, But When I set it to IsTesting:False then it does not me any ads, Can You please help me, I am stucking from last 2 weeks.
const bannerConfig: AdMobFreeBannerConfig = {
// add your config here
// for the sake of this example we will just use the test config
id:“ca-app-pub-8702213124475925/6486447106”,
isTesting: false,
autoShow: true
};
this.admobFree.banner.config(bannerConfig);

 this.admobFree.banner.prepare()
   .then(() => {
     // banner Ad is ready
     // if we set autoShow to false, then we will need to call the show method here
   })
   .catch(e => console.log(e));

}

This is my Code

Posts: 1

Participants: 1

Read full topic

Smart Card Plugin

$
0
0

@rcpitalia wrote:

Hi all,
I have to develope an application for Android and IOS that read Tachograph Driver Cards (usb connection), create the DDD file (using ADU commands) and send it by mail.

How can i Send APDU command to the card ?

Is there a plugin to do this ?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Ionic 4 and Firebase Contact Directory App

$
0
0

@AmberS wrote:

Hello!

I need a little help as a first time Ionic developer! I am adding another menu item to my Ionic mobile application named ‘Contacts’. The ‘Contacts’ item will display a list of all of the names of the contacts stored in the Firebase database. Once I click on the contact name, a profile will show which display the name, phone number and email of the contact from the Firebase database.

I am mostly just fetching data from Firebase.This is my first time using Firebase and Ionic, so I’m really confused and want to learn! Do you guys have any good resources and/or sample apps that can help me/guide me with implementing this? I would really appreciate any type of help with this!

Posts: 2

Participants: 2

Read full topic

Ionic monitoring syncmaps - What is "Snapshot ID"?

$
0
0

@dave-k wrote:

Hi,
I am trying to Monitor ionic app, but Monitoring Event Log displays:

dashboard.ionicframework.com
Error Log
    Exception Detail
        Error: Uncaught (in promise): undefined        "Source Mapped: NO"

How do I change Source Mapped: NO to Source Mapped: YES ?

$ ionic monitoring syncmaps [<snapshot_id>]

What is the snapshot_id?

$ ionic monitoring syncmaps

Using existing sourcemaps in ./.sourcemaps
✔ Syncing sourcemaps: 45 / 45 - done!
[OK] Sourcemaps synced!
Pro ID      : 12345678
Version     : 2.0.0
Package ID  : com.app.my
Snapshot ID : not set

See the Error Monitoring docs for usage information and next steps: https://ionicframework.com/docs/pro/monitoring
$

Posts: 1

Participants: 1

Read full topic

SCSS & HTML linters

Ionic 3 error with TypeError

$
0
0

@lunneyd wrote:

[Error] ERROR – Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating ‘modules[moduleId].call’)
webpack_require@http://localhost:8100/build/vendor.js:55:29
http://localhost:8100/build/main.js:541:29
onInvoke@http://localhost:8100/build/vendor.js:4982:39
run@http://localhost:8100/build/polyfills.js:3:10149
http://localhost:8100/build/polyfills.js:3:20245
onInvokeTask@http://localhost:8100/build/vendor.js:4973:43
runTask@http://localhost:8100/build/polyfills.js:3:10844
o@http://localhost:8100/build/polyfills.js:3:7901
promiseReactionJob@[native code]
Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating ‘modules[moduleId].call’)
webpack_require@http://localhost:8100/build/vendor.js:55:29
http://localhost:8100/build/main.js:541:29
onInvoke@http://localhost:8100/build/vendor.js:4982:39
run@http://localhost:8100/build/polyfills.js:3:10149
http://localhost:8100/build/polyfills.js:3:20245
onInvokeTask@http://localhost:8100/build/vendor.js:4973:43
runTask@http://localhost:8100/build/polyfills.js:3:10844
o@http://localhost:8100/build/polyfills.js:3:7901
promiseReactionJob@[native code]
defaultErrorLogger (vendor.js:1703)
handleError (vendor.js:1764)
handleError (vendor.js:161929)
next (vendor.js:5729:165)
(anonymous function) (vendor.js:4576)
__tryOrUnsub (vendor.js:33714)
next (vendor.js:33661)
_next (vendor.js:33601)
next (vendor.js:33565)
next (vendor.js:40469)
emit (vendor.js:4556)
run (polyfills.js:3:10150)
onHandleError (vendor.js:5004)
runGuarded (polyfills.js:3:10410)
(anonymous function) (polyfills.js:3:21024)
microtaskDrainDone (polyfills.js:3:21061)
o (polyfills.js:3:8009)
invokeTask (polyfills.js:3:16825)
p (polyfills.js:2:27655)
v (polyfills.js:2:27895)

Anyone know why this is happening?

Posts: 1

Participants: 1

Read full topic

Ionic state restore alternative

$
0
0

@jampanha wrote:

I am using ionic 4.

After I clone an ionic 4 project, I want to add all of the cordova plugins from package.json.
**Note “npm install” does not add the plugins automatically.

At the moment I have to manually run these commands:

ionic cordova plugin add cordova-plugin-inappbrowser@latest

Posts: 1

Participants: 1

Read full topic

[Ionic 4] Storage.get() sometimes not getting called!

$
0
0

@Ionize wrote:

Anyone tried working with Ionic 4 storage and cordova sqlite?

I have a loader page (lazy loaded) as my root page where it checks (ionViewWillEnter) for intro and user status on storage and redirect views accordingly. But I notice that sometimes it fails to redirect because storage.get is not getting executed. I tested with a try and catch and it enters the catch. I have storage.get inside the storage.ready promise. Sometimes the router.navigate also doesn’t work and redirect the page. Any ideas? Maybe I need to delay the checking and wait until storage and router is fully initialized?

Posts: 1

Participants: 1

Read full topic

Ionic app on android 9 with error message “detected problems with API compatibility”

$
0
0

@codiqa10002348 wrote:

I created an ionic app with the latest ionic CLI. After the app deployed on my android device, it always displays a warning message “detected problems with API compatibility (visit g.co/dev/appcompat for more information)” as the enclosed screenshot.

I tried to package and deploy the app with Cordova and Capacitor. The same error message displayed. (yes, Capacitor actually based on Cordova).

I just went through the g.co/dev/appcompat and did some search online. It is caused by restrictions on non-SDK interfaces of Android.

I do not add any special code, so I guess it may be something wrong with Ionic or Cordova.

Anyone know the solution to dissolve the warning message? Thanks very much~

Posts: 1

Participants: 1

Read full topic


Using node packages in Ionic

$
0
0

@pierrephilipdp wrote:

I am currently trying to use the crypto library in my Ionic application. Whilst VS Code picks up my import, import * as crypto from 'crypto';, correctly and provides me with IntelliSense on the functions within the package. When I try to run the application using cordova I get the following error, error TS2307: Cannot find module 'crypto'.

Does anyone know how to include default node packaged libraries such as crypto in Ionic?

Posts: 1

Participants: 1

Read full topic

Need Ionic or JS front end Developer

InAppbrowser not working in Android Emulator

$
0
0

@OmDIonic wrote:

Hi
I am working on app where I am using InAppbrowser.
InAppbrowser not opening in app and it ask me choose between browsers which are installed on emulator.
My ionic info

Ionic:
ionic (Ionic CLI) : 4.10.2
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.3.0

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 5 other plugins)

System:
Android SDK Tools : 26.1.1
NodeJS : v10.15.1
npm : 6.4.1
OS : Windows 10

Posts: 1

Participants: 1

Read full topic

Ionic background mode crashing the app

Must click button multiple times using ion-slides

$
0
0

@whereskeem wrote:

I’m using ionic slides and there’s a form on each slide. Sometimes I have to click the submit button multiple times before the click event executes, or at the very least i’ll have to click somewhere in the current browser window for the click event to register.

page with slides HTML

<ion-slides effect="fade">
			<ion-slide>
				<ion-card class="amc-card">
					<ion-card-header>
						<h1 text-wrap>
							{{'global.title' | translate}}
						</h1>
					</ion-card-header>
					<ion-card-content>
						<h2 text-wrap id="verify-title" class="custom-h2">
							{{title}}
						</h2>
						<verify-form [showProgress]="showProgress" (outputSubmitVerifyForm)="verifyForm($event)"></verify-form>
					</ion-card-content>
				</ion-card>
			</ion-slide>
			<ion-slide>
				<ion-card class="amc-card">
					<ion-card-header>
						<h1 text-wrap>
							{{'global.title' | translate}}
						</h1>
					</ion-card-header>
					<ion-card-content>
						<h2 text-wrap id="info-title" class="custom-h2">
							{{title}}
						</h2>
						<enter-info-form [name]="name" (outputSubmit)="enterInfoForm($event)"></enter-info-form>
					</ion-card-content>
				</ion-card>
			</ion-slide>
</ion-slides>

page with slides TS

import { Component, ViewChild, ChangeDetectorRef } from '@angular/core';
import { IonicPage, NavController, NavParams, Content, Events, Slides } from 'ionic-angular';
import {Validators, FormBuilder } from '@angular/forms';
import { TranslateService } from '@ngx-translate/core';

@IonicPage()
@Component({
  selector: 'page-password-reset-initial',
  templateUrl: 'password-reset-initial.html',
})
export class PasswordResetInitialPage {
  @ViewChild(Content) content: Content;
  @ViewChild(Slides) slides: Slides;
  constructor() {
  }

ionViewDidEnter(){
    this.slides.enableKeyboardControl(false);
    this.slides.onlyExternal = true;
  }

enterInfoForm(event) {
}

verifyForm(event) {
}
}

Posts: 1

Participants: 1

Read full topic

Viewing all 70443 articles
Browse latest View live


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