Page 1 of 1
mobilePickDate doesn't work on some iphones
Posted: Thu Apr 30, 2020 12:04 pm
by per_bodelius
Hi,
I have developed an app where I use the mobilePickDate function. It works well for all users( both android and iOS) except for one. She uses Iphone 6s and cannot see the calendar at all. She just see the grey field at the bottom of the screen with the [Done] text. Has anyone had the same experience? I have tried the app on my own Iphone 6s with another IOS version but without any problem. It's annoying...
I'm using LC 9.6.0(dp3) & Xcode 11.3
Any ideas?
Re: mobilePickDate doesn't work on some iphones
Posted: Thu Apr 30, 2020 7:20 pm
by LiveCode_Panos
Hello per_bodelius,
Could it be the case she has dark mode enabled? If yes, then you have to rebuild your app with LC 9.6 DP-4, and make sure you check the "app supports dark mode" checkbox in the iOS standalone settings.
Kind regards,
Panos
--
Re: mobilePickDate doesn't work on some iphones
Posted: Thu Apr 30, 2020 11:10 pm
by per_bodelius
Aaah _Panos!
You're an angel!
That really solved the problem.
Thank you very much for the advice!
Best regards
Per Bodelius
Re: mobilePickDate doesn't work on some iphones
Posted: Sat May 02, 2020 7:33 am
by jacque
@Panos: Does enabling the dark mode checkbox also allow LC fields to stay white or do we have to do something else? I need LC fields to retain their original color regardless of the user setting.
Re: mobilePickDate doesn't work on some iphones
Posted: Sun May 03, 2020 6:19 pm
by Klaus
darkmode or not, LC does no change anything!
We can now only check if the user has enabled this OS setting or not and need to take our own actions if neccessary.
At least this is how I understood this new feature.

Re: mobilePickDate doesn't work on some iphones
Posted: Sun May 03, 2020 8:03 pm
by LiveCode_Panos
Hello all,
Indeed, the dark or light mode only changes the appearance of the native objects or dialogs (e.g. the mobilepickdate popup).
But as Klaus said, you can detect if the device is on dark mode and change the appearance of your LC objects by script accordingly.
Kind regards,
Panos
Re: mobilePickDate doesn't work on some iphones
Posted: Sun May 03, 2020 8:26 pm
by jacque
I understood it that way too but I wasn't specific enough. We are using mobileControlCreate to make native input fields so my question was really whether I have to do anything or not. I suspect I don't because a user with dark mode turned on suddenly couldn't see the text when we weren't using that switch (it didn't exist when we built that version of the app.) The field background turned dark but the text stayed black.
Re: mobilePickDate doesn't work on some iphones
Posted: Sun May 03, 2020 9:01 pm
by LiveCode_Panos
Hello jacque,
I forgot to say that if you want to opt out from dark mode, you can just not check the "app supports dark mode" checkbox in the iOS settings. In this case, your app's appearance (native fields etc) will stay the same, regardless of the device's appearance.
Kind regards,
Panos
Re: mobilePickDate doesn't work on some iphones
Posted: Mon May 04, 2020 5:14 pm
by jacque
LiveCode_Panos wrote: ↑Sun May 03, 2020 9:01 pm
Hello jacque,
I forgot to say that if you want to opt out from dark mode, you can just not check the "app supports dark mode" checkbox in the iOS settings. In this case, your app's appearance (native fields etc) will stay the same, regardless of the device's appearance.
Perfect, that's exactly what I needed to know. Thanks Panos.