I am developing a cordova based android application using java script, I have used basic MQTT Javascript library for publish and subscribe. Is there any way I can use IBMIotF node.js library to build my cordova based andoroid application or a simple web app.
Answer by Paul Slater (1650) | Jul 26, 2016 at 05:48 PM
You can't use IBM IoTF node js library to "build" your cordova application. You can, of course, include it in your application, along with the dependencies, as you would any other source files you include with your cordova application. The data obtained from cordova can then be published in IoTP using the library.
Answer by somnath657 (1) | Sep 14, 2016 at 08:21 AM
Hi. I'm on a Cordova project. I'm using Ionic framework 2 (Typescript) on the front-end to build the apps. What I can't understand is how should I use the IBM IOTF library (for NodeJS) to connect the app to the IBM IOT. FYI, the app is successfully connected to Bluemix service using (cordova ibm-mfp-core plugin).
Shall I use it as a seperate NodeJS file to be used from the backend (not in the build process)?
Shall I use it as browserified bundled JS in the build process ? I have tried to load both bundled version of app code (produced by Ionic) and IBM IOTF library. But in this way the app stops working. I'm wondering if its possible to use multiple bundled file inside a single application.
@somnath657, please post this as a new question, rather than a response to an existing question. That way it will get more visibility and a faster answer.