RE: Launch URL with Link Back to LC App

2017-01-31 Thread Ralph DiMola via use-livecode
>Richard Gaskin wrote:
>I suppose the question for us is: Why isn't this supported in LC as an
option in the Standalone Builder?

It is in a way with the "background audio" option in the standalone
settings. Enabling will get you rejected if there is no audio played in the
app(ask me how I know). This is because the UIBackgroundModes key is set to
"audio".

I'm not sure but I believe that any timers or call backs(say from tsnet)
will lock up the stack or make it go crazy. I think Mark chimed in on this
once but I can't find the thread. If the stack is just sitting idle there
are no problems.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL with LInk Back to LC App

2017-01-31 Thread panagiotis merakos via use-livecode
This option is not in the Standalone Settings because  the engine does not
yet support suspend/resume explicitly. IIRC, in the past we had discussed
what needs to be done to properly support suspend/resume messages on
mobile, and it turned out to be quite tricky, requiring a major rewrite.


On Tue, Jan 31, 2017 at 4:53 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Sannyasin Brahmanathaswami wrote:
>
> > Ralph
> >
> > Thanks, hacking the pList definitely works!
> >
> > I guess Apple doesn't care, right?
>
> I would imagine not, since they defined the plist and included that value
> for that purpose.
>
> I suppose the question for us is: Why isn't this supported in LC as an
> option in the Standalone Builder?
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL with LInk Back to LC App

2017-01-31 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:

> Ralph
>
> Thanks, hacking the pList definitely works!
>
> I guess Apple doesn't care, right?

I would imagine not, since they defined the plist and included that 
value for that purpose.


I suppose the question for us is: Why isn't this supported in LC as an 
option in the Standalone Builder?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
Glad it worked out for you. Apple has never said a word. I've been using it for 
4 years. I think you run into trouble if you have any timers or call backs when 
the app is in the background.


Ralph DiMola
IT Director
Evergreen Information Services



 Original message From: Sannyasin 
Brahmanathaswami via use-livecode  
Date:01/30/2017  22:18  (GMT-05:00) To: How to use 
LiveCode  Cc: Sannyasin 
Brahmanathaswami  Subject: Re: Launch URL with 
LInk Back to LC App 
Ralph

Thanks, hacking the pList definitely works!

I guess Apple doesn't care, right?





On 1/30/17, 10:18 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL with LInk Back to LC App

2017-01-30 Thread Sannyasin Brahmanathaswami via use-livecode
Ralph

Thanks, hacking the pList definitely works!

I guess Apple doesn't care, right?



 

On 1/30/17, 10:18 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Monday, January 30, 2017 1:58 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Launch URL with LInk Back to LC App

On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> Is there a way to ensure that the "back button" on any device's web 
> app, goes back to the card in the stack from which it was invoked by 
> the "launch ulr" command?

This has to do with the default behavior of LC and the OS it runs on. By
default, LC mobile apps quit when they are not frontmost. The behavior after
that depends on the OS.

On Android, the LC app will remain in RAM until the OS needs the memory, at
which point it will quit. If the user goes back to the LC app before it has
been removed from memory, the user will return to the place it last left
off. If the app has been removed, it re-launches to its opening screen.

On iOS the app is not retained in RAM, it always quits. Ralph provided the
work-around that allows the app to run in the background. It is not
supported and can fail depending on what the app does. If you use it, test
to make sure it works reliably.

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL with LInk Back to LC App

2017-01-30 Thread J. Landman Gay via use-livecode

On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

Is there a way to ensure that the "back button" on any device's web
app, goes back to the card in the stack from which it was invoked by
the "launch ulr" command?


This has to do with the default behavior of LC and the OS it runs on. By 
default, LC mobile apps quit when they are not frontmost. The behavior 
after that depends on the OS.


On Android, the LC app will remain in RAM until the OS needs the memory, 
at which point it will quit. If the user goes back to the LC app before 
it has been removed from memory, the user will return to the place it 
last left off. If the app has been removed, it re-launches to its 
opening screen.


On iOS the app is not retained in RAM, it always quits. Ralph provided 
the work-around that allows the app to run in the background. It is not 
supported and can fail depending on what the app does. If you use it, 
test to make sure it works reliably.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR,

This has been described at the ol' "plist hack":
Look at the package contents of the LC.app version your using. Navigate to the 
Contents>Tools>Runtime>iOS folder and set the permissions for write access to 
the "Device-x_x" folders. Then edit the "Settings.plist" files and delete the 2 
lines.. UIApplicationExitsOnSuspend
${APPLICATION_EXITS_ON_SUSPEND}

Rebuild your app. The app will only close if you "Quit" it by LC script or the 
app window is not displayed and iOS needs the memory (although I have never had 
the latter happen)

Hope this helps...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Sannyasin Brahmanathaswami via use-livecode
Sent: Sunday, January 29, 2017 10:24 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Launch URL with LInk Back to LC App

Use case is: multiple apps and the local  mobile browser, all in a navigable 
ecosystem on small devices.

on iOS, you can make an app that does this

1) Open to home screen
2) go to card "Virtual Tours"
3) click on "Gardens"
4) go to another card name "gardens" (just an example)
5) click a button that has a script like

On  mouseup
launch url http://www.kauai-botanical-gardens.com
end mouseup

Ok build, load and run on the iPhone…

if you click through in the app to card gardens and click on the link and it 
takes you to Safari on iPHone and Chrome on Android.

in iOS you will get a small "< MyApp" in the upper left corner of Safari. 
Android of course has it's default back button.

on iOS if you click that button  "http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

RE: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR,

This has been described at the ol' "plist hack":
Look at the package contents of the LC.app version your using. Navigate to the 
Contents>Tools>Runtime>iOS folder and set the permissions for write access to 
the "Device-x_x" folders. Then edit the "Settings.plist" files in those folders 
and delete the 2 lines.. UIApplicationExitsOnSuspend
${APPLICATION_EXITS_ON_SUSPEND}

Rebuild your app. The app will only close if you "Quit" it by LC script or the 
app window is not displayed and iOS needs the memory (although I have never had 
the latter happen)

Hope this helps...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Sannyasin Brahmanathaswami via use-livecode
Sent: Sunday, January 29, 2017 10:24 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Launch URL with Link Back to LC App

Use case is: multiple apps and the local  mobile browser, all in a navigable 
ecosystem on small devices.

on iOS, you can make an app that does this

1) Open to home screen
2) go to card "Virtual Tours"
3) click on "Gardens"
4) go to another card name "gardens" (just an example)
5) click a button that has a script like

On  mouseup
launch url http://www.kauai-botanical-gardens.com
end mouseup

Ok build, load and run on the iPhone…

if you click through in the app to card gardens and click on the link and it 
takes you to Safari on iPHone and Chrome on Android.

in iOS you will get a small "< MyApp" in the upper left corner of Safari. 
Android of course has it's default back button.

on iOS if you click that button  "http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Launch URL with LInk Back to LC App

2017-01-29 Thread Sannyasin Brahmanathaswami via use-livecode
Use case is: multiple apps and the local  mobile browser, all in a navigable 
ecosystem on small devices.

on iOS, you can make an app that does this

1) Open to home screen
2) go to card "Virtual Tours"
3) click on "Gardens"
4) go to another card name "gardens" (just an example)
5) click a button that has a script like

On  mouseup
launch url http://www.kauai-botanical-gardens.com
end mouseup

Ok build, load and run on the iPhone…

if you click through in the app to card gardens and click on the link and it 
takes you to Safari on iPHone and Chrome on Android.

in iOS you will get a small "< MyApp" in the upper left corner of Safari. 
Android of course has it's default back button.

on iOS if you click that button  "http://lists.runrev.com/mailman/listinfo/use-livecode