- This topic has 4 replies, 3 voices, and was last updated 11 years, 4 months ago by renato.guiglia.
-
AuthorPosts
-
renato.guigliaParticipantI will implements this architecture: native app implemented with phone sdk (ios sdk or android sdk) that manage low level function (nfc, ecc) that open a communication port, then implement a native app with mobione for the frontend that communicate with the other low level app.
From Mobione is it possible to communicate using WebSocket or send a raw message on a standard socket?
The alternative that i think is to implement a small httpserver inside the low level app and use ajax call from mobione.
support-michaelKeymaster>From Mobione is it possible to communicate using WebSocket or send a raw message on a standard socket?
Yes, you can use websockets in your app for the latest versions of ios and android. Alternatively you can use socket.io or similar lib. The MobiOne Test Center does not support the websocket api. The next version of MobiOne (2.5 a milestone will be available this week) will include an alternative to the Test Center which will support the latest HTML5 apis.
renato.guigliaParticipant@support-wayne wrote:
>From Mobione is it possible to communicate using WebSocket or send a raw message on a standard socket?
Yes, you can use websockets in your app for the latest versions of ios and android. Alternatively you can use socket.io or similar lib. The MobiOne Test Center does not support the websocket api. The next version of MobiOne (2.5 a milestone will be available this week) will include an alternative to the Test Center which will support the latest HTML5 apis.
I test it on devices, so it’s not a problem.
I ask this because i try to use websocket in android (4.4.2) and it doesn’t work, websocket are not supported.
I also found this page http://caniuse.com/websocketsDo you have an example of working websocket?
Thank you
support-octavioMemberHi renato,
We don’t have a websocket example but there are plenty that are just a google search away. You will need your own http server app to handle the i/o. Also as you indicate that web sockets may not be implemented on all of your target browsers. So use of a library such as socket.io should be considered.
renato.guigliaParticipant@support-octavio wrote:
Hi renato,
We don’t have a websocket example but there are plenty that are just a google search away. You will need your own http server app to handle the i/o. Also as you indicate that web sockets may not be implemented on all of your target browsers. So use of a library such as socket.io should be considered.
In the end, I choose this architecture:
*an app written with os SDK with a standard implementation of a webserver (there are some open project for android and apple) tha could make every low level operation.
*Mobione native app for the frontend that communicate with the other app using $.ajax calls. -
AuthorPosts