Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230102

"XXX" plugin is not implemented on android - with any plugin

$
0
0

I’ve created a basic application with ionic start.
Used the tab template.
Added the few basic configuration needed to work with

the package looks like this

{
  "name": "ionic7",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test",
    "lint": "ng lint"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^19.0.0",
    "@angular/common": "^19.0.0",
    "@angular/compiler": "^19.0.0",
    "@angular/core": "^19.0.0",
    "@angular/forms": "^19.0.0",
    "@angular/platform-browser": "^19.0.0",
    "@angular/platform-browser-dynamic": "^19.0.0",
    "@angular/router": "^19.0.0",
    "@capacitor/android": "^7.0.1",
    "@capacitor/app": "7.0.0",
    "@capacitor/core": "7.0.1",
    "@capacitor/haptics": "7.0.0",
    "@capacitor/keyboard": "7.0.0",
    "@capacitor/network": "^7.0.0",
    "@capacitor/status-bar": "7.0.0",
    "@ionic/angular": "^8.0.0",
    "ionicons": "^7.0.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.15.0"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^19.0.0",
    "@angular-eslint/builder": "^19.0.0",
    "@angular-eslint/eslint-plugin": "^19.0.0",
    "@angular-eslint/eslint-plugin-template": "^19.0.0",
    "@angular-eslint/schematics": "^19.0.0",
    "@angular-eslint/template-parser": "^19.0.0",
    "@angular/cli": "^19.0.0",
    "@angular/compiler-cli": "^19.0.0",
    "@angular/language-service": "^19.0.0",
    "@capacitor/cli": "7.0.1",
    "@ionic/angular-toolkit": "^12.0.0",
    "@types/jasmine": "~5.1.0",
    "@typescript-eslint/eslint-plugin": "^8.18.0",
    "@typescript-eslint/parser": "^8.18.0",
    "eslint": "^9.16.0",
    "eslint-plugin-import": "^2.29.1",
    "eslint-plugin-jsdoc": "^48.2.1",
    "eslint-plugin-prefer-arrow": "1.2.2",
    "jasmine-core": "~5.1.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.2.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.1.0",
    "typescript": "~5.6.3"
  },
  "description": "An Ionic project"
}

in the tab page I’ve added the following


import { App } from '@capacitor/app';
import { Network } from '@capacitor/network';
....
....
export class Tab1Page implements OnInit {

  constructor() {  }
  ngOnInit(): void {
    Network.getStatus().then((n)=>{console.log('network status', n)}).catch(e =>{console.log(e);});
    App.getInfo().then((n)=>{console.log('appinfo', n)}).catch(e =>{console.log(e);});
  }

}

Then I run

ionic build;
npx cap sync;
npx cap copy android;
npx cap open android;

I build the app to run on the phone… but with any

2025-03-04 18:32:43.376 16610-16610 Capacitor/Console       io.ionic.starter                     I  File: https://localhost/2263.a968dfa38a40479f.js - Line 1 - Msg: Error: "Network" plugin is not implemented on android
2025-03-04 18:32:43.377 16610-16610 Capacitor/Console       io.ionic.starter                     I  File: https://localhost/2263.a968dfa38a40479f.js - Line 1 - Msg: Error: "App" plugin is not implemented on android

I tried to clean and build and to invalidate cahces.
But this is a sample app started… and its not working, what am I missing?

Thanks anyone


Viewing all articles
Browse latest Browse all 230102

Trending Articles



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