DefinedNet / mobile_nebula

Brings nebula to mobile devices (iOS, Android)
https://defined.net
125 stars 37 forks source link

Nebula IP address for static host cannot be input on iPhone #105

Closed th closed 1 year ago

th commented 1 year ago

On iPhone the field for the Nebula IP address in "New Statix Host" opens the wrong input keyboard: only digits 0 through 9 and the comma are there.

The public IP field a bit further down opens the correct full keyboard.

The issue does not exist on iPad.

johnmaguire commented 1 year ago

Hi @th - are you able to provide a screenshot of the wrong keyboard? An iOS version may be helpful too.

The relevant code is here: https://github.com/DefinedNet/mobile_nebula/blob/master/lib/components/IPField.dart#L41

The intent is to open a numeric keyboard that contains a period. Is the problem that the period is missing? I believe one code path calls this with ipOnly and the other does not... however, we pass decimal: true so I'd expect the period to show up.

Potential solution: https://stackoverflow.com/a/74752820/242129

alexio79 commented 1 year ago

Same issue here. I'm attaching a screenshot with wrong keyboard.

IMG_3C1769447001-1

nbrownus commented 1 year ago

@alexio79 can you share what your device locale is and which version of mobile nebula you are running?

th commented 1 year ago

In my case it's a German region setting and it looks like @alexio79's screenshot.

alexio79 commented 1 year ago

@nbrownus I'm currently running 0.2.0-66 app version based on 1.6.2 Nebula version. The region is Italy.

zenithbb commented 1 year ago

@th workaround: you can change iPhone number format and restart, then you can input dot(.), but after restart, the public key will be changed , so you need sign it again