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

Xcode simulator device list is empty

$
0
0

@ejerskov wrote:

No matter what I try I can’t get access to the Xcode simulators from my ionic/cordova project. Xcode Command Line Tool is installed.

cordova run ios --list

returns

Available ios devices:

Available ios virtual devices:

ionic cordova emulate ios --list

returns

Available ios virtual devices:

I have all the simulators in Xcode and it’s working fine when Im opening the project in Xcode and run the simulators manually.

The consequence of this is that I cant run my app with livereload from the terminal:

ionic cordova emulate --livereload ios -- --buildFlag="-UseModernBuildSystem=0" --target="iPhone-X, 12.1"

returns

Device id for device name “iPhone X” and runtime “iOS 12.1” could not be found, or is not available.

How do I progress from here? :expressionless:

Posts: 1

Participants: 1

Read full topic


How can i create a sidemenu page and show it on homepage as sidemenu?

$
0
0

@harshm90 wrote:

Is it possible to create a new page name sidemenu and use it as a sidemenu on homepage rather than using it on app.html?
If yes then can i see some examples?

Posts: 1

Participants: 1

Read full topic

How to disable token in app

$
0
0

@shaikjilani29 wrote:

i m new ionic i m try to change the root page, root page is sign in page, i dont wont signin page in starting, i need to change the signin page position, if i m change the root page, home page not showing any thing, in console it is showing token not provided, how to disable token and how to run this thing please help me

Posts: 1

Participants: 1

Read full topic

Custom Pipe not found on Ionic 3

$
0
0

@nirajhinge wrote:

I have an issue that is exactly similar to this issue but it seems to have no answer yet. I created a brand new project in Ionic 3 where I have a custom pipe that converts seconds to minutes. But I am simply getting the following error:

Uncaught Error: Template parse errors:
The pipe 'duration' could not be found ("
</ion-header>

<ion-content padding> {{ [ERROR ->]2000 | duration }} </ion-content>

I am not sure what I am doing wrong for the duration pipe not to be found. I have included all the relevant code and version information below. Any pointers on what I am doing wrong would be appreciated.

# ionic info
Ionic:

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

System:

   NodeJS : v10.8.0 (/usr/local/Cellar/node/10.8.0/bin/node)
   npm    : 6.3.0
   OS     : macOS Mojave
# home.html
<ion-content padding> {{ 2000 | duration }} </ion-content>
# home.ts
import { Component } from '@angular/core'

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  constructor() {}
}

# home.module.ts
import { NgModule } from '@angular/core'
import { IonicPageModule } from 'ionic-angular'
import { HomePage } from './home'
import { PipesModule } from '../../pipes/pipes.module'

@NgModule({
  declarations: [HomePage],
  imports: [IonicPageModule.forChild(HomePage), PipesModule]
})
export class TestPageModule {}

# pipes.modules.ts
import { NgModule } from '@angular/core';
import { DurationPipe } from './duration/duration';
@NgModule({
	declarations: [DurationPipe],
	imports: [],
	exports: [DurationPipe]
})
export class PipesModule {}
# duration.ts
import { Pipe, PipeTransform } from '@angular/core'
@Pipe({
  name: 'duration'
})
export class DurationPipe implements PipeTransform {
  transform(value: number, ...args) {
    return Math.floor(value / 60)
  }
}

Posts: 1

Participants: 1

Read full topic

Objec(...) is not a function

$
0
0

@akil27 wrote:

Anytime I wanna use the one of the ionic-native plugins I am getting this error. I know this forum has 4 topic on the same issue but all of them was using version 4. I am using version 3. but still getting the same error. Once I has solved it by installing the older version of the plugin. But I don’t know every time which versions of the plugins are compatible with ionic 3. Those same plugins were not giving any errors a few months ago when I was using them. I assume this is because of ionic team is updating the plugins according to the version of the packages in ionic v4. So Do you guys have any idea is this the problem? If so where can I find last versions of the packages that are compatible with V3.

My current versions:

@angular/core”: “5.2.11”,
@ionic-native/core”: “~4.18.0”,
“ionic-angular”: “3.9.3”,
“rxjs”: “5.5.11”,
@ionic/app-scripts”: “3.2.1”,
“typescript”: “~2.6.2”
and cordova is 7 I think.

Thanks!

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

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

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: 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

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

Viewing all 48980 articles
Browse latest View live


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