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

Android: evalJS returns undefined when evaluating function

    Details

      Description

      Issue

      When we evaluate a function that is to be executed in a WebView via evalJS(), sometimes it returns "undefined". When we execute another WebView JS function, it seems to clear up the issue for a bit, but then the issue returns to the original function.

      steps to reproduce

      1. run the app (sample files attached)
      2. notice the UUID that's being logged to the console
      3. tap [dump html] button
      4. notice the UUID that's being logged to the console
      5. tap [get uuid] button
      6. notice the UUID is undefined (you may have to tap multiple times)
      7. repeat step 3 and 4
      8. repeat step 5 and 6, same issue arises

        Attachments

        1. app.js
          1 kB
        2. jquery-1.9.1.min.jsx
          90 kB
        3. test.html
          0.9 kB

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              egomez Eduardo Gomez (Inactive)
              Reviewer:
              Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration