Great work – purchase Saturday – how difficult to integrate cloud database? (cloud being a fancy word for regular/sever)
It shouldn’t be too hard really. The only thing I would say is that you’ll want to look at a local cache. So basically you would have:
1. User opens app
2. App checks for an active data connection
3. If data connection exists, sync sqlite with remote server (this can be done with a simple JSON call or just a XHR request)
4. If a connection doesn’t exist, pull tasks from the sqlite database.
Of course the biggest issue will be getting the sync correct. You dont want to go and accidentally overwrite a bunch of entries. For this the best thing I can think of would be to store an md5 hash of the individual tasks, which gets compared against the server version. If they differ, it then looks at a timestamp to see which was the newest and syncs that one across.
I had a flick through the Titanium Q&A and found a few resources that you may be interested in reading:
The below blog post by a member of the Q&A area explains one way of doing mobile sync:
Hope this helps – if you do get stuck on any of the code just give me a shout!
thanks for the awesome reply – let you know how it goes!
FYI – App threw an NSException in Titanium iPhone 4.3 Emulator on launch and subsequent task editing.
1. created a new todo task
2. hit Edit and deleted new task then hit Cancel
Here’s the log output from the emulator console:
Could you try emptying your /build/iphone directory out and restarting Titanium – the titanium builder has a few known problems when building on some occasions.
I’ve tried replicating the error from my end however cant seem to do so. Could you confirm your version of Xcode and Titanium Mobile you are using?
Hey,this app can be used like an alarm when the time come?
It probably could if you were to add in the functionality to do so…you could use MP3 files and even push notifications.
when i purchase, I Presume the Source code is also included ?
Do you still offer support on this app. I sent you an email last week, and I have not heard anything back.
Hi, use alloy o is a clasic app?
Im getting an error when trying to add a task:
‘4’ is not a function (evaluating ‘resultSet.fieldCount()’)”
Is it possible to use it on android devices?
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Why buy with Envato
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work