Voice call connection routing React-Native - react-native

I am trying to build an application which works this way: I as a user want to start a call with another user. The way I want the connection be made is by random. So it will connect to one of the many clients out there by random. Also when other clients try to make a call, it should connect to another random client and so on. I want those phone calls be made via application(such as WhatsApp) not as a phone call.
Now, the question is; is Twilio a good approach for this purpose?
If yes can you tell me which of their feature would fit my app the best?
Thanks for any suggestions!

Twilio developer evangelist here.
I can answer that Twilio would be a good approach for you to do this within your own application. I'd recommend using Twilio Video to build this as it allows cross platform communication via audio or video (in your case, you may not need the video, but this will give you the best audio quality).
As an example, my colleague Dominik built a video roulette application. It is the case that the interface was built in JavaScript for the web, but the idea would be the same for a native app. The code for the server side part of the application should give some insight into how to connect random pairings.
It's also possible to integrate Twilio Video with CallKit and Connection Services so that you can make outbound calls to other devices that ring like a real incoming call.

Related

How to setup connection between React Native app and Thingspeak (cloud service)?

I'm a beginner in react native and I'm working on a mobile app for school. Within it, I need to send and receive data (draw graphs) from the cloud. We use cloud services from Mathworks - Thingspeak. Would you please advise me on how to start this communication? Is it necessary to set this communication on every screen where graphs will be displayed or send data? Is it possible to use write & read API keys for this task?
Thank you for every answer
You can use REST API for communication,
For read: https://www.mathworks.com/help/thingspeak/readdata.html
For write: https://www.mathworks.com/help/thingspeak/writedata.html
There are example requests on both pages.
You don't need to install a separate package, you can do it with fetch
Let me know if you succeeded, or I can help again!

how to access UCWA API in android code?

I want to access UCWA API in android code. Is it possible?.
If possible, pls give me an idea and hello world program.
does UCWA API support for Video Chat and Screen Sharing?
Yes, UCWA is a REST based API, so there's no reason why you wouldn't be able to access it from an Android app. Your best bet is to look through the samples on http://ucwa.lync.com/
There are no known Java libraries available, so you have to do all of that on your own. Paul's link is a good place to start, however you might also find the MS pages on a C# implementation useful(1), they certainly are cleaner than the Javascript based samples at http://ucwa.lync.com/
As for supporting video chat and screen sharing, the answer for now seems to be no. UCWA may be able to initiate these on the users Lync client though.
(1) http://msdn.microsoft.com/en-us/library/office/dn551186%28v=office.15%29.aspx

Objective-C Async communication between IOS devices

Is there a way to perform async communication between iPhones/IOS devices? I have been researching and thought maybe APN might fill that void, but it sounds like I can't initiate an APN push from an IOS dvice to another, and even if I could I can't trigger the "event" on the other device with just an APN push from what I can identify.
Does anyone have any examples or general advice for IOS device interaction for devices that are not in GameKit (i.e. wifi/bluetooth) range that does not require an intermediate service (urban airship, dedicated server, etc) or will I need to have a 3rd party in order to trigger and/or sync these interactions between devices?
Sorry I don't have any code or details as this is still in the planning phases for me. Any pointers would be greatly appreciated.
The answer is : use a server side app and have all your devices talk to that server.
If you dont want or cannot host an app, you can use a cloud solution based on websocket like Pusher. You can then subscribe to events and post messages with data.
They have an iOS client library
http://pusher.com/docs/client_libraries
P.S: Also have a look at Parse and Stackmob , i remember that had this kind of feature was in their roadmap, but i don't know if it's available yet..
Hope this helps,
Vincent

Does WebRTC allow to create audio, video and text chat?

I want to create audio, video and text messagtes chat. Is it possible using WebRTC? Or it only allow audio and video chats?
One side of my app will be implemented using browser. An other one - using C++ native API.
Does anyone have examples in native C++ API and/or javascript?
The WebRTC specification is still very much in flux, but there's a DataChannel API in the spec that is implemented in an early form in both Firefox and Chrome. DataChannels are intended to allow you to send arbitrary bytes between peers, and the spec provides for both reliable (TCP-like) and unreliable (UDP-like) channels.
I am not sure if WebRTC allows for text chatting. I was able to successfully create an Android Application that performed all of this, but only with the combination of Google's Libjingle and WebRTC libraries. Within the Libjingle library there are several example programs/pieces of code that demonstrate the library's functionality. The call example in Libjingle sounds very similar to what you are wanting to do, and is what I built my Android application out of. The only thing is I have not yet ported it to an web browser, so I am not sure if Libjingle will work with that.
I have begun looking into it, and I have found some people on the WebRTC discussion group that have developed a very nice Multi-user video chat application for a web browser that is built using WebRTC. It is capable of video (along with voice) communications as well as text chatting. I do not know if this matters, but it all occurs within a single interface (meaning that it does not seem to allow for separated/singular form communications -- text only, voice only, video only). I am sure that it would not be too difficult to separate them all out if you wanted/needed. They have posted all of their code onto GitHub and seem to be actively updating and improving it.

VB.NET Use API Messenger

I know how you can use the api in vb.net IM
I wish simply by pressing a button sends a message to all my contacts.
I apologize for my ignorance but I'm still learning, thanks
You don't mention what IM network you're talking about so I'm assuming you're talking about Live Messenger. If that's not the case, only the bit about Pidgin might still be relevant.
Unfortunately, my understanding is that nowdays there's no easy API for doing what you want, and you might have to write your own client to do this, here's a website that discusses the protocol:
http://www.hypothetic.org/docs/msn/index.php
You might also want to look at Pidgin since it supports Messenger and is open source:
http://www.pidgin.im/download/source/
There's a Live Messenger API, but I don't think that can be used to send a message from a standalone VB.Net desktop client since it seems more for writing Addins to the standard Live Messenger client, but here's the information about it in case I'm wrong:
http://msdn.microsoft.com/en-us/library/aa905675.aspx
If you're running XP or earlier you might be able to use the Windows Messenger SDK:
http://msdn.microsoft.com/en-us/library/ms630961%28v=VS.85%29.aspx