I’m writing an Ionic app that interfaces with a GPS device (via Wifi) and needs to communicate with the device using TCP. All the searching I have done has pointed me towards this repo: https://github.com/KoenLav/cordova-plugin-chrome-apps-sockets-tcp
Unfortunately, using Ionic 3, I am not able to get the plugin to show up on the window object. Example:
// chrome is undefined (window).chrome.tcp.socket.create();
I’ve tried declaring window.chrome in the app.module, but the plugin code is never added to window.chrome object.