- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to add the udp plugin that is in https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-udp, I made all the steps showed in the documentation but It's still not working. The main problem is a message that said: chrome is not defined, and it's showed because I use the code of the sendBroadcast function that I taked form the test.js that comes in the same project. Also I add the dependency of the common plugin but it doesn't help.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How did you add the plugin to your XDK project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tryied both of the options, in the "Get plugin from the web" I put "cordova-plugin-chrome-apps-sockets-udp" in the Plugin ID and https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-sockets-udp.git in the Repo URL, and in the "Import Local Plugin" option I put the same Plugin ID and I downloaded and descompressed the package in the www folder of the project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you know the plugin wasn't installed correctly? What does the build log say when you attempt to build it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Because when I tried to use this code line: "chrome.sockets.udp.create(function(createInfo){......}" the log said: [INFO:CONSOLE(18)] "Uncaught ReferenceError: chrome is not defined" and it supposed that the chrome was defined in the plugin, however, I don't know any other way to check if the plugin was installed correctly or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How are you testing this feature? Are you using the emulator or an actual build?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both of them. First, I run the app in the emulator and later I tried to install a build in my smartphone to see the log's with the Android SDK using these commands: "adb logcat' and "adb logcat | grep -i chrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to do an Android build using this plugin, but the build fails (something about dependences). Any chance you could provide a simple project that builds that contains this plugin?
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is what I see when I try to build UDP for Android:
- Building a Cordova 4.1.2 application.
- The application name is "UDP"
- The package name is "xdk.intel.blank.ad.template"
- Error: Plugin "" failed to install.
- Error: Could not retrieve plugin dependencies for UDP'.
- Error: Plugin UDP failed to install.
- Plugin "org.apache.cordova.device" (0.2.13) installed.
- Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
Are you able to build that project for Android?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page