Hi all,
I'm having difficulty with getting a standalone to use LiveCloud...
i've adapted the login set up from the 'create project' from LCM's toolkit dialog. I use the same interface/code and if successful login it navigates to another card.
Inside LiveCode (Indy 9.6.1) this works great.
However when building standalone this just doesn't work and no error is generated.
I've made sure all external files for the app and livecloud's required libraries are included.
In particular: Internet, tsNet, mergJSON, SSL & Encryption, as well as the app's CanelaDB toolkit folder are definitely included (I've also tried just adding the 3 subfolders of the /CanelaDB/ folder instead, but no difference)
I've added some debug code to try and figure out where the app fails in the standalone.
Running the 'login' command below gets as far as calling cdb_auth, then nothing else happens in standalone, whereas in LiveCode it works as expected, completing the authorisation and navigating to the correct card. If i try to create a new account, nothing happens again.
The login code called by clicking 'log in' is (comments indicate what works inside LC and in Standalone)
Based on this it seems like after cdb_auth, the process stalls somewhere in the standalone, as the next 'answer' debug line never fires but does inside LC.
Looking at my firewall, the app doesn't seem to be attempting to connect to the internet at all (according to Little Snitch)
What am I missing? Any help would be greatly appreciated...
I'm having difficulty with getting a standalone to use LiveCloud...
i've adapted the login set up from the 'create project' from LCM's toolkit dialog. I use the same interface/code and if successful login it navigates to another card.
Inside LiveCode (Indy 9.6.1) this works great.
However when building standalone this just doesn't work and no error is generated.
I've made sure all external files for the app and livecloud's required libraries are included.
In particular: Internet, tsNet, mergJSON, SSL & Encryption, as well as the app's CanelaDB toolkit folder are definitely included (I've also tried just adding the 3 subfolders of the /CanelaDB/ folder instead, but no difference)
I've added some debug code to try and figure out where the app fails in the standalone.
Running the 'login' command below gets as far as calling cdb_auth, then nothing else happens in standalone, whereas in LiveCode it works as expected, completing the authorisation and navigating to the correct card. If i try to create a new account, nothing happens again.
The login code called by clicking 'log in' is (comments indicate what works inside LC and in Standalone)
Code:
command login
local tInputA, tLayer, tAuthStatusA, temp
if not _verifyLoginData() then
exit login
end if
answer "about to send cdb_auth" //debug code -- this works in LC and Standalone
get cdb_auth(fld "Email-input" of grp "login",fld "Password-input" of grp "login","User")
put cdb_authStatus() into tAuthStatusA
answer "Response: " & cdb_result("response") //debug code -- does nothing in standalone; no response, no error. In LC this answers authorisation completed
repeat for each key tKey in tAuthStatusA //debug code -- no response here either. In LC it answers cloud: true, local: true
put tKey & ":" && tAuthStatusA[tKey] & return after temp
end repeat
answer temp
if tAuthStatusA["cloud"] then
go to card "card1" //works in LiveCode, but not standalone
else if tAuthStatusA["local"] then
go to card "card2" //works in LiveCode, but not standalone
else
answer "Error authenticating user:" && cdb_result("response")
end if
end login
Based on this it seems like after cdb_auth, the process stalls somewhere in the standalone, as the next 'answer' debug line never fires but does inside LC.
Looking at my firewall, the app doesn't seem to be attempting to connect to the internet at all (according to Little Snitch)
What am I missing? Any help would be greatly appreciated...