[AC-92] Window Focus event Fire some times fire and some times it doesn't. Even app get hangs up and next window is not opening.
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-11T02:46:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | Window, bug, eventlistener, fires, focus, problem |
Reporter | MoizChhatriwala |
Assignee | Mostafizur Rahman |
Created | 2015-04-20T10:55:11.000+0000 |
Updated | 2015-11-11T02:46:24.000+0000 |
Description
My application was running good with titanium sdk 3.4.0, but after updating the titanium SDK 3.5.1 and Titanium SDK 4.0 Beta, both version I am facing the same problem.
Focus event some time fire for the window and some time it doesn't, I has created the application with JS pattern using Ti.UI.current window object and that application is created 1.5 years before, I always make the app compatible to the newer sdk which gets launch up.
But with current sdk app is completely get disturbed and has lots of bugs, only because of the problem that window Focus event doesn't fire properly, due to this window get hangs up.
I have created the sample application which can exactly reproduce this issue.
Request for the appcelerator team to take this issue very seriously.
Step To reproduce the issue:
Run the application on iOS
1. Click on Open Blue Window.
2.Alert dialog will appear, click on Confirm.
3. Second window In blue color will get open.
4. On second window on top right navigation bar click on "Open third window"
5. On 3 window with pink color will get open, click on "Close pink window"
Now when you go back to second window, second window focus will not fire, and then you navigate to first window, first window focus will not fire.
Even the application will get hang, all the buttons will stop working and even next window doesn't get opens up on click of "open click window.
Attachments
Hello Could you please provide us test case regarding this issue? Thanks
Step To reproduce the issue: 1. Click on Open Blue Window. 2.Alert dialog will appear, click on Confirm. 3. Second window In blue color will get open. 4. On second window on top right navigation bar click on "Open third window" 5. On 3 window with pink color will get open, click on "Close pink window" Now when you go back to second window, second window focus will not fire, and then you navigate to first window, first window focus will not fire. Even the application will get hang, all the buttons will stop working and even next window doesn't get opens up on click of "open click window.
[~moizchhatriwala], the use of "url" property for Ti.UI.window has been deprecated, please create a new test case that replicates this issue without the url property Thanks
Actually the application in which we are facing problem, they are created long time before, if the API is deprecated so it doesn't mean that testing will not be done while upgrading the titanium SDK version. Rather than that if users are reporting the bug then efforts should be made to solve the major issue. Its The titanium appcelerator responsibility to resolve the issues which user are facing due to launch of new SDK version. Secondly to make the platform reliable and trustable for the customer this excuse should not be given, rather than efforts should be made in resolving the issues which are reported by the user. No platform can become best if they do not here about the users of that platform. Last point, its titanium responsibility to test the same bug using common.js pattern of code, to insure the Quality Assurance of the titanium product. Hope from your end that bug will be solved soon from your end. Regards, Moiz
[~moizchhatriwala] Of course we are responsible to fix bugs in the platform, mobile is a dynamic world and as Apple or Android, with every new release there are new API's and some deprecated API's, our responsibility is to let our users know through the docs, and the responsibility of the developers is to maintain their code, and adapt it with new releases, this is the same in all the platforms and also in all the frameworks, if an API has been deprecated it's going to stop to work and you as developer need to modify your code and adapt it to the new API's. So, if you can create a test case with non deprecated API's that can replicate this issue I would be happy to escalate this to our engineering team for a fix. Best
Hello [~moizchhatriwala], Using CommonJS Method, I have tested the below project. Its working as expected. Window focus event is working. As URL property is deprecated in Ti.UI.window, i modified your demo project in CommonJS method. Please follow this coding pattern for future development.
app.js
WindowTwo.js
WindowThree.js
WindowFour.js
nav.js
Hope this helps, Thanks.