[TIMOB-13056] Android: evalJS returns undefined when evaluating function
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-20T05:03:41.000+0000 |
Affected Version/s | Release 3.0.0, Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 Core, 2013 Sprint 06 |
Components | Android |
Labels | SupportTeam, qe-3.1.0 |
Reporter | Eduardo Gomez |
Assignee | Max Stepanov |
Created | 2013-03-14T00:41:34.000+0000 |
Updated | 2014-06-19T12:43:09.000+0000 |
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
PR https://github.com/appcelerator/titanium_mobile/pull/3991
evalJS returns uuid in this case.Working fine, hence closing it. Verified on: Device : Google Nexus 7, Android Version: 4.1 SDK: 3.1.0.v20130409124549 CLI version : 3.1.0-cr OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201304052347 XCode : 4.5.1