-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic Capacitor - Android - cordova-plugin-printer #4448
Comments
After more research the android libraries need to be updated for my environment. I achieved this by running
However, digging a bit deeper I found a pull request here katzer/cordova-plugin-printer#260 that has the imports updated for AndroidX. Unfortunately, I am still struggling to use base64 with this plugin for an Android. I found another pull request here: katzer/cordova-plugin-printer#295 that adds support for pdf base64 that I can confirm works for Android. This pull request also uses the updated AndroidX libraries. For Ionic pdf base64 fix:
I do not want to close this issue as Ionic should be aware of the updated libraries and warn the users who were unexperienced like myself to be aware of this issue. At least add something here to this page: https://ionicframework.com/docs/native/printer |
There has been no recent activity and this issue has been marked inactive. |
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:
Related code:
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):The text was updated successfully, but these errors were encountered: