mobilePickDate doesn't work on some iphones

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
per_bodelius
Posts: 17
Joined: Mon Mar 19, 2018 11:25 pm

mobilePickDate doesn't work on some iphones

Post by per_bodelius » Thu Apr 30, 2020 12:04 pm

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?

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 695
Joined: Fri Feb 06, 2015 4:03 pm

Re: mobilePickDate doesn't work on some iphones

Post by LiveCode_Panos » Thu Apr 30, 2020 7:20 pm

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
--

per_bodelius
Posts: 17
Joined: Mon Mar 19, 2018 11:25 pm

Re: mobilePickDate doesn't work on some iphones

Post by per_bodelius » Thu Apr 30, 2020 11:10 pm

Aaah _Panos!
You're an angel!
That really solved the problem. :D
Thank you very much for the advice!

Best regards
Per Bodelius

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5679
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePickDate doesn't work on some iphones

Post by jacque » Sat May 02, 2020 7:33 am

@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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 12083
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: mobilePickDate doesn't work on some iphones

Post by Klaus » Sun May 03, 2020 6:19 pm

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. :D

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 695
Joined: Fri Feb 06, 2015 4:03 pm

Re: mobilePickDate doesn't work on some iphones

Post by LiveCode_Panos » Sun May 03, 2020 8:03 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5679
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePickDate doesn't work on some iphones

Post by jacque » Sun May 03, 2020 8:26 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 695
Joined: Fri Feb 06, 2015 4:03 pm

Re: mobilePickDate doesn't work on some iphones

Post by LiveCode_Panos » 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.

Kind regards,
Panos

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5679
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePickDate doesn't work on some iphones

Post by jacque » Mon May 04, 2020 5:14 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “iOS Deployment”