Ionic + Serial plugin

#1

Hi all!

At the moment working on my side-project where I need to listen to Serial port (RS232 protocol).
Try to use the Serial plugin from Ionic Native ( https://ionicframework.com/docs/native/serial/ ).
Looks like this plugin is out-dated because can’t make a successful build.
(these two answers: https://github.com/ionic-team/ionic/issues/13702#issuecomment-353901678 & https://github.com/ionic-team/ionic/issues/13702#issuecomment-353973791 )

Someone got something done with it lately?

Error in my case:
cp: copyFileSync: could not write to dest file (code=ENOENT): …\ionic\test-app\platforms\android\res\xml\config.xml

Parsing …\ionic\test-app\platforms\android\res\xml\config.xml failed
(node:15196) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open ‘…\ionic\test-app\platforms\android\res\xml\config.xml l’
(node:15196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Thanks,
Toms.

#2

Tried to downgrade Android version, run this command: ionic cordova platform add android@6.3.0
And now build was successful and an app was deployed to the device.
One of the solutions, but not the best one because not working on latest settings.

#3

Hello, any good news for that?

#4

Hey!

From my side no, I went with work-around which I described in my comment.