• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
standalone not logging in...
#1
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)
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...
  Reply


Messages In This Thread
standalone not logging in... - by stamatis - 11-08-2020, 01:27 AM
RE: standalone not logging in... - by stamatis - 11-11-2020, 02:40 AM
RE: standalone not logging in... - by stamatis - 11-12-2020, 03:02 AM
RE: standalone not logging in... - by stamatis - 11-20-2020, 06:16 PM
RE: standalone not logging in... - by JereMiami - 10-02-2021, 12:15 PM
RE: standalone not logging in... - by Hendricus - 10-13-2021, 09:28 PM
RE: standalone not logging in... - by Hendricus - 10-14-2021, 07:46 AM
RE: standalone not logging in... - by Hendricus - 10-15-2021, 02:43 PM
RE: standalone not logging in... - by Hendricus - 10-15-2021, 09:22 PM
RE: standalone not logging in... - by Hendricus - 10-16-2021, 07:09 PM
RE: standalone not logging in... - by Hendricus - 10-20-2021, 09:09 PM
RE: standalone not logging in... - by Hendricus - 10-22-2021, 11:42 AM
RE: standalone not logging in... - by Hendricus - 10-27-2021, 09:44 PM
RE: standalone not logging in... - by JereMiami - 11-30-2021, 09:27 AM
RE: standalone not logging in... - by stamatis - 11-30-2021, 11:12 AM
RE: standalone not logging in... - by Linda Lu - 11-30-2021, 05:47 PM
RE: standalone not logging in... - by stamatis - 11-30-2021, 07:54 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)