I started to write an app that need to listen for udp packet sent from other devices. I’ve found this plugin: https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-udp that I’ve installed with ionic plugin add.
My demo app simply call chrome.sockets.udp.create(foobar) but when I try to lunch it, I always got that chrome isn’t defined.
What’s wrong? Any help?
Thanks…
Ok, seems I’ve resolved. Simply need to wait for deviceready before use udp plugin… read the manual luke
Hello fabioferrero,
I m trying to use UDP plugin, but donno where to start. Could you please share some code?
Thanks in advance.
BR,
Saurabh
I’ve post some demo code for the community
Is this example suitable for ionic2? I do not know how to make it work with ionic2. I’m happy for any hint.
No, the example is for Ionic v1.