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

Using Android shortcut to start new activity fails to detect Alloy.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0, Release 5.1.1
    • Fix Version/s: Release 6.0.0, Release 6.1.0
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 5.1.2.GA 5.2.0.GA
      Android 5.1, 6.0, 4.4

    • Story Points:
      5
    • Sprint:
      2016 Sprint 20 SDK

      Description

      Issue Description

      We have created a sample app that has a button which creates a shortcut. That shortcut is supposed to open "test.js" controller.

      Two scenarios are possible here - an app is already running when the shortcut is pressed or app is being started via shortcut.

      The first scenario works exactly the way we desire.

      In the second scenario, it seems that Alloy that is being loaded is not the same as the one we define. To showcase it we have put a label in test.js controller which is supposed to have a value of "TEST STRING" in the successful scenario.

      Steps to Reproduce:
      1. Run attached sample code.
      2. Press "Hello World" button to create a shortcut.
      3. Pause the app via home button
      4. Click shortcut. Test controller should load and a string with a value of "TEST STRING" is present.
      5. Kill the app
      6. Restart the app via shortcut
      7. Observe empty string
      Expected Behavior*
      • Being able to open different controllers from sample.js and being able to load proper Alloy instance

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                morahman Motiur Rahman
                Reviewer:
                Ashraf Abu (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code