adrnsoh / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

iOS port does not return correct values for common properties #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make calls to the following functions:

Display.getInstance().getProperty("Platform", null);
Display.getInstance().getProperty("OS", null);
Display.getInstance().getProperty("IMEI", null);
Display.getInstance().getProperty("MSISDN", null);

2.
3.

What is the expected output? What do you see instead?

It should return the proper value for iOS platform, however it always returns 
the default value passed, which is null in above case. This should be 
implemented in iOS port.

What version of the product are you using? On what operating system?

Public beta version released on March 12, 2012.

Please provide any additional information below.

I am testing this on iPhone 4 device.

Original issue reported on code.google.com by nir...@nvsoft.com on 15 Mar 2012 at 3:45

GoogleCodeExporter commented 9 years ago
Fixed, uploading a new version to the server this should be resolved in 20 
minutes or so.

Original comment by shai.almog on 15 Mar 2012 at 7:54

GoogleCodeExporter commented 9 years ago
Display.getInstance().getProperty("MSISDN", null);

This should return the phone number, however in iOS it returns the UDID. Since, 
iOS does not allow phone number to be queried, I believe this should return the 
default value or null rather then UDID, so that common code which expects phone 
number can check and handle it accordingly.

Original comment by nir...@nvsoft.com on 20 Mar 2012 at 10:55

GoogleCodeExporter commented 9 years ago
Makes sense. I'll restore this to null.

Original comment by shai.almog on 20 Mar 2012 at 12:05