Skip to content

Ionic Capacitor - Android - cordova-plugin-printer  #4448

@Seth-Know

Description

@Seth-Know

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use the discussions section https://github.com/danielsogl/awesome-cordova-plugins/discussions

Current behavior:
Testing on a physical android device. Appears the plugin needs dependencies. I simply create a brand-new app and add this one plugin to produce the error. I have tried to add library dependencies, however once I run "ionic capacitor run android" any changes are reverted back.

Expected behavior:
Mobile application would start. Printer plugin should work as descried: https://www.npmjs.com/package/cordova-plugin-printer

Steps to reproduce:

ionic start newapp
npm install @awesome-cordova-plugins/core --save
npm install cordova-plugin-printer 
npm install @awesome-cordova-plugins/printer 
ionic cap sync
ionic capacitor run android

Related code:

insert any relevant code here

Other information:
Gradle 7.4.2

Cordova-Plugin-Printer v0.8.0

Appears that this plugin is quite old and has not been updated in a while. If there are any alternatives, I am open to suggestions.

Using Windows 10
Visual Studio Code
Android Studio
Samsung Galaxy A50

I've never submitted issues before on github, so please, if I made a mistake here just let me know and I will do my best to correct it.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI                     : 6.20.4
   Ionic Framework               : @ionic/angular 6.3.9
   @angular-devkit/build-angular : 15.0.2
   @angular-devkit/schematics    : 15.0.2
   @angular/cli                  : 15.0.2
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 4.6.0
   @capacitor/android : 4.6.0
   @capacitor/core    : 4.6.0
   @capacitor/ios     : not installed

Utility:
   cordova-res : 0.15.4
   native-run  : 1.7.1

System:

   NodeJS : v16.18.0 (C:\Program Files\nodejs\node.exe)
   npm    : 8.19.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions