Communicate with application from Web - android

I want to develop a website that allows me to manipulate my android phone afar, what can i use as a URL to link the 2 applications ? should i use webservices ?

You can trigger special funktions like sending an sms or starting a call by using special links
Examples for Android an iOS:
Call 123456789
Send SMS

I see no way of direct communication with the native app. The website could send the requests to a server and than use push notifications to trigger the changes in the native app.

You have 3 choices.
RESTful services(they are like stripped down Web services)
through json and php or whatever script you know
Google's Cloud Messaging
Since you seem eager to go with Web Services I suggest the first. It would be easier for you

Related

What should be the server side for a chat app?

I'm trying to make a whatsapp like chat app, where I want a server to receive requests. I am thinking of making php server page. Would it be the right choice? or should i look for some cloud computing servers? Please convey some opinion..
You should have a look at socket.io, which is a websocket package for nodejs. In its documentation there is a chat server example.
http://socket.io/get-started/chat/
I would recommend you to use NodeJs in this case. Node has a asynchronous nature, so its the best thing to use for chat apps. Its also a lot faster than PhP in most use cases. Another thing to consider is that NodeJS hosting is pretty cheap. In fact, you can use OpenShift and start testing your app for free in a redhat server.
If you wanna know more about nodejs: http://www.nodejs.org
More on Openshift: openshift.redhat.com
If you are creating a chat app like Whatsapp, use the following server that would help to build more easily.
Yaws - An Erlang-based web server that can also run as a standalone web server
Lighttpd - Another web server that is highly secure, swift, flexible and compliant with web server standards.

Since Layer.com does not have a web SDK yet, what can I use to integrate it myself for a web-mobile chat app?

Layer looks awesome for mobile development, however, in case we need to build a web to mobile chat, the web SDK is not yet available. Can we integrate it with parse to do so? Or maybe some other solution.
The Web SDK is currently in Early Access so it's available to be used. You could potentially use the combination of the Platform API and Parse cloud code to do a partial chat from web to mobile in the meantime, but it depends on your use case.
I do not know Layer but I think(hope) you can send http request (REST api) to parse and trigger the cloud function. So the cloud function can send your message to your mobile client as a push notification. After that, the only thing that you have to do is handling the push notification cases such that when the app is opened, when the app is closed or when the app is on chat screen. Hope this helps.
Regards.
Another good alternative is Hyphenate. Similar to Layer, but Hyphenate supports both Mobile and Web SDK with rich features and very reliable services.
Parse is good, but shutting down soon, an good alternative is Firebase by Google.
https://hyphenate.io/
https://github.com/HyphenateInc/Hyphenate-SDK-Web

How to connect to the server on mobile application?

I am new to mobile applications. I am basically from a web development platform. I am just playing around mobile frameworks like App Framework, LungoJS, Jquery Mobile, kendo etc to gain some knowledge in this vertical.
The app I am developing is still in UI level. All I need is to fetch data from the server and populate in my app.
I need some ideas to establish server communication between the smart device and the server. My questions are
What kind of server needed for mobile applications ? A cloud or a
regular web server is enough ?
What are the ways to connect the app with the server ? ( on cross
platform mobile development )
What is the secure way to communication with the server ?
What kind of server needed for mobile applications ? A cloud or a regular web server is enough ?
Because you are creating a hybrid mobile application you can use any type of server side technology, it doesn't matter is it a classic web server technology (using Java, PHP or .NET) or some kind of cloud technology like Parse.com.
You also don't need to create anything from scratch. Best course of action would be to use some kind of micro RESTFul framework(like PHP Falcon or Java Play Framework). Read more about them here.
But, there's always a but. You can't use server side technology for classic content generation, you only need to use it to send data to your hybrid application. I will explain this later.
There's also an alternative to RESTFul services, you can create a webservice, again using Java, PHP or .NET.
What are the ways to connect the app with the server ? ( on cross platform mobile development )
You would use AJAX as a technology (in case of RESTFul), rest depends on you. You would probably do it in JSON format (or JSONP if you are doing cross-domain calls, but you don't need to think about JSONP when creating a hybrid application).
If you intend to use a web service then you would use a SOAP connection and communicate via XML format.
No matter which server side technology you use you will always use AJAX on a client side.
Now let me tell you why you should not generate your content on server side. Basically nothing can prevent you from doing that, you can generate your complete page on web server and just show it in PhoneGap app, it would still be a hybrid app. But, if you try to put this app in Apple store you will get yourself rejected.
What is the secure way to communication with the server ?
Security of course depends on server side technology. Every framework has its own kind of security handling, but all of them relay on HTTPS so you should not worry too much.
From the client side you can always encrypt JSON/XML data and send them using POST.
Examples:
If you want to use jQuery Mobile then take a look at this tutorial. It will show you basics of client - server side communication.
Since you are new to mobile application, ill try to give short answers
1) What kind of server needed for mobile applications ? A cloud or a regular web server is enough ?
A regular web server is good.
2) What are the ways to connect the app with the server ?
via web-services
3) What is the secure way to communication with the server ?
Use HTTPS webservices (SOAP, REST), HTTPS secures the transmission.
Above is a basic explanation for your quick help, I would recommend you to go through the documentation, and review some sample codes
This will really help you Sample
Please go through this link it will surely help you
http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Webserver,cloud anything is good for restful service
for security purpose you can use POST parameter to send and recieve data or if you want more security then you can encrypt and decrypt data through secure algorithm

Integrate Appcelerator Cloud Services to a custom website made with ASP.NET

I'm really new to mobile world, so I'd like to get some opinion from experienced people.
After several days searching over the internet, I'm wondering if it's possible
integrate Appcelerator Cloud Services to a custom website made with ASP.NET, for example.
Although my mobile application, built with Titanium, it's linked to ACS, and works fine, I don't know if
it's possible to manage data stored in ACS from a custom website. To clarify, in one point there is my mobile application
talks to a webserver (ACS, for example) and other point there is a website, to manage the data stored in ACS.
What do you think, someone achieved this?
Or is it preferable to write a webserver from the scratch, store my data in somewhere, and forget about ACS?
Thank you.
Appcelerator says
Appcelerator Cloud Services (ACS) is a Mobile Backend as a Service
(MBaaS), offering a fast and easy way to build connected mobile apps.
Choose from a library of services such as push notification, status
updates, photo storage, and social integration, or create your own
custom cloud services.
Here in this page - Getting Started: Using the Javascript SDK - you can see how we can use javascript SDK which lets you access the Appcelerator Cloud Services server through some simple to use JavaScript calls. You can use this to develop web-based app.
ACS has a REST API which you can access through anything that supports xhr (which .NET does). For instance, to create a new user in ACS, you use the following link:
https://api.cloud.appcelerator.com/v1/users/create.json?key=YOUR APP APP KEY?email=john.smith#company.com&role=teacher
There are other properties you can tag onto the querystring to create a new user from a REST call. They have a complete API using REST. It's all documented. You can even send push notifications to devices from your custom website using the REST API! It's pretty cool.
http://cloud.appcelerator.com/docs/api/v1/users/create#rest
Good luck!

Implement app able to receive push notifications and launch web browser

What is the easiest way to implement a simple app which does two things:
receive push notifications (new messages in user's inbox),
open a page on my website in a webview or web browser.
It would be best if the solution was portable among iOS, Android and possibly other mobile systems like Windows Phone and BlackBerry 10, but I'm happy with separate solutions, if it's the only way to do it.
I suggest that, checking out Parse apis for this task.
There are solutions like http://xtify.com/ or http://urbanairship.com/products/push-notifications/ that provide an all in one package across platforms but I don't know the quality of service or which one would be right for you, some research on your part will be necessary if you choose this path.
Or you could implement it yourself but it will require your own server. The server would notify both Androids C2DM And Apple Push Service at the same time. You will have to implement the client side on each.
For iPhone here's a good tutorial for setting it up http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
For Android http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html
You register your app with both services then sends the push keys to your server. With the keys the server can then notify both platforms respective push services to send a notification .
I can't really help with the server setup stuff as its not my area of expertise but this is how we implement push notifications for the apps my company makes.
I'd recommend a Phonegap (Cordova) app and UrbanAirship for the notifications. You can get a free account with that. It's relatively easy to implement too.
As for the browser, I'm not sure exactly what you want it for. Could you elaborate and I'll post a response.

Categories

Resources