No iCloud solution?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

No iCloud solution?

Post by DevBoyLars » Fri Feb 21, 2014 6:25 pm

Hi,
is there no iCloud solution out there?

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Tue Feb 25, 2014 1:04 am

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
LiveCode Development & Training : http://splash21.com

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: No iCloud solution?

Post by Nakia » Tue Feb 25, 2014 5:01 am

I would love to have a play with this John...

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: No iCloud solution?

Post by DevBoyLars » Tue Feb 25, 2014 7:24 am

That sounds nice and I like to try this, but real iCloud sync isn't out there, right?

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Tue Feb 25, 2014 3:42 pm

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!
LiveCode Development & Training : http://splash21.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: No iCloud solution?

Post by FourthWorld » Wed Feb 26, 2014 3:00 am

Doesn't Apple also offer an HTTP-based API like pretty much every other cloud service?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

pthirkell
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 93
Joined: Tue Nov 17, 2009 6:47 pm
Location: Wellington, New Zealand

Re: No iCloud solution?

Post by pthirkell » Wed Feb 26, 2014 4:28 am

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

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Wed Feb 26, 2014 12:44 pm

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.
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Wed Feb 26, 2014 1:00 pm

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. (?)
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Wed Feb 26, 2014 9:41 pm

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.
Last edited by splash21 on Fri Feb 28, 2014 1:04 pm, edited 2 times in total.
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Thu Feb 27, 2014 4:48 pm

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)
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Thu Feb 27, 2014 7:42 pm

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.
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: No iCloud solution?

Post by splash21 » Fri Feb 28, 2014 11:54 am

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 245 times
SplashCloud-pdf.zip
(69.64 KiB) Downloaded 273 times
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “iOS Deployment”