Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4696

iOS: Cannot retrieve property value set in tiapp.xml using Ti.App.Properties API

    Details

      Description

      We cannot retrieve the property value set in tiapp.xml using Ti.App.properties API even though it is documented in the WIKI.
      http://wiki.appcelerator.org/display/guides/tiapp.xml+and+timodule.xml+Reference#tiapp.xmlandtimodule.xmlReference-Applicationproperties

      Step1: Copy the following code in app.js

      'app.js'

      Titanium.UI.setBackgroundColor('white');
       
      var win = Titanium.UI.createWindow();
      alert(Ti.App.Properties.getString("appstate"));
      win.open();
      

      Step2: Add the following line to tiapp.xml
      <property name="appstate" type="string">DEV</property>
      Step3: Run the app, and you can see the alert message is null.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srahim Sabil Rahim
                Reporter:
                anagesh Anirudh Nagesh
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-3997
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code