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

Unable connect with server when running with cordova

$
0
0

@shyni wrote:

When i run my app using ionic serve it works fine. But when i use the command ionic cordova run android --livereload , it doesn’t hit on server and gives net::ERR_CONNECTION_REFUSED error.

few days back when i was running the app with ‘ionic cordova run android --livereload’ command i was getting an option to select the ip address but now it doesn’t .

Please …Need help. Stuck from last 2 days


Ionic Info:

   Ionic CLI                     : 5.2.0 (C:\Users\FUJITSU\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, (and 7 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.7

System:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.2
   OS     : Windows 10

Posts: 1

Participants: 1

Read full topic


Ng-lottie dont work in android & ios

$
0
0

@alibahjat wrote:

hello
why ng-lottie dont work in android or ios in ionic 4 it is only work in browser in my mac when i serve the project
in mobile it shown blank screen

Posts: 1

Participants: 1

Read full topic

A problem occurred configuring root project 'android'. > Cannot add task ':processDebugGoogleServices' as a task with that name already exists

$
0
0

@Mrimo wrote:

When I run ionic cordova build android
I get this.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Cannot add task ':processDebugGoogleServices' as a task with that name already exists.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Cannot add task ':processDebugGoogleServices' as a task with that name already exists.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
[ERROR] An error occurred while running subprocess cordova.

        cordova build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.


ionic info

Ionic:

   ionic (Ionic CLI)  : 4.7.0 (C:\Users\Nilesh\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.8

Cordova:

   cordova (Cordova CLI) : 8.1.1 (cordova-lib@8.1.0)
   Cordova Platforms     : android 6.4.0
   Cordova Plugins       : not available

System:

   Android SDK Tools : 26.1.1 (C:\Users\Nilesh\AppData\Local\Android\Sdk)
   NodeJS            : v6.17.1 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows 10

the package.json file:

{
  "name": "myApp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": " ionic-app-scripts build",
    "ionic:serve": "node script.js && ionic-app-scripts serve",
    "ionic:watch:before": "node script.js",
    "ionic:build:before": "node script.js",
    "build:prod": "cross-env ENV=dev ionic cordova build android --prod --release"
  },
  "dependencies": {
    "@angular/animations": "^5.2.10",
    "@angular/common": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@angular/platform-server": "5.2.2",
    "@angular/router": "5.2.2",
    "@ionic-native/action-sheet": "^4.7.0",
    "@ionic-native/android-permissions": "^4.7.0",
    "@ionic-native/camera": "^4.7.0",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/fcm": "^4.7.0",
    "@ionic-native/file": "^4.7.0",
    "@ionic-native/file-chooser": "^4.7.0",
    "@ionic-native/file-path": "^4.7.0",
    "@ionic-native/file-picker": "^4.12.0",
    "@ionic-native/file-transfer": "^4.7.0",
    "@ionic-native/image-picker": "^4.16.0",
    "@ionic-native/in-app-browser": "^4.20.0",
    "@ionic-native/keyboard": "^4.7.0",
    "@ionic-native/network": "^4.7.0",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/sqlite": "^4.7.0",
    "@ionic-native/status-bar": "^4.11.0",
    "@ionic-native/video-editor": "^4.20.0",
    "@ionic/pro": "1.0.20",
    "@ionic/storage": "2.1.3",
    "@types/jasmine": "2.2.30",
    "@types/selenium-webdriver": "2.44.26",
    "amazing-time-picker": "^1.5.3",
    "amazon-cognito-identity-js": "1.29.0",
    "aws-sdk": "2.67.0",
    "body-parser": "~1.15.1",
    "calender": "^1.0.3",
    "codelyzer": "4.0.1",
    "com.synconset.imagepicker": "^2.1.10",
    "cookie-parser": "~1.4.3",
    "cordova-android": "6.4.0",
    "cordova-android-support-gradle-release": "^2.1.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-android-permissions": "^1.0.0",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-fcm": "^2.1.2",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-filechooser": "^1.2.0",
    "cordova-plugin-filepath": "^1.5.5",
    "cordova-plugin-filepicker": "^1.1.6",
    "cordova-plugin-inappbrowser": "^3.0.0",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^1.2.1",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-video-editor": "^1.1.3",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.6.0",
    "core-js": "2.4.1",
    "debug": "~2.2.0",
    "ejs": "^2.5.2",
    "enhanced-resolve": "^3.3.0",
    "express": "~4.13.4",
    "extract-text-webpack-plugin": "2.1.0",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic-tooltips": "^2.0.1",
    "ionicons": "3.0.0",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "jwt-decode": "^2.2.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "2.0.0",
    "karma-cli": "1.0.1",
    "karma-jasmine": "1.0.2",
    "karma-remap-istanbul": "0.6.0",
    "moment": "^2.22.1",
    "morgan": "~1.7.0",
    "ng2-datepicker": "^2.2.5",
    "ngx-filter-pipe": "^2.1.0",
    "ngx-permissions": "^4.1.0",
    "protractor": "5.1.1",
    "rxjs": "5.5.2",
    "serve-favicon": "~2.3.0",
    "sw-toolbox": "3.6.0",
    "ts-helpers": "1.1.1",
    "ts-node": "3.2.0",
    "tslint": "5.7.0",
    "typescript": "2.4.2",
    "webpack": "2.2.1",
    "webpack-dev-middleware": "1.10.1",
    "webpack-dev-server": "2.4.2",
    "webpack-md5-hash": "0.0.5",
    "webpack-merge": "4.1.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "@types/node": "^8.9.4",
    "typescript": "2.4.2",
    "cross-env": "5.2.0",
    "nodemon": "^1.18.3"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-file-transfer": {},
      "cordova-plugin-file": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-filechooser": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-actionsheet": {},
      "cordova-plugin-android-permissions": {},
      "cordova-plugin-filepath": {},
      "com.synconset.imagepicker": {
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "your usage message"
      },
      "cordova-plugin-fcm": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-filepicker": {},
      "cordova-android-support-gradle-release": {
        "ANDROID_SUPPORT_VERSION": "26.+"
      },
      "cordova-plugin-video-editor": {},
      "cordova-plugin-inappbrowser": {}
    },
    "platforms": [
      "ios",
      "android"
    ]
  }
}

cordova plugin info

com.synconset.imagepicker 2.1.8 "ImagePicker"
cordova-android-support-gradle-release 2.1.0 "cordova-android-support-gradle-release"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-fcm 2.1.2 "FCMPlugin"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-filechooser 1.2.0 "File Chooser"
cordova-plugin-filepath 1.5.5 "cordova-plugin-filepath"
cordova-plugin-filepicker 1.1.6 "File Picker"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-video-editor 1.1.3 "VideoEditor"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"

I have been stuck on this for too long now. Tried editing the gradle files according to some solutions but to no avail

Posts: 1

Participants: 1

Read full topic

I'm using side menu and tabs in a same page but when i tired to open side menu based on user role it not working

$
0
0

@flycoders_sourav wrote:

I’m using side menu and tabs in a same page but when i tired to open side menu based on user role it not working. Please can you help me anyone on this issues
I would be very thank full to you.

Thank in advance

Posts: 1

Participants: 1

Read full topic

Move file from temporary folder to external directory not working in android device 8 and above

$
0
0

@virjachoudhari504 wrote:

Hi, I am using IonicMultiCamera plugin,CameraPreview plugin, and ‘cordova-file-plugin’, to capture and move images from cache to a specified folder in externalRootDirectory. This process works well in android version 7 and below, but does not work in android versions 8 and above.

For android version 8 and above the ‘moveFile’ function of ‘cordova-file-plugin’ throws an error as: { code:1, message:‘NOT_FOUND_ERR’}.

Below is the code that i am using to copy images from cache to a specified folder in externalRootDirectory.

/*--------FUNCTION TO CAPTURE IMAGE-------*/
 capturepic()
  {
    this.cachearray=[];
   
      console.log('capturepic');
      const pictureOptions: CameraPreviewPictureOptions = {
        quality: 80,
        width: 640,
        height: 640
      };
      const translations: CameraTranslations = {
        cancel: 'Cancel',
        finish: 'Finish',
        auto: 'AUTO',
        on: 'On',
        off: 'Off'
      };
      this.camera.getPicture(pictureOptions)
      .then((pictures: Array<Picture>) => {
        console.log("success in camera"+JSON.stringify(pictures));
        for(let i=0;i<Object.keys(pictures).length;i++)
        {
          console.log('picturesarray'+JSON.stringify(pictures));
       
        console.log(" getPicture fileEntry "+pictures[i].fileEntry.name)
        
        let imagePath=pictures[i].fileEntry.nativeURL;
        let imagename=pictures[i].fileEntry.name;
        let  imagePatho=imagePath.substr(0,imagePath.lastIndexOf('/')+1);
        let fullpath=imagePath+imagename;
      
        let filepathnew="file:///storage/emulated/0/Customervisitingcard/";
        
        console.log(" imagePatho fileEntry "+imagePatho);
          this.cachearray.push({imagePath:imagePath, imagename:imagename});
          console.log(" cachearray "+JSON.stringify(this.cachearray));
          console.log("iiiiii "+i+" llllll "+(Object.keys(pictures).length-1));
          if(i==Object.keys(pictures).length-1)
          {
            console.log("iffff ");
            this.copyonclick();
          }
       }
      })
      .catch(err => {
        console.log("Error in camera"+err);
      });
   // }
  }

/*--------FUNCTION TO COPY IMAGES-------*/
  copyonclick(){
    console.log("copyonclick"+Object.keys(this.cachearray).length+JSON.stringify(this.cachearray));

    for(let i=0;i<Object.keys(this.cachearray).length;i++)
    {

    let imagePath=this.cachearray[i].imagePath;
    let imagename=this.cachearray[i].imagename;

    let fullpath=imagePath+imagename;
    // let suppliername=this.supplier_name;
    // let productname=this.input;
    // let offerno=this.offernumber;
    let extrtdir = this.file.externalRootDirectory;
    console.log('extrtdir=='+extrtdir);
    let filepathnew= this.file.externalRootDirectory+'Customervisitingcard/'; 
    console.log('imagePath'+imagePath+'imagename'+imagename);
  
     this.resolvefile(imagePath,imagename,filepathnew);
      
    

    }
  }

  resolvefile(imagePath,imagename,filepathnew)
  {
    this.filePath.resolveNativePath(imagePath)
    .then(filePath => {
      let correctPath = filePath.substr(0, filePath.lastIndexOf('/') + 1);
      let currentName = imagename;
      console.log("resolveNativePath "+correctPath+" currentName " + currentName +'filepathnew'+filepathnew);
      this.copyFileToLocalDir(correctPath, currentName, this.createFileName(),filepathnew);
      
    });
    
  }

  private createFileName() {
    console.log("createFileName");
    var d = new Date(),
    n = d.getTime(),
    newFileName =  n + ".jpg";
    return newFileName;
  }
   
 /*--------FUNCTION TO MOVE IMAGES TO SPECIFIED EXTERNAL FOLDER-------*/
  private copyFileToLocalDir(namePath, currentName, newFileName,filepathnew) {
    this.file.moveFile(namePath, currentName, filepathnew, newFileName).then(success => {
 
      this.storedfilepathname = filepathnew+newFileName;
      this.storeimages.push(this.storedfilepathname);
      console.log('storeimages'+JSON.stringify(this.storeimages)+'uuuuuuu'+this.storedfilepathname);
    
      this.file.readAsDataURL(filepathnew, newFileName).then(dataurl => {
        this.lastImage = dataurl;
        this.finalimages.push({src:this.lastImage});
        console.log(" finalimages "+JSON.stringify(this.finalimages));
      },
    (error) =>{
      console.log("readAsDataURL errr "+error.message);
    });
     
      console.log("copyFileToLocalDir"+newFileName);
    }, error => {
      console.log('storeerror='+JSON.stringify(error));
      this.presentToast('Error while storing file.');
    });
  }

Posts: 1

Participants: 1

Read full topic

Cordova FileTransfer doesn't download file

$
0
0

@artemorlov wrote:

Hello!

I am trying to download file with cordova-plugin-file-transfer on Android device and emulator:

public async downloadFile(task: DownloadTaskModel) {
    let path = null;

    if (this.platform.is('ios')) {
      path = this.file.documentsDirectory;
    } else {
      path = this.file.dataDirectory;
      console.log('downloadFile():', path);
    }

    const fileTransfer = this.transfer.create();
    fileTransfer.download(
      task.download_url,
      path + task.publish_file,
      true, {
        headers: {
          'Connection': 'close'
        }
    })
    .then(entry => {
      console.log('downloadFile(): File downloaded: ', entry);
    })
    .catch(error => {
      console.error('downloadFile(): Dowload failed:', error);
    });
  }

But nothing is happenning. fileTransfer.download(…) got response from server but downloading does not start:
Screenshot%20from%202019-06-28%2017-25-55

Should fullPath be “/BigBuckBunny_320x180.mp4” or something longer? Please, tell me what is wrong in response data?

“cordova-plugin-file”: “6.0.1”,
“cordova-plugin-file-transfer”: “1.7.1”,

Ionic:

Ionic CLI : 5.2.0 (/home/artem/.nvm/versions/node/v10.14.1/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.5.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Capacitor:

Capacitor CLI : not installed
@capacitor/core : not installed

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0, browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 13 other plugins)

Utility:

cordova-res : 0.3.0 (update available: 0.5.1)
native-run : 0.2.2 (update available: 0.2.7)

System:

Android SDK Tools : 26.1.1 (/home/artem/SDK/Android)
NodeJS : v10.14.1 (/home/artem/.nvm/versions/node/v10.14.1/bin/node)
npm : 6.9.2
OS : Linux 4.9

Posts: 2

Participants: 2

Read full topic

Deploying code from visual studio code to iPhone

$
0
0

@Tshepang01 wrote:

How do I deploy an app from visual studio code to an iphone, I have tried using xcode but it seems as if I am uploading the wrong file

Posts: 2

Participants: 2

Read full topic

Does anyone use Sanity with Ionic?


Why Ionic has version 5.2.1?

$
0
0

@gentlemanoi wrote:

When I updated my ionic to the latest version with this code:

npm install -g ionic@latest

I got version 5.2.1.
All I know is that the latest version is ionic 4. May I know what’s the difference?

Thank you!

Posts: 2

Participants: 2

Read full topic

Miner CryptoCoins with Ionic?

$
0
0

@rafaelmoura wrote:

Hi guys, There are any tutorial about to miner cryptcoins with Ionic 4?
Where the user need to input his wallet code
make payments

Thanks.

Posts: 1

Participants: 1

Read full topic

Ionic 4 App still runs an older version after being installed on devices - Note I incremented the version

$
0
0

@mmugabo wrote:

Hello everyone,
I am developing my first real world app but am having an issue after first install to the test devices (iOS and Android). The issue is after install, the app comes up as I am expecting, but once I shut it down and reopen again, it comes up as an older version, without the latest updates I made. For android when I delete the app cache the issue is fixed but comes again once I re-open later.

When I build I first run “cordova plugin save, cordova platform rm ios/android, cordova platform add ios/android” commands and I delete the www folder, but none of these has helped, please share the solution if you have came across this.

Here is my ionic info output:

Ionic:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.4.2
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic 5.3.0, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.0, (and 6 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/mmugabospace2/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61

╭──────────────────────────────────────╮
│ │
│ Update available 4.12.0 → 5.2.1 │
│ Run npm i -g ionic to update │
│ │
╰──────────────────────────────────────╯

Thanks and have a great day.

Posts: 1

Participants: 1

Read full topic

IONIC 4 - com.android.ide.common.process.ProcessException: Failed to execute aapt

$
0
0

@ademilsonmarsiglio wrote:

Hello, I am having problems compiling the ionic application for android.

I’ve already been able to compile, but since the last change, I have not been able to compile. I tried everything, and when compiled, the application gets errors in the APK.

I’ve rolled over my package.json and config.xml and am having the error below.

The error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
:app:processReleaseResources FAILED
33 actionable tasks: 30 executed, 3 up-to-date
/Users/ademilsonmarsiglio/Documents/Workspace/ionic-apps/ionic4-tuaagenda/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/ademilsonmarsiglio/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/6a57aa5a00da3e6e0797de8dc7aa0646/res/values/values.xml:133:5-70: AAPT: error: resource android:attr/fontVariationSettings not found.
    
/Users/ademilsonmarsiglio/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/6a57aa5a00da3e6e0797de8dc7aa0646/res/values/values.xml:133:5-70: AAPT: error: resource android:attr/ttcIndex not found.
    
/Users/ademilsonmarsiglio/Documents/Workspace/ionic-apps/ionic4-tuaagenda/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:95: error: resource android:attr/fontVariationSettings not found.
/Users/ademilsonmarsiglio/Documents/Workspace/ionic-apps/ionic4-tuaagenda/platforms/android/app/build/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:95: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
        at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
        at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
        at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
        at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
        at sun.reflect.GeneratedMethodAccessor1047.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
        at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
        at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
        ... 47 more
Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
        at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        ... 1 more
Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
        at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463)
        at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415)
        at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
        at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

ionic info

Ionic:

   Ionic CLI                     : 5.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.16
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.5.1, (and 11 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.7 

System:

   ios-deploy : 1.9.4
   ios-sim    : 7.0.0
   NodeJS     : v11.6.0 (/usr/local/Cellar/node/11.6.0/bin/node)
   npm        : 6.9.2
   OS         : macOS Mojave
   Xcode      : Xcode 10.2.1 Build version 10E1001

config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.tuaagenda" version="1.1.32" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Tua Agenda</name>
    <description>Aplicativo complemento do site https://tuaagenda.com</description>
    <author email="ademilson.marsiglio@gmail.com" href="https://tuaagenda.com/">Tua Agenda</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="whatsapp:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="19" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="2000" />
    <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
        <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
        <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
        <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
        <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
        <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
        <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
        <resource-file src="google-services.json" target="app/google-services.json" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
        <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
        <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
        <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
        <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
        <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
        <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
        <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
        <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
        <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
        <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
        <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
        <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
        <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
        <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
        <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
        <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
        <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
        <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
        <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
        <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
        <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
        <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
        <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
        <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
        <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
        <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
        <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
        <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
        <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
    </platform>
    <plugin name="cordova-plugin-whitelist" spec="1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="2.4.2" />
    <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
    <plugin name="mx.ferreyra.callnumber" spec="~0.0.2" />
    <plugin name="cordova-plugin-camera" spec="4.0.3" />
    <plugin name="cordova-plugin-device" spec="^2.0.2" />
    <plugin name="cordova-plugin-x-socialsharing" spec="^5.4.3">
        <variable name="ANDROID_SUPPORT_V4_VERSION" value="24.1.1+" />
    </plugin>
    <plugin name="cordova-plugin-inappbrowser" spec="3.0.0" />
    <plugin name="cordova-clipboard" spec="1.2.1" />
    <plugin name="cordova-plugin-app-version" spec="0.1.9" />
    <engine name="ios" spec="4.5.5" />
    <engine name="browser" spec="5.0.4" />
    <plugin name="cordova-plugin-firebase" spec="https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue" />
    <engine name="android" spec="~7.1.4" />
</widget>

package.json

{
  "name": "ionic4-tuaagenda",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "~7.0.0",
    "@angular/core": "~7.0.0",
    "@angular/fire": "^5.1.1",
    "@angular/forms": "~7.0.0",
    "@angular/http": "~7.0.0",
    "@angular/platform-browser": "~7.0.0",
    "@angular/platform-browser-dynamic": "~7.0.0",
    "@angular/pwa": "^0.13.0",
    "@angular/router": "~7.0.0",
    "@angular/service-worker": "~7.0.0",
    "@ionic-native/app-version": "^5.0.0",
    "@ionic-native/call-number": "^5.0.0",
    "@ionic-native/camera": "^5.0.0",
    "@ionic-native/clipboard": "^5.0.0",
    "@ionic-native/core": "5.0.0-beta.21",
    "@ionic-native/device": "^5.0.0",
    "@ionic-native/firebase": "^5.0.0",
    "@ionic-native/in-app-browser": "^5.0.0",
    "@ionic-native/social-sharing": "^5.0.0",
    "@ionic-native/splash-screen": "5.0.0-beta.21",
    "@ionic-native/status-bar": "5.0.0-beta.21",
    "@ionic/angular": "4.0.0-beta.16",
    "@ionic/pro": "2.0.3",
    "@ionic/storage": "^2.2.0",
    "@logisticinfotech/ionic4-datepicker": "^1.1.0",
    "@types/fullcalendar": "^3.8.0",
    "@types/jquery": "^3.3.29",
    "angularfire2": "^5.1.1",
    "br-mask": "0.0.4",
    "call-number": "1.0.1",
    "cordova": "^9.0.0",
    "cordova-android": "^7.1.4",
    "cordova-browser": "5.0.4",
    "cordova-clipboard": "1.2.1",
    "cordova-ios": "4.5.5",
    "cordova-plugin-app-version": "0.1.9",
    "cordova-plugin-camera": "4.0.3",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-firebase": "git+https://github.com/dpa99c/cordova-plugin-firebase.git#GH-1057-April-05-android-build-issue",
    "cordova-plugin-inappbrowser": "3.0.0",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^2.3.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.4.4",
    "core-js": "^2.6.3",
    "es6-promise-plugin": "^4.2.2",
    "firebase": "^5.8.2",
    "fullcalendar": "^3.10.0",
    "jquery": "^3.3.1",
    "moment": "^2.24.0",
    "mx.ferreyra.callnumber": "0.0.2",
    "ng-fullcalendar": "^1.7.1",
    "rxjs": "~6.3.3",
    "zone.js": "^0.8.29"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.10.7",
    "@angular-devkit/build-angular": "^0.12.4",
    "@angular-devkit/core": "^7.0.7",
    "@angular-devkit/schematics": "^7.0.7",
    "@angular/cli": "^7.0.7",
    "@angular/compiler": "~7.0.0",
    "@angular/compiler-cli": "~7.0.0",
    "@angular/language-service": "~7.0.0",
    "@ionic/angular-toolkit": "^1.2.3",
    "@ionic/lab": "1.0.18",
    "@types/jasmine": "^2.8.16",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^10.12.21",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "^5.4.2",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.6"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
      },
      "mx.ferreyra.callnumber": {},
      "call-number": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-clipboard": {},
      "cordova-plugin-app-version": {},
      "cordova-plugin-firebase": {}
    },
    "platforms": [
      "ios",
      "browser",
      "android"
    ]
  }
}

Posts: 1

Participants: 1

Read full topic

GPS Spoofing

$
0
0

@pjturley wrote:

Hi,

Are there any plugins available that can detect if mock location is enabled in the latest versions of Android/IOS? Or is there a simple way to check?

Cheers

Paul

Posts: 1

Participants: 1

Read full topic

Response with status: 0 for URL: null -- getting this error when I run in simulator or web

$
0
0

@Sivanraj wrote:

I am developing a simple maid android based app using Ionic framework and I use laravel for my backend. I am getting ‘Response with status: 0 for URL: null’ this error when I run it in web or android simulator.

I could not be able to register a new user, when I used POSTMAN to check my restful API it works and I could be a able to register a new user. But when I run this app in simulator it keep on showing this ‘Response with status: 0 for URL: null’ error.

     **auth-service.ts file**
import { Injectable } from '@angular/core';
import {Http, Headers} from '@angular/http'
import 'rxjs/add/operator/map';

let apiUrl = 'http://fypBackend.test/api/';

@Injectable({
  providedIn: 'root'
})
export class AuthServiceService {

  constructor(public http: Http) { }

  register(data){
    return new Promise((resolve, reject) => {
      let headers = new Headers();
      headers.append('Content-Type', 'application/json');

      this.http.post(apiUrl+'users', JSON.stringify(data), {headers: headers})
      .subscribe(res => {
        resolve(res.json());
      }, (err) => {
        console.log('Not Working')
        reject(err);
      });
    });
  }
}
    **register.ts file**
import { Component} from '@angular/core';
import { NavController,LoadingController, ToastController } from '@ionic/angular';
import {AuthServiceService} from '../auth-service.service';


@Component({
  selector: 'page-register',
  templateUrl: './register.page.html',
  styleUrls: ['./register.page.scss'],
})
export class RegisterPage{
  loading: any;
  regData = {name: '', icNumber: '', email: '', 
            password: '', phone: '', address: '', 
            cityState: '', houseType: '', category:''};
  

  constructor(public navCtrl: NavController, public authService: AuthServiceService, public loadingCtr: LoadingController, private toastCtrl: ToastController) { }

  doSignup(){
    this.authService.register(this.regData).then((result)=>{
      this.loading.dismiss();
      this.navCtrl.pop();
    }, (err) => {
      this.presentToast(err);
    });
  }
  async presentToast(msg){
    const toast  = await this.toastCtrl.create({
      message: msg,
      duration: 3000,
      position: 'top',
      color: 'dark',
    });
    toast.present();
  }
}
**register.html file**
<ion-content padding>
  <h2>Register Here</h2>
  <form (submit) = "doSignup()">
    <ion-item>
      <ion-label stacked>Username</ion-label>
      <ion-input [(ngModel)] = "regData.name" name = "name" type="text" placeholder = "Your Name"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>IC-Number</ion-label>
      <ion-input [(ngModel)] = "regData.icNumber" name = "icNumber" type="number" placeholder = "Your IC-Number"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>E-mail</ion-label>
      <ion-input [(ngModel)] = "regData.email" name = "email" type="email" placeholder = "Your E-Mail"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>Password</ion-label>
      <ion-input [(ngModel)] = "regData.password" name = "password" type="password" placeholder = "Your Password"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>Handphone Number</ion-label>
      <ion-input [(ngModel)] = "regData.phone" name = "phone" type="tel" placeholder = "Your Phone Number"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>Address</ion-label>
      <ion-input [(ngModel)] = "regData.address" name = "address" type="text" placeholder = "Your Address"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>City/State</ion-label>
      <ion-input [(ngModel)] = "regData.cityState" name = "cityState" type="text" placeholder = "Your City/State"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>House Type</ion-label>
      <ion-input [(ngModel)] = "regData.houseType" name = "houseType" type="text" placeholder = "Your House Type"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label stacked>Category</ion-label>
      <ion-select [(ngModel)] = "regData.category" name = "category" type="text" placeholder = "Your Category">
        <ion-select-option value="1" selected>Maid</ion-select-option>
        <ion-select-option value="2" selected>Customer</ion-select-option>
      </ion-select>
    </ion-item>
    <button ion-button block type = "submit">
      SignUp
    </button>
  </form>
</ion-content>

Posts: 1

Participants: 1

Read full topic

Ionic 4 & Angular 8

$
0
0

@blondie63 wrote:

Is @ionic/angular 4.6.0 ready for Angular 8 ?
I’ve tried to upgrade my app but i’ve these warnings:

npm WARN @ionic/angular@4.6.0 requires a peer of @angular-devkit/core@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular-devkit/schematics@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/core@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/common@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/forms@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/router@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/compiler@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/compiler-cli@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/platform-browser@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/platform-browser-dynamic@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of zone.js@^0.8.26 but none is installed. You must install peer dependencies yourself.

I’ve to wait a new @ionic/angular version ?

Posts: 4

Participants: 2

Read full topic


Side menu is showing up in every page after the device width is greater than 990px

$
0
0

@premktr wrote:

I am using ionic4/angular4. I have created a side drawer menu .so all the menu HTML is in app.component.html and I accessing it in only one page but don’t know why the menu is showing in every page when device width is greater than 990px
app.component.html

<ion-app>
  <ion-split-pane>
    <ion-menu side="end" size=small>
      <ion-header>
        <ion-toolbar color=primary>
          <ion-title style="font-size:15px;font-family:  DINPro-Bold;color:#FFBF00">
            Menu
          </ion-title>
        </ion-toolbar>
      </ion-header>
      <ion-content>
        <ion-list style="font-size:5px">
          <ion-menu-toggle auto-hide="false">
            <ion-item lines="none" routerLink="/profileedit">
              <ion-img src="../../assets/main_profile/edit.svg" slot="start"></ion-img>
              <ion-label style="font-family:  DINPro-Bold;font-size:12px">Edit Account</ion-label>
            </ion-item>
          </ion-menu-toggle>
          <ion-menu-toggle auto-hide="false">
            <ion-item lines="none" routerLink="/profile">
              <ion-img src="../../assets/main_profile/tnc.svg" slot="start"></ion-img>
              <ion-label style="font-family:  DINPro-Bold;font-size:12px">T&C</ion-label>
            </ion-item>
          </ion-menu-toggle>
          <ion-menu-toggle auto-hide="false">
            <ion-item lines="none" routerLink="/privacy">
              <ion-img src="../../assets/main_profile/policy.svg" slot="start"></ion-img>
              <ion-label style="font-family:  DINPro-Bold;font-size:12px">Privacy Policy</ion-label>
            </ion-item>
          </ion-menu-toggle>
        </ion-list>
      </ion-content>
    </ion-menu>
   <ion-router-outlet main></ion-router-outlet>
  </ion-split-pane>
</ion-app>

menu.page.html

        <ion-menu-button class="ion-float-right"></ion-menu-button>

output is like until for IPAD device after that the device width is greater than iPad the output like this

Posts: 1

Participants: 1

Read full topic

Ionic 3 para Ionic 4

$
0
0

@IgorA wrote:

Boa tarde galera, gostaria de saber se realmente vale a pena migrar do Ionic 3 para o Ionic 4?

Posts: 1

Participants: 1

Read full topic

IONIC 4 Android Pie cant access internet?

Video thubnail

Ionic VS Code debugging issue: Unable to communicate with target

$
0
0

@alecsam wrote:

I can no longer debug the Ionic application in Visual Code because of this error: “Unable to communicate with target”. This issue only occurs on iOS device. Android works fine.

Web Inspector from Safari’s Advance settings on device is enabled. I’ve also tried to reinstall ios-webkit-debug-proxy and ideviceinstaller and usbmuxd.

brew uninstall ios-webkit-debug-proxy
brew uninstall ideviceinstaller
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew install ios-webkit-debug-proxy

launch.json configuration is:

{
  "name": "Attach to running iOS on device",
  "type": "cordova",
  "request": "attach",
  "platform": "ios",
  "target": "device",
  "port": 9222,
  "sourceMaps": true,
  "cwd": "${workspaceRoot}",
  "attachAttempts": 5,
  "attachDelay": 5000
}

ionic info

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

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : ios 4.5.5
   Cordova Plugins   : cordova-plugin-ionic-webview 1.2.1, (and 22 other plugins)

Utility:

   cordova-res : 0.3.0 (update available: 0.5.1)
   native-run  : 0.2.5 (update available: 0.2.7)

System:

   ios-deploy : 1.9.4
   NodeJS     : v10.15.0 (/usr/local/bin/node)
   npm        : 6.9.0
   OS         : macOS High Sierra
   Xcode      : Xcode 10.1 Build version 10B61

I run ios-webkit-debug-proxy manually in terminal:

Listing devices on :9221
Connected :9222 to Test (b78b701f3f1cca9a1177271de27916f4fc53c00a)

And then I start debug process. The error is:

Attaching to ios
Configuring debugging proxy
Unable to communicate with target

Posts: 1

Participants: 1

Read full topic

Viewing all 49348 articles
Browse latest View live


Latest Images

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