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

[issue] Appearance of a second input on click

$
0
0

@wizZarRD wrote:

Hi, I am creating a chat, but I got a problem with my input box. When I click the input a second input seems to appear and it looks horrible, how can I solve this?
IssueInput

I just have in HTML
<ion-input placeholder="Escribe un mensaje" class="in" value=":)"> </ion-input>

and SCSS:

.in
{
    position: fixed;
    bottom: 5%;
    background: white;
    border-radius: 19px;
    width: 340px;
    box-shadow: 2px 2px 2.5px #6F6F6F;
}

I do not have anything else. Is this a bug? How can this be fixed?

Posts: 1

Participants: 1

Read full topic


Change Slide in Menu Background Colors in IONIC 3

$
0
0

@heyjohnny wrote:

Ok, so I’ve been wracking my brain for 3 hours on this…I have found solutions for older versions of Ionic which don’t seem to apply to Ionic 3. No matter what I do the background-colors will not change on the TITLE bar or on the MENU ITEMS. This is what the side menu looks like in IONIC 3

Menu {{p.title}}

<ion-nav [root]=“rootPage” #content swipeBackEnabled=“false”>

I’ve added, classes to app.scss and then applied them to the above code to no avail. I’ve also added classes to variables.scss and applied them to the above code and absolutely nothing. I’ve inspected the elements and changed the classes that are used and those changed colors on the entire app as opposed to just the side menu…this can’t be this difficult, there is something I am missing…

Any help would be greatly appreciated.

Posts: 1

Participants: 1

Read full topic

3.9.0 upgrade: TypeError: parent.registerChildNav is not a function

$
0
0

@emcniece wrote:

Just working through a hefty upgrade. The upgrade instructions on the release are quite clear, and I have also upgraded ngrx as recommended at https://github.com/ngrx/platform/blob/master/MIGRATION.md#ngrxeffects

I’m stuck on an error though:

ERROR TypeError: parent.registerChildNav is not a function
    at new Nav (nav.js:67)
    at createClass (core.js:12174)
    at createDirectiveInstance (core.js:12011)
    at createViewNodes (core.js:13449)
    at callViewAction (core.js:13881)
    at execComponentViewsAction (core.js:13790)
...

I can start new apps via ionic start and they work as expected. They are different though - at the error break point (nav.js:67) the freshly-built apps have null for a parent while my app has an object with seemingly no data attached to it.

Here is the line in the TS file:

I have just finished reducing my nav structure down to a single page (completely gutted my app.component.ts file) and this error persists, so I am thinking it might be an import problem.

Does anyone have any ideas?

Posts: 2

Participants: 2

Read full topic

Uncaught Error: Cannot find module "tslib" when update to 3.9.2

$
0
0

@huyle wrote:

Hey,
I am facing with this issues, please advice. Thanks.

Uncaught Error: Cannot find module "tslib"
    at Object.<anonymous> (compiler.js:1)
    at __webpack_require__ (bootstrap a80b7ad41f732b859c1d:54)
    at Object.token.token (vendor.js:80606)
    at __webpack_require__ (bootstrap a80b7ad41f732b859c1d:54)
    at Object.251 (cache.ts:5)
    at __webpack_require__ (bootstrap a80b7ad41f732b859c1d:54)
    at webpackJsonpCallback (bootstrap a80b7ad41f732b859c1d:25)
    at main.js:100:

Snip20171110_8.png

My package.json is:

"dependencies": {
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "5.0.0",
    "@angular/core": "5.0.0",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@ionic-native/admob-free": "^4.3.3",
    "@ionic-native/app-rate": "^4.3.3",
    "@ionic-native/background-mode": "^4.3.3",
    "@ionic-native/core": "4.3.3",
    "@ionic-native/deeplinks": "^4.3.3",
    "@ionic-native/device": "^4.3.3",
    "@ionic-native/in-app-browser": "^4.3.3",
    "@ionic-native/local-notifications": "^4.3.3",
    "@ionic-native/social-sharing": "^4.3.3",
    "@ionic-native/splash-screen": "4.3.3",
    "@ionic-native/status-bar": "4.3.3",
    "@ionic/pro": "1.0.11",
    "@ionic/storage": "2.1.3",
    "angular2-moment": "^1.7.0",
    "angularfire2": "^5.0.0-rc.3",
    "autoprefixer": "^7.1.6",
    "cordova-admob-sdk": "^0.11.1",
    "cordova-android": "~6.3.0",
    "cordova-plugin-admob-free": "^0.11.0",
    "cordova-plugin-app-event": "^1.2.1",
    "cordova-plugin-apprate": "^1.3.0",
    "cordova-plugin-background-mode": "^0.7.2",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-whitelist": "^1.3.1",
    "cordova-plugin-x-socialsharing": "^5.2.1",
    "cordova-promise-polyfill": "0.0.2",
    "de.appplant.cordova.plugin.local-notification": "^0.8.5",
    "es6-promise-plugin": "^4.1.0",
    "firebase": "^4.6.1",
    "ionic-angular": "3.9.2",
    "ionic-plugin-deeplinks": "^1.0.15",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "promise-polyfill": "^6.0.2",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.0",
    "typescript": "2.4.2"
  },

Posts: 1

Participants: 1

Read full topic

Is it possible to use Ionic 4 (alpha, beta, rc)?

$
0
0

@marlonpatrick10 wrote:

I am starting a new project from scratch and would like to know if I could already start using Ionic 4.

For even if it is not in a “final” version, I believe it would already be advantageous for me because my project will take some time to be released.

Posts: 1

Participants: 1

Read full topic

IOS Failed to load webpage with error: A server with the specified hostname could not be found

$
0
0

@menghao93 wrote:

I am getting the attached error message from xcode whenever I try to run my ionic 3 project on simulator ios 11. May I know if there is anyone else getting same issue? I created a new project with blank starter template, still getting the same error message. it works well on android and browser for same set of source code

So far I have tried - but getting same error .
ios 11
ios 9
reinstall xcode

steps to replicate
ionic cordova start testios blank
ionic cordova platform add ios
ioinc cordova build ios --prod --release
use xcode from xcodeproj generated and try to run with your simulator

Ionic Info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.1
    Cordova Platforms  : ios 4.5.3
    Ionic Framework    : ionic-angular 3.8.0

System:

    Node  : v8.9.1
    npm   : 5.5.1
    OS    : macOS High Sierra
    Xcode : Xcode 9.1 Build version 9B55

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Posts: 1

Participants: 1

Read full topic

How to change Modal animation to "Fade in" And "Fade out"?

$
0
0

@Chungtheng wrote:

Hello, I want to change the modal animation when open and close from “modal-slide-in” and “modal-slide-out” to “fade-in” and “fade-out” just for one modal page, but I don’t have any idea how to do this.

Posts: 1

Participants: 1

Read full topic

Ionic Camera

$
0
0

@winjoy1 wrote:

My IPhone5(ios10.3) can’t take a photo from system

    if(this.nativeService.isIos()) {

      const options = {
        quality: 100,
        sourceType: sourceType,
        destinationType: this.camera.DestinationType.NATIVE_URI,
        encodingType: this.camera.EncodingType.JPEG,
        mediaType: this.camera.MediaType.PICTURE,
        saveToPhotoAlbum: false,
        correctOrientation: true
      };
      console.log("takePicture from ios")
      this.nativeService.showLoading("正在处理图片...")
      return this.camera.getPicture(options).then((imagePath) => {
      console.log("ios handle photo",imagePath)
      let options_resize = {
        uri: imagePath,
        // folderName: this.IMAGE_DIR,
        quality: 100,
        width: 120 * size,
        height: 120 * size
      } as ImageResizerOptions;

      return  this.imageResizer
        .resize(options_resize)
        .then((filePath: string) => {
          console.log("filePath after image resize ",filePath )
          var currentName = filePath.substr(filePath.lastIndexOf('/') + 1);
          var correctPath = filePath.substr(0, filePath.lastIndexOf('/') + 1);
          this.nativeService.hideLoading()
          return (currentName);
          // this.copyFileToLocalDir(correctPath, currentName, this.createFileName());
        })
        .catch(err =>{
          console.error('takePicture.' , err);
          this.presentToast('错误.' + err);
        });
      }, (err) => {
        this.presentToast('错误.' + err);
        this.nativeService.hideLoading()
      });
    }
    else if(this.nativeService.isAndroid()){
      const options = {
        quality: 100,
        sourceType: sourceType,
        destinationType: this.camera.DestinationType.FILE_URI,
        encodingType: this.camera.EncodingType.JPEG,
        mediaType: this.camera.MediaType.PICTURE,
        saveToPhotoAlbum: false,
        correctOrientation: true
      };
      console.log("takePicture from android")
      this.nativeService.showLoading("正在处理图片...")
      return this.camera.getPicture(options).then((imagePath) => {
      return  this.filePath.resolveNativePath(imagePath)
        .then(filePath => {
          console.log("filePath after shot photo",filePath)
          let options_resize = {
            uri: filePath,
            folderName: this.IMAGE_DIR,
            quality: 100,
            width: 120 * size,
            height: 120 * size
          } as ImageResizerOptions;

          return  this.imageResizer
            .resize(options_resize)
            .then((filePath: string) => {
              console.log("filePath after image resize ",filePath )
              var currentName = filePath.substr(filePath.lastIndexOf('/') + 1);
              var correctPath = filePath.substr(0, filePath.lastIndexOf('/') + 1);
              this.nativeService.hideLoading()
              return (currentName);
              // this.copyFileToLocalDir(correctPath, currentName, this.createFileName());
            })
            .catch(err =>{
              console.error('takePicture.' , err);
              this.presentToast('错误.' + err);
            });
        });
      }, (err) => {
        this.presentToast('错误.' + err);
        this.nativeService.hideLoading()
      });
    }

it show the error:


2017-11-10 11:39:42.651623+0800 IU Education[1177:642372] Clicked to update picture
2017-11-10 11:39:43.978555+0800 IU Education[1177:642372] takePicture from ios
2017-11-10 11:39:44.077057+0800 IU Education[1177:647145] [MC] System group container for systemgroup.com

.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com

.apple.configurationprofiles
2017-11-10 11:39:44.086286+0800 IU Education[1177:647145] [MC] Reading from public effective user settings.
2017-11-10 11:39:54.062510+0800 IU Education[1177:642372] ios handle photo assets-library://asset/asset.JPG?id=91DC3804-0CA1-43F0-A0B1-F9447EED0557&ext=JPG
2017-11-10 11:39:54.066197+0800 IU Education[1177:642372] IMAGE RESIZER START ----------------------------------------------------------------------------
2017-11-10 11:39:54.066322+0800 IU Education[1177:642372] Image Resizer Image URL : assets-library://asset/asset.JPG?id=91DC3804-0CA1-43F0-A0B1-F9447EED0557&ext=JPG
2017-11-10 11:39:54.092678+0800 IU Education[1177:642372] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

For android side it’s working fine.
Someone help me

Posts: 1

Participants: 1

Read full topic


Of those that have updated CLI to 3.18.0 can you

How to create a contact list

$
0
0

@flycoders_sourav wrote:

I want to create a contact list for my application where number on the device has to be compared with the numbers in the database which are use to register for the application.how can i do that?

This is my JSON response from device

This my server side JSON response.

Now i want to compare it with all the contact in the database on the serve which were used to during app registration.my purpose of for dloing this to create a contct list for the application which has only the contact number and names compare all these device contacts with the numbers stored into the database in the server.please guide my anyone.

Posts: 1

Participants: 1

Read full topic

Ionic3 super template sidemenu issue

$
0
0

@YUNHO wrote:

Hello, I have a bug with sidemenu in menu which is in page folder.
I wanted to use menu module.

so I removed menu tag from app.component template.

it works fine until using below code.

I’m using firebase auth so in app.component It checks auth from firebase so decide a root page.
when I develop it refresh page and then menu icon is hidden.
for example.

  1. working on http://localhost:8100/#/menu/content
  2. if refresh page
  3. ion-nav which is app.component.ts template is load over menu.html
  4. so menu button is hidden
    How can I solve this isuue?

Please Help me.

platform.ready().then(() => {
const authObserver = this.afAuth.authState.subscribe(user => {
if(user){
   this.rootPage = 'MenuPage';
}else{
this.rootPage = 'WelcomePage';
}
});
}

Posts: 1

Participants: 1

Read full topic

Call a web-service while browser / app closed by user

$
0
0

@sunilrawat wrote:

Hi guys.

I want to update a field isLoggenIn in mysql db , while user will closed browser or closed app.

I am using php as back-end and ionic v1 front-end. Any idea or suggestion will be appreciated.

Is there any event in ionic as we have in jquery $(window).bind(‘unload’, function(){} to bind browser close event.

Posts: 1

Participants: 1

Read full topic

Ionic commands return 'This app can't run on your PC' on Windows

$
0
0

@Sidharth_1999 wrote:

For some reason, out of nowhere, when I run commands like ionic serve or ionic info, I get the Windows alert:
"This app can’t run on your PC. To find a version for your PC, check with the software publisher"
Followed by an ‘Access is denied’ statement on the command prompt

I was able to run an ionic app with no problem just a week ago, and I haven’t done any major environment configurations since then. Not even updates. This has been entirely out of the blue, and I don’t know how to approach the problem.

Any ideas on what could be causing this issue, and how to fix it?

Posts: 1

Participants: 1

Read full topic

Error: Uncaught (in promise): Error: No provider for - ionic 3

$
0
0

@Madhawa wrote:

Im Create new Ionic page name for listing and i m added some file its name listing.service.ts after I cant open this listing page i had some error

Error: Uncaught (in promise): Error: No provider for ListingService!
Error: No provider for ListingService!

Im try to fix it for more than one hour but cant found any solutions , how to fix it ? Thanks This is my code

listing.module.ts


import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ListingPage } from './listing';
import  {ListingService} from "./listing.service";


@NgModule({
  declarations: [
    ListingPage,
  ],
  imports: [
    IonicPageModule.forChild(ListingPage),
  ],
  providers: [
    ListingService
  ]
})
export class ListingPageModule {}

listing.service.ts

import {Injectable} from '@angular/core';
 @Injectable()
    export class ListingService {
      private eventMap:any;
      constructor() {
        this.initEventMap();
      }

app.module.ts

import {ListingService} from "../pages/listing/listing.service";

const providers = [ ListingService ];

@NgModule({
  declarations: [
    MyApp,
    HomePage




  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    CalendarModule, // Ionic Calendar

  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage

  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}

Posts: 1

Participants: 1

Read full topic

@ionic-native/file-transfer/index.d.ts, found version 4, expected 3

$
0
0

@Bbdangar wrote:

Hello,
While runnig inoic cordova run android --prod I got this error.

Running app-scripts build: --prod --platform android --target cordova
[11:31:00]  build prod started ...
[11:31:00]  clean started ...
[11:31:00]  clean finished in 4 ms
[11:31:00]  copy started ...
[11:31:00]  ngc started ...
Error: Metadata version mismatch for module /home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@ionic-native/file-transfer/index.d.ts, found version 4, expected 3
    at StaticSymbolResolver.getModuleMetadata (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:24474:34)
    at StaticSymbolResolver._createSymbolsOf (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:24260:46)
    at StaticSymbolResolver.getSymbolsOf (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:24241:14)
    at /home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:23023:30
    at Array.forEach (native)
    at extractProgramSymbols (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:23022:79)
    at AotCompiler.compileAll (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler/bundles/compiler.umd.js:22720:47)
    at CodeGenerator.codegen (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler-cli/src/codegen.js:30:14)
    at Function.NgTools_InternalApi_NG_2.codeGen (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@angular/compiler-cli/src/ngtools_api.js:61:30)
    at Object.doCodegen (/home/bbdangar/public_html/mik_lab/real-estate-app-io/node_modules/@ionic/app-scripts/dist/aot/codegen.js:6:51)
[11:31:03]  copy finished in 2.72 s

Posts: 2

Participants: 1

Read full topic


Weird, Now no matter the folder Ionic Serve serves Same app

$
0
0

@Ben1nB1ack wrote:

Not sure what is going on, I got a paid ionic pro account going today, and setup gitlab.com and linked main project.

So, someone asked a question on here, and i went to old learning project and setup his code and when i ran

Ionic serve

it ran the main project in browser, I went to all my old project folder and no matter what folder im in it serves the main

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : browser 5.0.1 ios 4.5.3
    Ionic Framework    : ionic-angular 3.6.1

System:

    ios-deploy : 1.9.2
    Node       : v8.6.0
    npm        : 2.15.12
    OS         : macOS High Sierra
    Xcode      : Xcode 9.1 Build version 9B55


Posts: 1

Participants: 1

Read full topic

Unable to take a screenshot of InAppBrowser

$
0
0

@Abhishek_krishna wrote:

I am loading a URL in InAppBrowser and trying to take a screenshot of the webpage loaded in the InAppBrowser. When i take a screenshot of the webpage, it is always taking the screenshot of the underlying window (Main page of the app).
Is there any proper way to take a screenshot of InAppBrowser?

Posts: 1

Participants: 1

Read full topic

Lock down App

$
0
0

@cisocybersecurity wrote:

How can I lock by ionic application such that no other application can open until exit button press in my application.

That means no event should trigger on press of home button, back button or menu button in android and IOS.

Scenario : Student takes an exam in ionic application, then he/she not able to open chrome or any other application for the help.

Posts: 1

Participants: 1

Read full topic

Startup long in android for ionic 3

$
0
0

@speedflyer wrote:

Hello,

Yesterday I migrated to ionic 3.
To do this I first migrated to next version of the cli. Then I removed my node_module and update my package.json before running the npm install ( I also removed the package.json.lock)

But now the startup of my app is really long…
First my build prod faced lot of issues ( I was obliged to increase the node build to 8192)

Anyway now I am using latest of everything:


cli packages: (c:\Users\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.0.0

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.2.2
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 25.1.3
    Node              : v6.11.3
    npm               : 5.3.0
    OS                : Windows 7

Environment Variables:

    ANDROID_HOME : D:\Userfiles\Documents\perso\android\sdk

Misc:

    backend : pro

Here is my package.json:

   "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "5.0.0",
        "@angular/compiler": "5.0.0",
        "@angular/compiler-cli": "5.0.0",
        "@angular/core": "5.0.0",
        "@angular/forms": "5.0.0",
        "@angular/http": "5.0.0",
        "@angular/platform-browser": "5.0.0",
        "@angular/platform-browser-dynamic": "5.0.0",
        "@angular/platform-server": "5.0.0",
        "@ionic-native/app-availability": "4.3.3",
        "@ionic-native/barcode-scanner": "4.3.3",
        "@ionic-native/camera": "4.3.3",
        "@ionic-native/clipboard": "4.3.3",
        "@ionic-native/contacts": "4.3.3",
        "@ionic-native/core": "4.3.3",
        "@ionic-native/device": "4.3.3",
        "@ionic-native/facebook": "4.3.3",
        "@ionic-native/file": "4.3.3",
        "@ionic-native/geolocation": "4.3.3",
        "@ionic-native/globalization": "4.3.3",
        "@ionic-native/google-plus": "4.3.3",
        "@ionic-native/in-app-browser": "4.3.3",
        "@ionic-native/launch-navigator": "4.3.3",
        "@ionic-native/linkedin": "4.3.3",
        "@ionic-native/network": "4.3.3",
        "@ionic-native/push": "4.3.3",
        "@ionic-native/social-sharing": "4.3.3",
        "@ionic-native/splash-screen": "4.3.3",
        "@ionic-native/status-bar": "4.3.3",
        "@ionic/storage": "2.1.3",
        "@types/cropperjs": "0.0.22",
        "@types/crypto-js": "^3.1.33",
        "angular2-swing": "^0.12.1",
        "cordova-android": "^6.2.2",
        "cordova-ios": "^4.5.1",
        "cordova-plugin-actionsheet": "^2.3.3",
        "cordova-plugin-appavailability": "^0.4.2",
        "cordova-plugin-camera": "^2.4.1",
        "cordova-plugin-compat": "^1.2.0",
        "cordova-plugin-contacts": "^2.3.1",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-dialogs": "^1.3.3",
        "cordova-plugin-facebook4": "^1.7.4",
        "cordova-plugin-file": "^4.3.3",
        "cordova-plugin-geolocation": "^2.4.3",
        "cordova-plugin-globalization": "^1.0.7",
        "cordova-plugin-googleplus": "^5.1.1",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-linkedin": "^1.2.1",
        "cordova-plugin-network-information": "^1.3.3",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-plugin-whitelist": "^1.3.2",
        "cordova-plugin-x-socialsharing": "^5.1.8",
        "cordova-sqlite-storage": "^2.0.4",
        "cropperjs": "^1.0.0-alpha",
        "crypto-js": "^3.1.9-1",
        "es6-promise-plugin": "^4.1.1",
        "ionic-angular": "3.9.2",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "ng2-translate": "^5.0.0",
        "phonegap-plugin-barcodescanner": "^6.0.8",
        "phonegap-plugin-push": "^2.0.0",
        "qrcode-generator": "^1.0.7",
        "rxjs": "5.5.2",
        "sw-toolbox": "3.6.0",
        "uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.0.5",
        "zone.js": "0.8.18"
    },
    "devDependencies": {
        "@ionic/app-scripts": "3.1.0",
        "typescript": "~2.4.2"
    },

TO build I use command:

ionic cordova run android --prod

Before I just used ionic run android --prod

What is strange is that after the 10 minutes of build when I start my app it takes 15 seconds to start (like a normal build).
Here are the logs:

vendor.js:3916 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
main.js:18000 Home displayed
main.js:18045 Not authenticated so redirect to connection
cordova.js:1223 deviceready has not fired after 5 seconds.
vendor.js:164568 Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.
(anonymous) @ vendor.js:164568
t.invokeTask @ polyfills.js:3
r.runTask @ polyfills.js:3
e.invokeTask @ polyfills.js:3
i.isUsingGlobalCallback.invoke @ polyfills.js:3
n @ polyfills.js:3
vendor.js:164563 Ionic Native: deviceready event fired after 14300 ms

But what I don’t understand is why the plugins are impacted? Ionic is supposed to be a wrapper? And when I launch the same build on my project in ionic 2 (I kept a backup). Device fire in less than 4 seconds.

Do you have any idea?

Regards

Posts: 1

Participants: 1

Read full topic

My page 'freezes' when adding a spacer

$
0
0

@alexvainio wrote:

Hello!

I’m having a critical problem in Creator. When I add a spacer (at least this has happened twice after adding one) to a page in my app, the build mode in that particular page freezes so that I can’t scroll it (I can change the content in the page thought). The view mode is working fine, and so are all the other pages in build mode. The scrolling in the page is obviously enabled.

I have tried to delete cookies, restart the browser (I use Chrome on Mac) and tried in a different browser. The only thing that I’ve been able to do is to create a whole new page and copy all the content from the old page. I have so much content on the page that this is very annoying.

I’m using Creator in my work so this is really bad for my performance. Is there anything to be done? Is this a bug in Creator or something else?

Thanks for your assistance,
Alex

Posts: 1

Participants: 1

Read full topic

Viewing all 70446 articles
Browse latest View live


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