building a real time android app with parse android sdk - android

I want to build an Android app and want its features to be realtime. I will be using parse Android sdk as my mbaas. But its not real time. I once built a snapchat-like app. In the app when someone sends a photo to his/her friends, the receiver has to refresh their feed in order to see his/her message (photo). So i wish to know if it will be possible to use parse cloud (instead of parse android sdk) with nodejs to handle the logic or is there a better option. Thanks.

Related

How to send update to a mobile app (Android & IOS)

I've a made a really basic chat application(no need to see the code)(from the course of Angela Yu, flutter)it is integrated with google firebase which uses firebase_core, firebase_auth & cloud_firestore packages for authentication and uploading chat data in cloud Firestore.
I've installed the app through debug.APK( 1. would it matter if it was release.APK?) in my & my friend's phone both android ( let's take a neutral approach i.e the phone could be either IOS or Android).
What I aim is if I change my code( or we say update my app) I would want my app on both the phones to get updated( either automatically if possible or send a alert when user opens the app to update it), all this should be done with free of cost. 2. How can I achieve this in simplest manner?. I know there is a standard way for this if the app was in Google play store or App store but I don't want to upload it on stores.
My guess for this is that we integrate our app with a server so that every time the app starts it checks for a update with the server and ask the user to update and gets updated. If this is achievable can someone please guide me with these two methods mentioned below:
3(A). through free online server( can we use github or firebase?)
3(B). and can I make my own laptop as the server and code the app such that it doesn't need the server to be always online.( as in if my server is online it checks for update else it continues)
3(C). through paid servers ( just for information)
(4) Also please tell me why we chose cloud firestore over real time database for a chatting application?
(I don't want to create a web app)
I've no idea how would any of this be achievable like nothing like what server would be used or is this even possible. So please help me with a detailed explanation on all( 1,2,3(A),3(B),3(c) ). Any help would be really appreciated!
Since you already use Cloud Firestore, consider creating a document in there with a field that contains the version number of the latest app release.
In your application code you then read this document upon startup, and check it against the app's own version. If the version from the database is newer, tell the user to upgrade.
You could even include instructions on where/how to get the latest version in the database too. That can come in really handy of you suddenly have to change your release mechanism in between versions.

Quickblox store chat into cache for android like Ios Quickblox sdk

I am currently working on android chat application with using Quickblox SDK.its good for developing chat,video and audio call.but for android there are some limitations.I already waste my 3 days.there is some limitation which I am facing.
1). I am not getting Message during DialogsActivity.How can I update particular dialog when getting messagew from any user? in ios SDK, it's already handled in demo projects.
2). in ios SDK They can easily store whole chat in the cache memory using Service manager Class.but for android there is no method to store data.How can I store chat history in the cache memory using quickblox android like ios?
3). in Quickblox SDK we need to login every time.Is there any method for get login status?
Help for this Problems
Thanks in Advance

Pushing data with Windows Azure

I am currently using Windows Azure with Android and need to sync data between sets of users using PUSH notifications.
For example: User A uploads data to Azure which is stored in the SQL DB. That then needs to be pushed down to a specific set of devices and stored locally in SQLite.
What is the best design pattern for this? Should I be pushing the data with the PUSH notification or be using PUSH as a prompt for the app to then connect with azure and download the data.
Thanks for any help.
I'd think you would want to send a notification to the device that prompts the user to launch the app, and then the app fetches the data. I don't know how Android push services work, but I'd assume there is a fairly limited amount of data you can send in a single notification.
The best way to accomplish this is to use Windows Azure Mobile Services and the unoffical Android SDK.
The unofficial Android SDK can be found at: https://github.com/goldshtn/wams-android
The benefit of using Mobile Services in this case is that it's super easy to writer server-side scripts on INSERT. After you connect your project to a Mobile Service, you'd then head to the 'Data' tab, select the appropriate table, and then head to 'Script.' Pick INSERT from the dropdown, then write a function that sends a push notification to the designated subset of users. You'll need to write this in JavaScript.
There's some code you can work from included with the unofficial SDK, but if you check out https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-push-dotnet/#update-scripts you can get a sense for the steps you'd follow for an app on any platform (though the tutorials will only walk through Windows Phone 8, Windows Store, and iOS at the moment).

Upload Information to Rails and update Android application

So I have an Android application that visualizes points of interest with relevant information. I also plan to have a Ruby on Rails application, that allows users to upload new points of interests with the appropriate attributes (i.e. information). What would be the best way to update my Android application's SQLite database to reflect the new information?
When you updating your RoR application, you want to reflect the changes on your android application as well?? hmm, if in case, you can use GCM which will give u real time push msg http://developer.android.com/guide/google/gcm/index.html
here is a post about it also.
Gem for push notifications for Android and iOS
correct me if im missunderstanding your question

push notification in android

please guide me how to implement the push notification in android. according to my application when server hits any information at any time i want to display that info at that time. what i need to implement this in my android plateform.
With Android 2.2 it is possible using the Cloud to Device Messaging.
As Alopix mentionned, the automatic way to do that is through Android Cloud, since Android 2.2.
Now If you want it before 2.2, here is what I choose to do to enable it in my application :
First, put a switch in your application, testing for the version of the Android system of the phone you are running on (with Build.VERSION and then the field SDK_INT).this way you know if you are in equal or above 2.2 or below.
Then, if you are below, you need to create a small php page, with for instance a timer, that will be executed regularly by your server, and you do a simple http request on this page to check if there are news available for your application.
Does that help?

Categories

Resources