I do not expect Erel to have the answer to every question because he does not have time to experiment with every library, but has anyone else that uses the Dropbox library experienced the issue I have which is: Upload text file from phone scheduled every day at 3:30 PM, but occasionally the file does not upload until a few hours past the scheduled service time.It is hard to say as it is Dropbox app that actually synchronizes the local cache with the server.
I use the Samsung S4 phone to upload the file. 85% of the time it runs on time at 3:30 PM. Just once in a while it uploads later than 3:30 PM.I think its a problem with your app and/or the device you are using.
There are times where there is no internet available in the area around 3:30 PM where the device in the field is located as the terrain is desolate and mountainous.If dropbox is not syncing it , it will probably tell you why.
and i think in the logs it will say if the internet is up or down.
There are 6 Samsung S4 phones that upload their text files extracted from a SQLite database and are all set with a service that runs at 3:30 PM. As mentioned, the delay only happens 15% of the time. The problem can happen to any of the six when not in proximity of wifi or no cell capability in the area.do you use a service to upload the file at 3:30? are you sure the service starts on time?
do you awake the phone at 3:30? some phones need to be fully awake to use the wifi or 3g connection.
have you tried another real device?another brand.
If we assume occasionally there is no internet at the time of the service, why would the file upload later when internet is available after the set time has expired?
I do not expect the text file to be uploaded when there is no internet. However, I thought that the file will wait until the next schedule service which is tomorrow at 3:30 PM before it uploads. But your explanation makes a lot of sense. I was always under the false impression that my app syncs with the local cache only if there is internet, but as you methodically explained, sync API does not need internet to store the file in the local cache.I dont get it, if there is no internet at 3:30 how you expect the file to be uploaded?
I read dropbox documentation, but missed the relationship between sync API and the local cache. What is the exact link for the latter?you should read the sync api documentation on the dropbox.com site
Hi rboeck! This code sounds exactly like I want to do!B4X:manager.uploadfile(Datadir, "mobilcrm.db","/","mobilcrm.db")
Sorted. My app was configured to access ALL dropbox folders, not just app. I re-created my app in dropbox with just access to its own folder and bingo it worked.
This is how Dropbox Sync works.That ist not what I want
This is how Dropbox Sync works.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?