Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:03:03+00:00 2026-05-26T12:03:03+00:00

The documentation says nothing about possible return values. I have looked for the implementation

  • 0

The documentation says nothing about possible return values. I have looked for the implementation in the source code, but I am unable to find it.

I wrote a simple application and ran it in the iPhone Simulator, but no value is shown. The application was created by running rhogen app phone_id. I then added the following line to the app/application.rb file just before the call to super:

@phoneId = System.get_property('phone_id')

Then I added this line to app/index.erb:

<p>Phone id = <span><%= @phoneId %></span></p>

I know that the simulator will return a unique identifier because I wrote an actual iOS application that merely writes the unique identifier to a label with the following bit of code:

[idLabel setText:[[UIDevice currentDevice] uniqueIdentifier]];

Since I don’t know Ruby, and I particularly don’t know Rhodes, I am unsure if the Rhodes test application I wrote is working correctly. So, I don’t know if the call to System.get_property is working as it should or if it should really be returning an identifier.

Thus my question, does System.get_property('phone_id') always return a value? If so, is that value guaranteed to be unique? Or are there cases where the method will return nil?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:03:03+00:00Added an answer on May 26, 2026 at 12:03 pm

    According to messages cb41fb9718773a21 and 0d4ff1aaaaa9e560 on the Rhomobile Google group, this method is not guaranteed to return any value other than nil. Thus you cannot rely on System.get_property('phone_id') to return a unique identifier for your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently implementing Google Analytics into my app. The documentation says nothing about how
Documentation says that waypoints limit is 8 points. But I have to draw a
The Java documentation says: it is not possible for two invocations of synchronized methods
The PHP documentation says the following about the __call() magic method: __call() is triggered
One of the things that the Microsoft documentation says about enabling reliable sessions is
AVFoundation.framework is not where the documentation says it should be. I have iPhone SDK
In the UIViewController documentation about the searchDisplayController property 1 it says: If you create
While, as far as I remember, IEEE 754 says nothing about a flush-to-zero mode
Where can I find documentation on running JavaScript code inside a PDF? I've never
PHP Session related functions have this one: session_module_name . The documentation only says: session_module_name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.