Push notification on android: IBM MQTT - android

I am very new to android environment and have to set up client side using the (wmqtt.jar) sample application given on http://www-01.ibm.com/support/docview.wss?
I know only about hello world program.
Kindly tell how can I integrate it in my simple android application, step by step.
Thanks and Regards.

There is a good example and run through at http://dalelane.co.uk/blog/?p=1599
I'd also point out that you might be better off with the recently released open source Java client. You can find it at http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/ - you should find the licence is much friendlier than for wmqtt.jar.

As Roger says, the best / latest Java client code is that available from the Eclipse Paho project - http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/
The IA92 code and wmqtt.jar has a difficult license and does not support some of the latest features like authentication.
In addition, you will find a lot of useful links and information on the mqtt.org wiki http://mqtt.org/wiki/doku.php/mqtt_on_the_android_platform

Very good sample code available at http://mosquitto.org/files/examples/android-mqtt-example.zip. Once you understand how it works, you would be able to move to writing your own code.

Related

How should I do to implement webrtc for native mobile

Now I just looking for any native library that helps me to implement webrtc with native mobile codes (Android Java, iOS Swift)
As I saw that libjingle have no updates around a year I does not sure that I still should use it, I don't want to use webrtc with third-party api such as Pubnub.
How about you guys suggestion or libjingle is good enough ?
Sample are available in the official documentation. Refer https://webrtc.github.io/samples/
libjingle has been "dead" since 2012, all relevant code moved over to https://webrtc.org which, unlike libjingle, has reasonably good instructions for checking out and building on mobile at https://webrtc.org/native-code/
Now the recommended way is to add the official library as dependency to your project.
implementation 'org.webrtc:google-webrtc:1.0.+'
You may refer the AppRTCMobile sample project which can be build by following the instructions given here - https://webrtc.org/native-code/android/
There are sample projects on GitHub which have already done the hard work for you. I found this one to be updated for Oreo.

Howto integrate static code analysis (SonarCube) into ship.io for mobile projects?

We have a setup where we want to use https://ship.io/ as our cloud-based continuous-integration server.
However we also want to have some kind of static code analysis (preferably SonarCube but that is debatable), which isn't supported officially by ship.io.
The Projects are classic mobile Projects (Android and iOS).
I have seen some posts of people mentioning that they managed to setup this kind of configuration. SonarCube just has released a gradle plugin http://www.sonarsource.com/2015/06/15/sonarqube-gradle-1-0-released/ so the Android part should be doable.
However at the moment i have no idea what would be the best way do do this for the iOS part of the project.
We already contacted the ship.io team on this issue but did not recieve a response yet.
Any suggestions/insights on this?
My name is Tim Rosenblatt and I'm one of the senior engineers here at Ship.io. I'm not sure why you didn't get a reply from our support email, and I'm glad you posted about this here.
As Viktor mentioned, we definitely support custom scripts. You absolutely can run whatever you like during your build process with this type of step.
I've got a few links that should be helpful for you in getting SonarCube added to your Ship job, but you can definitely get in touch with us if anything isn't clear enough for you. You can use the in-app support icon at the bottom right of your dashboard, or just email me personally -- tim at ship dot io
http://support.ship.io/environment/install-software
http://support.ship.io/environment/custom-shell-scripts
Thanks!
You should be able to write a script (bash, ruby, ...) which runs your static code analysis and then call that script on your own Mac or on any CI which supports running custom scripts. AFAIK ship.io does support this, our service (https://bitrise.io/ - CTO here) certainly does.

Building an App Using WebRTC AppRtc Demo

I have android WebRTC Android demo app code running with https://apprtc.appspot.com/ server.
But what i want to archive is, I want to replace the server https://apprtc.appspot.com/ with my own server, i want to also modify/remove the part of the code where it communicants with the server as my server communicates differently.
I want to keep the WebRTC related API calls as it is, and only replace the part of the source code which is communicating with the https://apprtc.appspot.com/ server.
So basically i want to know, what are the WebRTC APIs that i must call for allowing AV calls using my server, I have STUN/TURN and registration servers.
I just want to reuse the core WebRTC functionality only and write app on top of it.
Can someone please guide me on this!
Thanks in advance.
you can achive android webrtc app by two ways.. both are working perfectly..
1.
Follow this example, i have tried it and work success fully.
Only need to make one change is the link provided in this example for gclient config command is older one. Follow your link gclient config http://webrtc.googlecode.com/svn/trunk
Also make sure that you have oracle jdk-6, other version creates issues while following the steps to get the native code.
2 .
You can use Frozen mountain library, which provides you variety of apis for developing webrtc app..
Hope this will help you..
check here
I have also created 1 demo project where I set my turn and stun server. There is a site http://sipml5.org which provide good detailing example.
You can download their code and set your own configuration or you can take reference in your application. Created demo project link is http://telzy.webuildapps.co, reference taken from http://sipml5.org/call.htm .
Hope this will help you.

How to integrate Push sharp for Android GCM (Pushnotification)?

I am referring this link to implement push sharp in android,
https://github.com/Redth/PushSharp#monotouch-and-mono-for-android-client-application-integration
But given code is in .cs,
So please suggest how to use this library in android,share any kind of documentation regarding this.
Thanks in advance.
Well, the link you supplied suggests that this library works with MonoTouch and Mono for Android. I'm not familiar with those, but you don't have to use them for your client side (even if you use PushSharp in your server).
You can simply use the code samples in the GCM developer guide (which are all in Java).

cocos2d-android documentation

I am developing android game using opensource cocos2d-android-1 library available here . I also developed demo application using this tutorial.
Now I want to do further development but I am not getting any documentation for this library and how to use library. If anybody knows any blog, forum, documentation for this library project please suggest me.
I recommend you use cocos2d-x instead. It is also a port of cocos2d-iphone but with more platforms, a better documentation and a wider community than cocos2d-android (but still not as good as cocos2d-iphone).
It's probably a bit more painful to start because you need to understand how to run native code on android but you probably won't regret it when you decide to port your game on another platform.
many example is available on the github for cocos2d-android and documentation is not in large scale but you can handle most of the things from the test sample which is available in the cocos2d-andriod . if you getting any problem ..post here to get the answer or help..

Categories

Resources