LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on initInclusionForStandalone
if the environment = "mobile" then
-- disable InternetInclusion
else
-- enable InternetInclusion
end if
end initInclusionForStandalone
I think you can manipulate the custom property set "cRevStandaloneSettings" before compiling.
A quick test show that without a checked "Internet" inclusion:
the cRevStandaloneSettings["scriptLibraries"] of stack "your standalone here" = EMPTY
Otherwise (Internet checked):
the cRevStandaloneSettings["scriptLibraries"] of stack "your standalone here" = "Internet"
Of course you need to parse the prop, since there may be other inclusions added.
Format of this prop = CR delimited list of inclusions like:
Internet
Printing
etc...
Hello.
Suppose I need to have an inclusion working or not according to the device type? (post compilation)
For example, I would like my standalone to have push notification working on a android cell phone but not on a Tv Box.
Can it be that the only way is to bare with it and, on the TvBox, just ignore the pushNotificationReceived?