Page 1 of 1

No iCloud solution?

Posted: Fri Feb 21, 2014 6:25 pm
by DevBoyLars
Hi,
is there no iCloud solution out there?

Re: No iCloud solution?

Posted: Tue Feb 25, 2014 1:04 am
by splash21
I've not looked at it since April, but I was working on some cloud stuff - it talks to LC server from your app. Features (I'm sure everything works so far) are;
  • storing and fetching data
  • storing and fetching high scores (optional auto trim to the top N scores)
  • registering devices for push notifications (iOS and android)
  • sending push notifications to devices meeting criteria (iOS and android)
If you've got time and are interested, I'll set it up again. Accounts can be set up with configurable storage space. Like I say, it's been a while, but hopefully it should still all work as before when I was testing.

Just dug out the stacks - I had forgotten that the client also has blocking and non blocking modes - would be good to get it up and running :D

Re: No iCloud solution?

Posted: Tue Feb 25, 2014 5:01 am
by Nakia
I would love to have a play with this John...

Re: No iCloud solution?

Posted: Tue Feb 25, 2014 7:24 am
by DevBoyLars
That sounds nice and I like to try this, but real iCloud sync isn't out there, right?

Re: No iCloud solution?

Posted: Tue Feb 25, 2014 3:42 pm
by splash21
Real iCloud - not that I know of, but maybe you should ask on the use list as well - you never know - someone might already have something. This is pretty basic - no sync, but maybe that's something that could be added.

I've just updated the cloud scripts, so I'll post a test stack soon if you guys still want to poke it with a stick!

Re: No iCloud solution?

Posted: Wed Feb 26, 2014 3:00 am
by FourthWorld
Doesn't Apple also offer an HTTP-based API like pretty much every other cloud service?

Re: No iCloud solution?

Posted: Wed Feb 26, 2014 4:28 am
by pthirkell
John I would really interested in seeing anything that you are willing to post. It should hopefully complement/extend the recently released database/cloud Academy materials that I am currently working through at the moment. At some point I might need to tackle sync ... but first things first! Tks in advance for help and advice along the way :D

Re: No iCloud solution?

Posted: Wed Feb 26, 2014 12:44 pm
by splash21
http://owncloud.org/ was mentioned a while ago - looks really interesting. For sync, etc. this could be a good solution as you can set it up on your own server.

Re: No iCloud solution?

Posted: Wed Feb 26, 2014 1:00 pm
by splash21
pthirkell wrote:At some point I might need to tackle sync ... but first things first!
I wasn't really aiming at a sync feature, but it would be damn handy! I'd definitely like something that will work across all platforms. Re-inventing the wheel isn't necessary when there are projects like owncloud, but I don't think any of them handle things like push notifications. (?)

Re: No iCloud solution?

Posted: Wed Feb 26, 2014 9:41 pm
by splash21
I've written up the documentation for what I have so far - if anyone is interested after reading then let me know and I'll send an API key. Everything worked fine the last time I tested (around April 2013) and I've made a couple of updates for newer versions of LC. I've marked the cloud.PushBroadcast command's query section as experimental as that was the last feature I was working on and it wasn't tested heavily.

SplashCloud-pdf.zip

SplashCloudExample1.zip

(files updated : see below)


Edit : I need to add a new command to upload the iOS push notification certificate and android push notification key - there are fields in the database for them, but I just added them manually while testing.

Re: No iCloud solution?

Posted: Thu Feb 27, 2014 4:48 pm
by splash21
I added a couple of commands to upload the iOS push notification certificate and the google GCM key to the server. I just tested android notifications and everything works OK, so I'll give iOS a go later. 8)

Re: No iCloud solution?

Posted: Thu Feb 27, 2014 7:42 pm
by splash21
Just tried testing on iOS and nothing would work :shock:
It looks like the uuid function causes a problem on iOS - seems to cause an error. I'll replace it with something else. Works OK on desktop and android.

Re: No iCloud solution?

Posted: Fri Feb 28, 2014 11:54 am
by splash21
There have been a few downloads, but the uuid bug prevents things working on iOS. Here's a new updated stack that works on desktop, android AND iOS. I've also added two new commands to upload the certificate and key required for iOS and android to send push notifications. I've been sending PN's from android, iOS and the desktop to my devices, so it all seems to be working :)
SplashCloudExample2.zip
(5.67 KiB) Downloaded 250 times
SplashCloud-pdf.zip
(69.64 KiB) Downloaded 279 times