[AC-4691] Windows: TabGroup createEventListener for "back" or "windows:back" do not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-01-03T20:51:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | n/a |
Reporter | Mitch Starnes |
Assignee | Shak Hossain |
Created | 2016-12-22T19:34:04.000+0000 |
Updated | 2017-01-03T20:51:00.000+0000 |
Description
I am currently unable to intercept the back button on a Windows Phone when the current window is based on a TabGroup. The back button kills the app.
Documentation: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TabGroup-event-androidback refers to the Windows platform but it doesn't work.
Please add/fix event listening support for TabGroup on the Windows platform.
Hello, Please provide a full sample code to reproduce the issue in our environment. Thanks.
Steps to reproduce:
Build new mobile app based on the "Two-tabbed Alloy Application"
Build and run in a Windows emulator for test purposes
Replace index.js and index.xml with the code shown below.
Build and run and test that tabs still work
Hit the Back button and notice that neither windows:back nor back nor androidback are captured by the listeners in index.js
Hello, Thanks for your query. We have tested your issue on our end on following environment and its working for me. *Testing Environment:* Appcelerator Studio, build: 4.8.0.201611121409 SDK: 6.0.1.GA Appcelerator Command-Line Interface, version 6.0.0 Windows emulator: 8.1 WVGA 4 inch 512MB *Testing Code:*
*Output:* [WARN] : tab2 windows:back [INFO] : Disconnected from app Also showing the alert. Thanks
Still not working for me. Did you follow my instructions to build the project from the "Two-tabbed Alloy Application" sample? If so, our projects should now be identical as I replaced the contents of index.js with this:
I have logging set at TRACE level. I am able to toggle between Tab1 and Tab2 but tapping the hardward back button closes the app with no alert and no WARN output. I am using VS 2015 Community Update 3. How about you?
Is yours an Alloy project? Can I see your index.xml? Can you share your working project in github?
Hello [~mstarnes], Yes, I have tested on Alloy project. I am using VS 2013 Community. I have used your *index.xml* file. *Testing Environment:* Appcelerator Studio, build: 4.8.0.201611121409 SDK: 6.0.1.GA Appcelerator Command-Line Interface, version 6.0.0 Windows emulator: 8.1 WVGA 4 inch 512MB VS 2013 Community Thanks