Does System.get_property('phone_id') always return a value?

59 views
Skip to first unread message

James Sumners

unread,
Oct 20, 2011, 9:12:02 AM10/20/11
to rhomobile
I posted a more thorough question at [1], but the subject really says
it all. What are the possible return values of System.get_property()?

[1] -- http://stackoverflow.com/questions/7808245/does-system-get-propertyphone-id-always-return-a-value

James Sumners

unread,
Oct 24, 2011, 10:07:45 AM10/24/11
to rhomobile
Surely someone knows the answer to this question?

On Oct 20, 9:12 am, James Sumners <james.sumn...@gmail.com> wrote:
> I posted a more thorough question at [1], but the subject really says
> it all. What are the possible return values of System.get_property()?
>
> [1] --http://stackoverflow.com/questions/7808245/does-system-get-propertyph...

Raúl Alejandro Véjar Llugany

unread,
Oct 24, 2011, 10:09:58 AM10/24/11
to rhom...@googlegroups.com
No, you shouldn't rely on it always returning a value, it depends on the platform though. This has been discussed in the forums before, plus Apple is discontinuing support for phone ID in iOS5


--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.


James Sumners

unread,
Oct 24, 2011, 10:46:37 AM10/24/11
to rhomobile
True, "[[UIDevice currentDevice] uniqueIdentifier]" has been
deprecated as of iOS 5. But other people have resolved that
problem[1].

So what does this method return when it doesn't return a value? How am
I supposed to check if the call "succeeded" or "failed"?

[1] -- https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5

On Oct 24, 10:09 am, Raúl Alejandro Véjar Llugany
<raul.ve...@gmail.com> wrote:
> No, you shouldn't rely on it always returning a value, it depends on the
> platform though. This has been discussed in the forums before, plus Apple is
> discontinuing support for phone ID in iOS5
>

Raúl Alejandro Véjar Llugany

unread,
Oct 24, 2011, 11:05:16 AM10/24/11
to rhom...@googlegroups.com
I also noticed the Titanium guys supporting it from within the frameworl as well, so yes, it can be solved, I'm just saying that right now Rhodes doesn't and it seems the different vendors are discouraging the use of something like that.
 
My undestanding is that it returns nil, as with every other missing property when using System.get_property

James Sumners

unread,
Oct 24, 2011, 11:15:08 AM10/24/11
to rhomobile
Thank you. I wish the documentation would actually state that.

On Oct 24, 11:05 am, Raúl Alejandro Véjar Llugany
Reply all
Reply to author
Forward
0 new messages