Ionic, cordova & upd


#1

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…


#2

Ok, seems I’ve resolved. Simply need to wait for deviceready before use udp plugin… read the manual luke :smile:


#3

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


#4

I’ve post some demo code for the community :smile:


#5

Is this example suitable for ionic2? I do not know how to make it work with ionic2. I’m happy for any hint.


#6

No, the example is for Ionic v1.