Using MQTT for Blackberry/J2ME - blackberry

I recently had a look at an excellent blog for using MQTT over Android. I am new to MQTT, and for understanding the concepts, I want to use MQTT services on Blackberry. Is there a good explanation of how MQTT works... a J2ME/ blackberry implementation will be easy to understand for me.
Thanks !

There's a brief description of some of the concepts behind mqtt at http://mosquitto.org/man/mqtt-7.html
The presentation at http://www.slideshare.net/andysc/the-house-that-twitters also contains explanations from more of an applications viewpoint.
As for J2ME - the IBM ia92 package linked from http://mqtt.org/software contains a J2ME component with API docs and example, but not the implementation code.
Lastly, the MQTT spec is linked to on http://mqtt.org/documentation so you can always look there for more details.

IBM released Cordova MQTT plugin and source for Android via developerworks that wraps the Eclipse Paho mqtt java client (also IBM contributed). If you're creating mobile apps then doing HTML5/javascript hybrid apps in Cordova (f.k.a. PhoneGap) with an MQTT plugin is a good to go. On Android (i.e. BB playbook) there is this one. For other platforms, using Eclipse Paho to create a plugin for Cordova on BB shouldn't be hard. For example I have Cordova/Worklight apps with MQTT plugin using the Eclipse Paho C client on my iPhone.
here is the MQTT plugin for Android:
https://www.ibm.com/developerworks/mydeveloperworks/blogs/messaging/entry/using_mq_telemetry_transport_protocol_in_ibm_worklight_mobile_applications1
MQTT is compelling for mobile apps. Benchmarking done on Android showed that MQTT has 93x higher throughput, 1/10th batter use per message sent and uses 1/8th the bandwidth vs HTTPS. This is probably why Facebook Messenger uses MQTT. http://stephendnicholas.com/archives/1217
btw, If you do develop HTML5/javascript hybrid mobile apps with Cordova, IBM Worklight has a cross-platform WYSIWYG mobile developer IDE, strong security, unified push notification engine, online/offline support, etc. And Cordova is built-in.

Related

Programmable Chat - Xamarin Forms Chat App for Windows (UWP) and Mac in future

We are building a chat client in Xamarin Forms (.NET, PCL) for Windows 10 (UWP), Android, iOS and for Mac in future.
We are evaluating Twilio Programmable Chat as a platform to built on.
Is there a .NET SDK (PCL or non-PCL) that we can use to build the client?
Or can we built one of our own using a .NET socket library of our own?
There's no .NET SDK currently available, however Xamarin SDK is planned (no exact date, we'll try to get it going ASAP). You can always use generated wrappers to access the REST API from your application or write your own. The API documentation on the site should be sufficient to get you going, but if you have any specific questions - feel free to ask on SO or from Twilio Support.
Hope this helps.

Twilio on cross platform mobile tools (Ionic, React-Native)

I'm looking to build with Twilio's IP Messaging APIs using a cross mobile framework like React Native or Ionic. My question is - is this a sane request? I see that Twilio has a Javascript library that I plan to use. Examples of successes/failures would also help.
My overall goal is to build in simple chat rooms cross platform.
If anyone else found their way here from a Google search, I recently released the code I developed to implement IP Messaging on React Native for my org. You can check it out at on GitHub: react-native-twilio-ip-messaging. It currently supports iOS with Android still in beta.
The current solution is to implement a native module for Twilio Messaging. Check Twilio's IPM docs for their iOS quickstart. There are too many libraries that the Twilio Node SDK uses that conflict with Apple's JavaScriptCore runtime.
Your native module would communicate with the React Native app through the RN bridge. At a high level you'd have to implement sendMessage/joinChannel from RN -> iOS and receivedMessage/Channel from iOS -> RN.
One example (that I've communicated to the Twilio team) is that their JS SDKs break when npm-V8 centric deps like crypto can't be ported. I'm guessing there are several other basic libraries that are commonplace in Node that don't get ported over by React Native's build system.
You can track related React Native issues here:
(Symptom - node modules are missing): https://github.com/facebook/react-native/issues/4968

Cordova Plugin for MQTT for ios?

Is there a Cordova Plugin for MQTT for ios I did in Android. I search a lot for ios, but I couldn't get any good solution in detail. Please help..
Use this for MQTT ios plugin
Click here for Cordova MQTT Plugin
See this link : https://github.com/arcoirislabs/cordova-plugin-mqtt
cordova-plugin-mqtt is plugin for building MQTT client for multiple platforms in Apache Cordova. Currently Android platform is present and next support is planned for iOS & Windows Phone.

How to prepare old Blackberry app for BlackBerry 10?

We have a couple of Blackberry apps and are now trying to prepare them for BB 10. These apps are made in Java via Eclipse and/or RIM IDE tool. However, when I went to https://developer.blackberry.com/platforms/bb10, I saw that there is no even a mention of Java SDK. Take a look at image below.
So how am I supposed to update Blackberry app to BB 10? Any ideas?
You have to decide what to do with your applications. If you have an Android version, one option is to repackage the APK to a BAR using the provided tool set so that it will run under the Android player. There are many good Android applications that provide an acceptable or even good user experience this way. Another option is to port your BlackBerry Java application to Android (if there is no existing Android version) then package the Android version for the player. This would also allow you to market the application to Android users. The final option is to port the BlackBerry Java applications to the Native SDK, Cascades, HTML5 or Adobe Air.
The best way forward depends on how tightly integrated into the BB10 system you want to be. While there are facilities provided in BB10 that are the equivalents to those is BlackBerry OS, there have been significant changes required to enable the improvements everyone wants to see on the new platform. If you see BB10 as a significant part of your future business then porting to Cascades would be very worth while.

VOIP SDK that support voice encryption

We need to develop an application that will allow users to communicate through an encrypted channel (ZRTP support will be great). This application should run on Android or Windows mobile. Is there any SDK with voice encryption built-in support? In there is no such SDK for mobile platforms then may be one exists for desktop Windows?
If you're looking to quickly get up and running on multiple platforms, then I would highly recommend the packages from the folks at 'antisip' (www.antisip.com).
They might not have support for ZRTP, but I know they support at least SRTP (which is an encryption protocol for RTP), and are pretty current, both in terms of SIP protocol support and platforms implemented.
The last company I worked at has successfully implemented VOIP clients on windows, mac, linux, Playstation 3, Android and iPhone with this technology.
Their licensing terms are also very reasonable (distinct all you can eat 'site licenses' per platform, yearly support contracts).

Resources