Receive with the JS SDK

Solved!
Posted in Feature Requests by Quentin LOZACH Wed Jun 07 2017 13:10:05 GMT+0000 (UTC)·7·Viewed 181 times

Dear Chirp team, When I was browsing some examples of project done with Chirp, I watched the video about the Javascript Sketcher. Which is using I'm assume the Javascript SDK. URL of the video : https://vimeo.com/channels/chirp/192815720 I went into the documentation of the SDK, it seems that it's only possible to send data with it and not receive it. I was then wondering how did you manage to make two web applications talking together with only a one way communication possible ? Best regards, Q.
Dinu Chiriac
June 7, 2017

Hi Quentin,

We built a decoder for JS SDK as a proof of concept however it is not yet on our roadmap to build a production-ready version. We'll let you know when we'll have updates about that.

Thanks,

Dinu.

Quentin LOZACH
June 7, 2017

Hi Dinu,

Thanks for your answer.

That would be a really nice feature because it could be used between computers, but also for hybride mobile application based on Javascript which could use your Javascript SDK. For example on the project I'm building I'm the only technical person on board, which means when I'll have to code a mobile application I would go for the hybrid way to avoid to code it two times : for Android and for iOS. Which means that if one day you go into that direction for your SDK, that might help a lot of people.

There is an alternative library which works on Javascript : quiet.js, but it's not working that well on mobile. So that's also an opportunity to take !

Best regards,
Quentin.

Dinu Chiriac
June 7, 2017

Hi Quentin,

Thanks for your feedback, we will consider this for the feature but at the moment this is not a priority.

Best,
Dinu


Dinu Chiriac marked this as solved
Mike Smales
June 7, 2017

Hi Quentin,

It would be perfectly possible to use a Hybrid Mobile App technology such as Cordova with our Native Android and iOS SDKs - which would allow you to receive Chirps on a mobile device.

We've had other developers do this before by creating a plugin for Cordova that is a thin wrapper around our Android and iOS SDKs, that exposes their functionality to the Javascript.

Best regards,

Mike

Quentin LOZACH
June 7, 2017

Hi Mike,

Thanks for your answer !

So the goal is to create a Javascript plugin which will call either the iOS native code or the Android native code ?
This is a tutorial I think that will help me go through : https://cordova.apache.org/docs/en/latest/guide/cli/

Do you know if thoose other developers made it open-source or do you have any source of it ? If not I'll try to take care of it myself.

Goal is to be able to call Androind and iOS methods in Javascript right ?

Best regards,
Quentin.

Mike Smales
June 8, 2017

Hi Quentin,

Unfortunately we do not have an example to share with you.

The tutorial you have shared looks to be on the right lines. You're correct in that the goal is to be able to call Android and iOS methods in Javascript.

Best,

Mike

Quentin LOZACH
June 8, 2017

Hi Mike,

That's understandable and not a problem. I'll give it a try for sure.

I'll try to reach that goal with that method, I'm sure it's doable especially if other developers did it before.

If I manage to do so, would you be interested that I give you the sources ? My goal will be to create a basic Cordova app using all the functionalities offered by your SDK. If that can help someone else in the future, that can be good.

Best,
Quentin.

Markdown is allowed