Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No flag change in Cordova application on Android #187

Closed
jmail22 opened this issue Mar 18, 2015 · 15 comments
Closed

No flag change in Cordova application on Android #187

jmail22 opened this issue Mar 18, 2015 · 15 comments

Comments

@jmail22
Copy link

jmail22 commented Mar 18, 2015

Hi

I've got a problem with input field on Android. When I go through Android web browser to the demo it works as it is expected, but when I include that field in the hybrid application - Apache Cordova application - when I input international phone format +48600000000 then the flag doesn't change.

It works perfectly on other platforms: iOS, Windows Phone, Blackberry 10

Can you please advise me?

J

@jackocnr
Copy link
Owner

What device are you on? Which version of Android? Old Android browser, or Chrome? Which version?

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Samsung Galaxy Note3 - Android 4.4.2 as well as Android 5

Chrome 40.0.2214.109
JavaScript V8 3.30.33.16

@jackocnr
Copy link
Owner

Are you setup for remote debugging with Chrome dev tools? https://developer.chrome.com/devtools/docs/remote-debugging#debugging-webviews

Do you see any javascript errors?

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Yes - I have made the setup - no JavaScript errors have occured

@jackocnr
Copy link
Owner

Are you familiar with Chrome dev tools? Could you put a breakpoint on this line in the keypress handler and step through (step into _handleInputKey, then into setNumber, then into _updateFlagFromNumber) and try to figure out why the flag is not updating?

Also: are you using the utils script? (can you see the placeholder/are you getting formatting?).

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Yes I am familiar with Chrome tools. I will follow your instructions tommorow (it is middle of the night in Poland) and let you know what have I found.

@jackocnr
Copy link
Owner

Thanks dude. BTW I found this: https://issues.apache.org/jira/browse/CB-7503

I suspect the keypress event isn't firing.

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Yes you are right - I have just checked on Android 4.1.2 (which is not infected by this bug) and it works.

@jackocnr
Copy link
Owner

For the record, some notes on this bug:

Present in Android 4.4.2, 4.4.4, L
Not present in 4.1.2
Present with software keyboard
Not present with hardware (i.e. bluetooth) keyboard
Fixed with Chromium M38

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Why that was closed?

@jackocnr
Copy link
Owner

I updated the browser compatibility section of the readme to link to this issue. This is not a bug with this plugin.

@jmail22
Copy link
Author

jmail22 commented Mar 18, 2015

Ah right - thanks

@jackocnr
Copy link
Owner

Go to bed!
On 17 Mar 2015 7:55 pm, "jmail22" notifications@github.com wrote:

Ah right - thanks


Reply to this email directly or view it on GitHub
#187 (comment)
.

@manjoker
Copy link

manjoker commented Jul 7, 2016

Hi, i have new problem with windows phone 10, when i type a phone number i have always double digit
on windows pc, mac, safari, samsung, iphone i don't have this problem but this arrive only on windows phone 10 on windows phone 8 don't have this problem.

thank for your help.

@jackocnr
Copy link
Owner

jackocnr commented Jul 7, 2016

@manjoker please open a new issue for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants