Is there any plugin available for Blutooth POS printing in ionic 4. I have searched a lot.. but didnt get any proper working solution. Normal printing is working with https://ionicframework.com/docs/native/printer. But blutooth devices are not showing.Any other method to do this ?
Try BluetoothSerial
ionic cordova plugin add cordova-plugin-bluetooth-serial
npm install #ionic-native/bluetooth-serial
for detailed info
https://levelup.gitconnected.com/how-to-print-on-a-bluetooth-printer-using-your-ionic-application-ceabc45abf75
You can try using DatecsPrinter, it's a good plugin. It works for printing text, barcode and images.
Related
I am trying to use the “Device” plugin in ionic 4 (4.10.2) with the same commands indicated in the ionic page and when trying to run the app I get the following error.
Ionic Error
PS: I’m trying to make a console.log of the device version.
console.log(this.device.uuid);
Ionic doc: https://ionicframework.com/docs/native/device#usage
Any solution?
Thank you
I made an ionic application. Still works perfectly in iOS-9 and iOS-10.
Today, i update iOS-10 to iOS-11 and i also update xcode-8 to xcode-9.
There is a strange issue in iOS-11. See below image for the issue.
When, i was build the app in xcode8 and ios10, the header/stautsbar was not appears.
But, when i update xcode8 to xcode9 and ios10 to ios11 then this issue occurs.
Please tell me, how should i hide it or make it transparent.
Thanks in advance
finally i found a solution.
i installed plugin
cordova plugin add cordova-plugin-disable-ios11-statusbar --save
Then build and run the app the issue will be solved
Add this to your viewport meta tag viewport-fit=cover
check the blog (iOS 11 Checklist)
ionic cordova plugin rm cordova-plugin-statusbar
ionic cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git
I'm developing an ionic v2 app but even working on ionic lab it gets a complete white screen on the ionic view. If I do the same withe the ionic v1 it works.
ionic start sample --v2
cd sample
ionic lab
ionic upload
It shows white but
ionic start sample
cd sample
ionic lab
ionic upload
It works perfectly. No changes on the code at all
Thanks
ionic 2 needs at least 4.4 android to work, lost a lot of time on this and there is nothing on the ionic website informing about that. Writing down here to help anyone in the future.
Ionic v2 supports android 4.4 and up. The older browser on pre-4.4 devices do not have the features needed for ionic2 and angular 2 to work. Though this can be fixed with crosswalk.
The supported platforms are list here:
http://ionicframework.com/docs/overview/#browser-support
You can go back to 4.1 with crosswalk it states.
ionic 2 needs at least 4.4 android to work,.. for more info debug app in chrome.
from ionic 2 Ionic officially stops to use ionic lab.
You can run and test your app in browser using command "ionic serve".
Ionic2 app was initially created with --v2 flag but now they removed it . So nothing happens with --v2
Better way to solve the code 1st time by running directly into android devices by
Ionic cordova run android or
Ionic run android
Then connect your device with your system and open chrome and enter chrome://inspect to the url
Now you can console log the the error and can find the way of solutions.
Now try to run by ionic view
Remove the platform and then add it again.
please try eionic start sample --type=ionic-angular
I currently have an ionic 1 project, but have just switched to using ionic cli2. I previously used to add crosswalk into my project, by running the following command, as mentioned here.
ionic browser add crosswalk
However, ionic cli2 no longer supports the browser command, and I am unsure how to install it in the correct way.
Any help would be appreciated.
It seems the answer is as follows:
I need to run
ionic plugin add cordova-plugin-crosswalk-webview
I'm trying to test pushwoosh with this application
https://github.com/alvaroziqar/ionic-pushwoosh
I did ionic add platofrm android
Then ionic build
But the notification isn't working. Pushwoosh panel shows 0 android devices. Please help.
Make sure you follow the guide correctly:
http://docs.pushwoosh.com/docs/cordova-phonegap
Please note that for ionic you add pushwoosh plugins as:
ionic plugin add pushwoosh-cordova-plugin
Also you can try Pushwoosh Ionic sample here:
https://github.com/Pushwoosh/pushwoosh-phonegap-cordova-sample/tree/master/Ionic