ANN: *** targetSdkVersion requirements Android ***

Mark Waddingham mark at livecode.com
Sat Jul 28 01:12:34 CEST 2018


Because before you can have a cross platform anything (which is tied to specific OS features) you need the things to call which perform the appropriate action on the individual platforms.

The patterns for 'getting user consent' on android and iOS are similar (because they are both about 'getting user consent') but not identical.

The immediate issue is android so we implement that now.

It may or may not be useful on iOS - that is yet to be determined.

If it is then we add iphoneRequestPermission...

And then mobileRequestPermission can be an LCS handler which maps whatever universal permission groups exist from universal names to platform specific names.

The bit which must be in a lower level language at present goes in the engine - the bit which doesn't need to be, goes in LCS.

Platform dependent stuff has to be done from the bottom up to have any chance of being correct (essentially) - and it's better to expose the lower level features that build cross platform support and build the cross platform aspect in a language where iteration to get it right is far far easier (i.e. LCS). [ And, indeed more accessible to anyone who knows LCS ].

Warmest Regards,

Mark.

P.S. Given that requesting user permissions is a UI interaction the overhead of LCS here is entirely irrelevant.

Sent from my iPhone

> On 27 Jul 2018, at 23:55, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
>> On 07/27/2018 09:13 AM, Mark Waddingham via use-livecode wrote:
>> 
>> P.S. We could look into doing something similar with iOS with regards explicitly
>> being able to ask for permission for things - in a similar way proposed above. If
>> people feel there is a need for it, please file an enhancement request and we'll
>> see what we can do. (At the moment we propose to add an androidRequestPermission
>> command - but we could add an iphone one too at some point, and then perhaps a
>> cross-platform one which tries to do its best to map the permission groups on android
>> to the similar things on iOS).
> 
> Q: Why would it not make sense to add a mobileRequestPermission command instead at this point and have it work on Android now with the option of also having it work on iOS later on? This rather than two different commands and *then* later on make a cross-platform one? If necessary for engine code compartmentalization there could be two non-exported commands for the different platforms and only export the mobile one.
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list