Requirement:
I have a PhoneGap application. I collect photos, text data and audio recordings through my app. Now I want to upload this data to the server.
How do I upload my data to servers even if the application is suspended or put to background.
If yes, any pointers would be really helpful. I am developing the app for Android and iOS.
Thanks a lot for all the pointers.
I found the following:
You can use following PhoneGap plugin to upload data in the background for iOS.
http://www.codefromjames.com/wordpress/?p=154
I start the upload process when the application is in use and continue upload in the background until 5 mins (you can choose the time, my upload should never take more than 5 minutes)
Now I am looking in how it can be done in Android and PhoneGap. I will update the post when I find anything for Android.
Thanks
Anup
Related
I'm working on a flutter app for a client and I've been stuck trying to load images from bunnyCDN and prior to this project I've never used bunnyCDN or any other CDN. I've done research and every necessary step to figure out how to go about it but still to no avail. I need help on how to load, download and upload from bunnyCDN in flutter app.
Thanks in advance.
I'm interested in creating an android app that needs a lot of video clips.
To make the app weight not too heavy, I thought about storing the videos on a server and whenever the user wants to watch the video the app connects to the server and gets access to the video and the user can watch it (of course all this happens inside the application).
so how can i do it in android?
Thanks in advance to everyone
I do not know if you are conversant with web services, but i think the best way is to create a web service and communicate with your application. You will send a request each time a person wants to view that video and fetch it, it sometimes takes a while to load, basing on the algorithm you use, or even internet connectivity, but it is easier, especially with languages like php.
However,Your videos should be compatible with android.
This tutorial will help you see how to call videos by url.
I also admire this Website. It shows you how to perform storage and live streaming on both android and the server.
I am developing an IOS/Andriod app where I want my users to be able to upload videos - these videos will later be used by the app. Since I don't want to spend a lot of money on data storage I was thinking of using YouTube as the placeholder of the videos.
Is is scenario supported by YouTube?
Are there any limitations for me to consider regarding this scenario?
Is it OK if my app uses only one YouTube account - which my app users share and use when they upload a video? Or do my app users I have to use a personal YouTube account to upload the videos?
Anything else I should think of which I might be missing here?
Thanks
Thomas
I am going to answer you about android because I know about how you can achieve this in Android apps.
Here's a simple step by step to learn how you can integrate Youtube in your android application. for doing this You will need to download the client libraries written in java. Download the library here
This scenario is supported by Youtube
It will be OK to use only 1 youtube account to upload videos to Youtube. but all users have to share that account
One thing you can consider to make sure not to upload very large files (more than 100MB). although it will upload but it can take much time.
It is possible to upload capture/gallery videos on your own channels, not possible to use like all users data storage.
i am planning to develop an hybrid application using phone gap. i want to download html pages,images & other resources from a web server instead of keeping it inside the phone gap application bundle.
is it possible to do so
is it the right way to avoid updating the application in the App Store frequently or
will android, iPhone, windows reject our application
Yes it is possible with phonegap, nothing can prevent you from loading html file from remote source. Here's my other answer on this question: https://stackoverflow.com/a/13996437/1848600
Unfortunately no. While we can say this is true, every error will brake every available app version, while if you create version by version customers will always be able to use previous ones. Also Apple apps store will ban such app.
Android/Win7-8 app will not be rejected, iOS will be rejected immediately. Here's my other answer on this question: https://stackoverflow.com/a/14436328/1848600, no point in repeating.
Yes, it's possible.
you have 2 choices to implement it. simple way is just start on web server url. but, you need a code for including cordova script file that matched target device.
another way is check & download files.
In this case, you need to write some code of phonegap for update-check, download contents & change start URL.
During you have no reason for changing native code, my answer is Yes.
exactly Apple doesn't allow to update app logic without AppStore or load page in web server, but i don't know really it is.
I want to upload pictures and videos captured to Heroku server using my android app. I have searched a lot but cant find solution. Can Anyone tell me how can I do that?At least give me a startup Please help I want it to get going. I am stuck cant find anything. Using buttons in my app i want to upload different things.
Thanks!
You'll need somewhere to store these photos (like amazon s3) and a library to deliver them there from heroku (carrier wave or paper clip Gems if using ruby on rails).
That's it for the server side.