Autobahn- WAMPV2 support for Android

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

Hi!

We have started looking into this and I hope to something soon. I can’t give an exact date, though you can track this issue https://github.com/crossbario/autobahn-java/issues/146 for updates.

Thanks!

···

On Friday, September 1, 2017 at 2:46:48 PM UTC+5, ssax...@gmail.com wrote:

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

Hi Omer, I noticed that you have merged https://github.com/crossbario/autobahn-java/issues/146 to master recently. Is it now ready for WAMP_V2 integration in Android?

I was trying to connect the client using the code example given there but the demonstrateSubscribe and demonstratePublish callback were never invoked. I am using following code to establish the connection-


Session session = new Session();
// Add all onJoin listeners

session.addOnJoinListener(this::demonstrateSubscribe);
session.addOnJoinListener(this::demonstratePublish);

// Now create a transport list to try and add transports to it.
// In our case, we currnetly only have Netty based WAMP-over-WebSocket.
List<ITransport> transports = new ArrayList<>();
transports.add(new NettyTransport("wss://xxxxxx/wss2/"));

// Now provide a list of authentication methods.
// We only support anonymous auth currently.
List<IAuthenticator> authenticators = new ArrayList<>();
authenticators.add(new AnonymousAuth());

// finally, provide everything to a Client instance and connect
Client client = new Client(transports);
client.add(session, "streamName", authenticators);
client.connect();

Please let me know if I am missing something.


<details class='elided'>
<summary title='Show trimmed content'>&#183;&#183;&#183;</summary>

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:
> Hi there,
> 

> I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

</details>

Yes, android support did land, though we haven’t yet done an official release.

Kindly take a look at this detailed example https://github.com/crossbario/autobahn-java/blob/master/demo-gallery/src/main/java/io/crossbar/autobahn/demogallery/ExampleClient.java

do note that on Android you should be using AndroidWebSocket as transport instead of NettyTransport.

···

On Friday, September 15, 2017 at 8:30:47 PM UTC+5, ssax...@gmail.com wrote:

Hi Omer, I noticed that you have merged https://github.com/crossbario/autobahn-java/issues/146 to master recently. Is it now ready for WAMP_V2 integration in Android?

I was trying to connect the client using the code example given there but the demonstrateSubscribe and demonstratePublish callback were never invoked. I am using following code to establish the connection-



Session session = new Session();
// Add all onJoin listeners

session.addOnJoinListener(this::demonstrateSubscribe);
session.addOnJoinListener(this::demonstratePublish);

// Now create a transport list to try and add transports to it.
// In our case, we currnetly only have Netty based WAMP-over-WebSocket.
List<ITransport> transports = new ArrayList<>();
transports.add(new NettyTransport("wss://xxxxxx/wss2/"));

// Now provide a list of authentication methods.
// We only support anonymous auth currently.
List<IAuthenticator> authenticators = new ArrayList<>();
authenticators.add(new AnonymousAuth());

// finally, provide everything to a Client instance and connect
Client client = new Client(transports);
client.add(session, "streamName", authenticators);
client.connect();

Please let me know if I am missing something.


On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:
> Hi there,
> 

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

Thanks for the quick response Omer. I will try your suggestions.

One more question, as the WAMP layer is using Java 8 features for WAMP actions and in Android java 8 is supported on API 24 (Nougat) and above. It is only around 10% of the current market share. So are guys planning to make it compatible with older Android versions?

···

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

Re: older Androids, we do plan to provide some kind of support using streamsupport library but thats going to be a while.

···

On Sep 15, 2017 9:27 PM, ssaxe...@gmail.com wrote:

Thanks for the quick response Omer. I will try your suggestions.

One more question, as the WAMP layer is using Java 8 features for WAMP actions and in Android java 8 is supported on API 24 (Nougat) and above. It is only around 10% of the current market share. So are guys planning to make it compatible with older Android versions?

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

You received this message because you are subscribed to the Google Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+unsubscribe@googlegroups.com.

To post to this group, send email to autob...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/09da04d9-0f33-4d75-8fe3-891edfd5a329%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Omer I am unable to find the ‘AndroidWebSocket’ class in the jar file created using make and docker as explained by you here: https://groups.google.com/forum/#!topic/autobahnws/zWHqe-P93KQ. Please assist me.

···

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

You don’t need to use the jar file directly. Just add below line to your build.gradle

compile ‘io.crossbar.autobahn:autobahn-android:17.10.4’

``

···

On Wednesday, September 20, 2017 at 12:04:57 PM UTC+5, ssax...@gmail.com wrote:

Omer I am unable to find the ‘AndroidWebSocket’ class in the jar file created using make and docker as explained by you here: https://groups.google.com/forum/#!topic/autobahnws/zWHqe-P93KQ. Please assist me.

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssax...@gmail.com wrote:

Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?