Complete
over 3 years ago

CA-65849

Fixed

Problem entering negative numbers to settings in GCM (Android & iOS)

I have some app settings which are set as "numeric" type and allow users to enter any number, but there can be difficulty entering a negative number into the setting, specifically in entering the negative sign itself.

1) In GCM Android if you delete the existing value from a numeric setting and start typing a negative number starting with the "-" then it won't let you enter the "-" on its own. First you have to type a number, then move the caret back to the start of the line, and then it lets you enter the "-".

2) I've also recently had a user report the same thing on iOS (I assume GCM but they haven't confirmed it yet). They couldn't enter a negative sign whatever they tried - even trying to insert it before an existing positive number. The only workaround they could find was to copy and paste a negative number into the setting from another app.

  • GCM Android, build version 4.22.1 running on a Honor (Huawei) phone - I have a UTC offset too Slight smile Maybe the difference is related to interaction with the (operating system?) keyboard that pops up to allow text entry? My phone is basically stock with no extra software installed - I just use it for watch settings Slight smile

  • GCM/A or iOS?  Just tried it on GCM/A and it's working fine.  I use negative numbers a lot when it comes to displaying a time zone and UTC offset.

  • I was excited to see this tip Jim as it would make things easier, but unfortunately I just tried it and it doesn't actually work for me. Maybe something got changed to remove the feature? (Although it would be better if it worked as expected anyway!) Or maybe it works differently on different phones?

  • With GCM Andorid, if you want to enter "-7", it can be a bit simpler than what you do.

    when you enter the "-", nothing is shown, but when you enter the "7", you'll see "-7", so no backspacing, etc.