input type="number" on samsung phones have no decimal point

5,499 views
Skip to first unread message

Mateusz Mucha

unread,
Sep 3, 2013, 8:04:14 AM9/3/13
to phon...@googlegroups.com
Hi,

My app ( https://play.google.com/store/apps/details?id=info.percentagecalculator ) relies on <input type="number" /> fields.  It's generally very well received (went up to 4.78 on Google Play after several hundreds ratings), but in the recent months I've been receiving more and more (negative) comments from Samsung users - it looks like their Android doesn't have a decimal point (a dot) on the numeric keyboard.

I've searched the net about the issue and haven't found anything helpful (mostly users advising other users to install some 3rd party keyboard, which does nothing for me). 

Does anyone have any idea how to solve this issue from developer's perspective?  I can't tell my users to install a different keyboard... .

Feel free to test http://codepen.io/muszek/details/hmxcl on Samsung S4, or S4 mini (I don't really know the range of affected devices/Android versions).  I don't think I've ever heard about the issue from non-Samsung users.

Please help, my app is hurting and I'm seriously considering switching to Titanium :-(

--
kind regards,
Mateusz Mucha

Horst

unread,
Sep 3, 2013, 1:20:45 PM9/3/13
to phon...@googlegroups.com
Hello Mateusz,

i have no solution, but a warning. In germany we use the "," instead of a decimal point. I had some issues with different android devices, that on the numeric keypad is only the ".", also when used with german localisation. So no decimal values can be entered.

I have no solution. I use the full keyboard instead.

best regards
Horst

Mateusz Mucha

unread,
Sep 3, 2013, 1:32:41 PM9/3/13
to phon...@googlegroups.com
Horst,

I talked to a co-worker and he led me to an idea - I might simply add a period button in the bottom-right corner of my "page" (and somehow explain to my users why it's there and let them disable it in options).

I was thinking about somehow preventing the regular keyboard from popping out and writing my own, but I feel like it's an overkill to solve such a "small" problem.

As for the ","/"." issue, we also use "," in Poland... it's not a problem, I just assume people are smart enough to figure out that they need to use the period character.  Similarly, I've had (considerably more) complaints from Korean users who would like to separate every third zero with a comma (1,000,000).


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/_fECheD-Src/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
kind regards,
Mateusz Mucha

Leonardo Martínez

unread,
Aug 28, 2014, 4:11:26 PM8/28/14
to phon...@googlegroups.com
Hi Mateusz,

I found the same here. Did you add some kind of button for the dot? What did you finally do?

Mateusz Mucha

unread,
Aug 28, 2014, 4:15:39 PM8/28/14
to phon...@googlegroups.com
Leonardo,

I made my own js keyboard. No inputs, but spans. https://play.google.com/store/apps/details?id=info.percentagecalculator . Not ideal, but at least I'm not spammed because of Samsung's screwup.


For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
Mateusz Mucha
mus...@gmail.com

Leonardo Martínez

unread,
Aug 28, 2014, 4:47:06 PM8/28/14
to phon...@googlegroups.com
Ok... It's kind of weird how the Chrome browser adds a point to the "same" keyboard but the cordova app doesn't. I tried to run a simple html app on my Galaxy Tab Pro and I can see the dot there, on Chrome, but not on my Cordova app. 

Does that make any sense to you?

Nice app BTW.

Mateusz Mucha

unread,
Aug 28, 2014, 4:49:14 PM8/28/14
to phon...@googlegroups.com
Thanks.  Is it input type="number" in both cases?

Leonardo Martínez

unread,
Aug 28, 2014, 4:50:42 PM8/28/14
to phon...@googlegroups.com
Yes, it's the same:

<input type="number" id="RightOutput" value="0" size="4"/> dB

Is not that weird?

Mateusz Mucha

unread,
Aug 28, 2014, 4:53:59 PM8/28/14
to phon...@googlegroups.com
Yes, it is. 

Leonardo Martínez

unread,
Aug 28, 2014, 4:55:33 PM8/28/14
to phon...@googlegroups.com
What should I do? haha... I guess it should be the same. I am on Android 4.4.2...

Mateusz Mucha

unread,
Aug 28, 2014, 4:59:26 PM8/28/14
to phon...@googlegroups.com
So Samsung didn't solve this bug in Kit Kat?  I stopped looking for a workaround a long time ago. I made my own keyboard.  It doesn't work as good as the native one, but at least looks "native" to my app.

Leonardo Martínez

unread,
Aug 28, 2014, 5:01:30 PM8/28/14
to phon...@googlegroups.com
It's working on Chrome but not in the Cordova app. I wouldn't blame Samsung...

Mateusz Mucha

unread,
Aug 28, 2014, 5:04:52 PM8/28/14
to phon...@googlegroups.com
I've seen dozens of reports. Not a single one from device not made by Samsung.  Perhaps Chrome does some workaround?  How's the Android browser or other browsers?

Leonardo Martínez

unread,
Aug 28, 2014, 5:06:32 PM8/28/14
to phon...@googlegroups.com
The Android browser is Chrome right now... Haven't you heard about Chromium?

Mateusz Mucha

unread,
Aug 28, 2014, 5:12:20 PM8/28/14
to phon...@googlegroups.com
I meant "the browser that used to be the default before Chrome".  If you don't have it, how about some other browsers?  Firefox, Dolphin, Opera... .

Diego La Monica

unread,
Aug 28, 2014, 5:16:40 PM8/28/14
to phon...@googlegroups.com
Am I wrong or Phonegap and Chrome for Android does not share the same WebView Object? 

AFAIK the native Browser has the same WebView used by Phone Gap. So, using the native browser is this weird behavior still there?


You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
--
Diego La Monica
Web Solution Developer
Software, Web, Standard, Accessibility
IWA Member #0279702
W3C Protocols and Formats Working Group member for IWA/HWG
Web Skill Profiles WG Member (http://skillprofiles.eu )

Email: m...@diegolamonica.info
Skype: diego.la.monica
Twitter: @jast
Mobile: +393337235382
Web: http://diegolamonica.info

Mateusz Mucha

unread,
Aug 28, 2014, 5:19:39 PM8/28/14
to phon...@googlegroups.com
AFAIR webview got refreshed from some ancient version of webkit to a fairly recent one in kit kat, but it's still lags behind Chrome.

Leonardo Martínez

unread,
Aug 28, 2014, 5:20:47 PM8/28/14
to phon...@googlegroups.com
They do from KitKat. I could be wrong...

These are my results:

In Firefox, and Dolphin, the dot appears and a dash in the same place, you can choose both of them.
Chrome: just the dot appears there.
Opera: The dot doesn't appear...

I could imagine that both Chrome and Cordova app should behave in the same way...
Reply all
Reply to author
Forward
0 new messages