live text streaming in iphone application - iphone

I want to display live text in my app.And i want it live without breaking & continue with my app.
For Example,
If someone write "Hello" then i get "Hello" from server.Now suppose they type "Good Morning" then i get only "Good Morning" in response.Whatever is next type that only i want.
I want to call only one webservice and from that i want to get live data. What should be logic at iphone side for this.
I search a lot for text live streaming but i only get HLS.
I have read apple document but I don't understand how to use it.
Is there any other solution? or any other logic?

see this tutorial..
how-to-create-a-socket-based-iphone-app-and-server
Many iOS apps use HTTP to communicate to a web server, because it’s easy, convenient, and well-supported. In above tutorial you see the code and also Demo about it..
hope this help you..

Look into Web Sockets, they are very useful for this type of thing. Also, Pusher is a fairly easy to get started with web socket service.

Following link for "Tutorial: How To Build An iOS Chat App Using Cocoa Classes"
Like Chat application Source code and php code is available in below link
http://www.ibm.com/developerworks/library/x-ioschat/index.html

Related

Need Voip call like in Uber in Flutter

My app need a voip phone call to another person who is using this app and the phone number should not be the real phone number like in Uber. Can somebody please help, I searched in google and I could find nothing.
I was trying to add this feture in my crrunt project and find zegocloud they have good documentation on how to implement voice/video calling one-on-one and group too.
Here's the doc and here's the code snippet of basic implementation in the flutter.
Hope this will help you.
I would say the best option is to go with an open source WebRTC based solution if you are ready to self host the VoIP server. In this case you can consider using Pion VoIP package which is available even in flutter. See https://github.com/pion/ion-sdk-flutter
To avoid hosting and ready to pay some cash for the calls users make, consider Twilio or any other cheaper alternatives which can do the hosting for you, but gives API calls to use them in your app.
Hope this helps :)
I would suggest that you save the actual number with a key value pair example
{
'cell':'0000000000',
'fakeCell':'0123456789'
}
Then whenever you want to call through the app you do a quick lookup to get the real number.
also here is a WebRTC Plugin you can use

How to integrate Juggernaut chat server (Powered by ruby on rails) with iPhone/Android app for real time chat?

Preview:
I am using juggernaut chat server.I am having redis and juggernaut server running on machine. I am able to do chats within my local network on vaious web browsers. Everything is working smoothly. As juggernaut is a server driven chat server so i am quite sure about the scalability thing. Now here is the thing:--
Whats the problem:
I want to have a iphone native app too where user can login and chat with his friends. Now the thing i want to know is how do I push on iphone app, cause for juggernaut client registration a javascript code is needed. Something like this:
var jug = new Juggernaut;
jug.subscribe("channel1", function(data){
alert(data);
});
Basically how do i push new notifications to Iphone chat window. I don't know much about iphone as I am web developer. Still from google search etc I came to know some possible ( may be) ways:-
We can embed a url in iphone window. Is this a good approach?
Other thing we can do is using UrbanAirship kind of services we can do push notifications. Will push notification works for chat? I don't know about that even.
Third option can be polling. Iphone chat client keeps on hitting my rails app for new notifications. But i think this will be a very bad approach.
What are the other possible solutions?
Can any iPhone/Android developer guide me what should i do. I will eventually hire a Iphone developer to do all the coding part. But I want to have a big picture in my mind so that I can provide a complete docs of all the things, and have a clear picture how I want to discuss things with him before writing down the code.
PS: I am looking for a solution which works for android/nokia devices too. Cause later on I will be developing an application for that too. Basically it will be good to have a same solution. if not then compatibility factor should be there atleast.
Apparently there is WebSocket support in MobileSafari on 4.2 (source). You could probably write up a client that uses an embedded UIWebView to marshall the events to/from the Juggernaut server and deliver them to your app via shouldOpenURL and custom handlers.
You might also look at libPusher by Luke Redpath for interacting with push communication via the Pusher web service.
Check out this library: https://github.com/fpotter/juggernaut-cocoa
It's really easy to use.

Is it possible for a mobile webpage to capture a picture?

Assuming you built a page for each specific mobile browser (Android/iOS/BB/etc.), is it possible to have a web application capture an image and send it to the server for processing?
I'd like there to be "Nothing to install" for my application, but if I need to reach out to the hardware at all, I fear it's not possible.
There is the Video Capture API but I have no idea how widely spread addoption is at present and it is very new.
IF this api isn't avalible there isn't really much you can do other then asking users to upload it using a standard file upload and them to take the picture before hand.
This is one area that a native application would be far far better as intergeneration would be easier and more seamless for the user.

Logging into and communicating with a server from an iOS app...help!

Hey everyone. I have a fair amount of experience developing iOS apps, but nothing much with web/server interacting apps. For a project at work, I am making an app that will let you login, and get pictures off from a server that will then be downloaded for display and review on the local device.
I need to get some pointers on the correct approach to take. Are there built-in classes that make doing something like this easy? Once the cogent is downloaded from the server, it will be viewed locally, so all I need is to get a point in the right direction for logging in and communicating with a server…from an iPhone.
Can anybody point me in the right direction?
Me, I'm using ASIHTTPRequest Librayry to communicate / download with Internet.
For example, for an news app I download latest news in JSON (with a PHP script on a web server) and store datas with SQLite. If you need a little explanation of JSON with iPhone, check here (in french, but source codes are in english ^^)
When I need to download an image, I use ASIHTTPRequest and a queue to avoid downloading to much files at the same time.
If you want more information about a step, just say it.
Good Luck !
NURLConnection is your friend, along with its delegate methods.
Don't be lured by the temptation to use the -sendSynchronous method (which, now that I think about it, if you require authentication, you probably can't use anyway).

How would I add code that would update an online "counter" so I know how many times an iPhone app is being opened?

So I have searched for this but not finding anything about it and if I missed it sorry about that. What I am trying to do is see how to go about adding some code to my iphone app that will connect to a php script (if connection available) and update a counter so that I can let my clients know that their app is constantly being used? Also, would apple allow that? Or would my app be denied for doing such a thing? Any help would be great! Thanks in advance.
There's a bit of network plumbing to implement this. It's not hard, but a much easier route would be to integrate something like Flurry analytics into your app. They you can make one function call, and have it track and upload the information to Flurry's servers. You can view those stats and get an idea of how people are using your app.
Note: I don't work for Flurry, but I use (and like) their service.