Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18959] Swipe right from the edge to go back to close window doesn't work anymore when building with Appc. Studio

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-06-19T01:58:43.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterkosso
AssigneeEric Merriman
Created2015-05-28T22:49:09.000+0000
Updated2017-03-31T22:42:00.000+0000

Description

On Q&A, this issues was reported : *Swipe right from the edge to go back to the previous window doesn't work anymore in iOS (Using SDK 3.5.1.GA and 4.0.0.GA)* [https://community.appcelerator.com/topic/581/swipe-right-from-the-edge-to-go-back-to-the-previous-window-doesn-t-work-anymore-in-ios-using-sdk-3-5-1-ga-and-4-0-0-ga/3] It appears that the same code when built using Appcelerator Studio fails to work as expected on all 3+ SDK versions. But when running the same code on all SDKs using Titanium Studio, it does work. Try his code : aap.js {noformat} /* This creates random coloured windows which create buttons which create random coloured windows which create buttons which... you get the picture ;) : app.js */ function randomColor(){ return '#'+(function lol(m,s,c){return s[m.floor(m.random() * s.length)] + (c && lol(m,s,c-1));})(Math,'0123456789ABCDEF',4); } // Works with Release 3.1.3 and later var rootWin = Ti.UI.createWindow({ backgroundColor:randomColor(), fullscreen:false, barColor:randomColor(), navTintColor:randomColor(), translucent:false }); var b1 = Ti.UI.createButton( { title:'NEW', borderColor:'black', borderWidth:2, width:200, height:60, borderRadius:30, tintColor:'red', backgroundColor:'white' }); b1.addEventListener('click',function(){ navWin.openWindow(buildNewWindow({ backgroundColor:randomColor(), fullscreen:false, barColor:randomColor(), navTintColor:randomColor(), translucent:true })); }); rootWin.add(b1); var navWin = Ti.UI.iOS.createNavigationWindow({window:rootWin}); function buildNewWindow(args){ var _self = Ti.UI.createWindow(args); var btn_new = Ti.UI.createButton( { title:'NEW', top:20, borderColor:'black', borderWidth:2, width:200, height:60, borderRadius:30, tintColor:'red', backgroundColor:'white' }); _self.add(btn_new); btn_new.addEventListener('click', function(){ navWin.openWindow(buildNewWindow({ backgroundColor:randomColor(), fullscreen:false, barColor:randomColor(), navTintColor:randomColor(), translucent:true } ) ); }); var btn_back = Ti.UI.createButton( { title:'< BACK', bottom:40, borderColor:'white', borderWidth:2, width:200, height:60, borderRadius:30, tintColor:'white', backgroundColor:'#333' }); _self.add(btn_back); btn_back.addEventListener('click', function(){ navWin.closeWindow(_self); }); return _self; } navWin.open(); {noformat}

Comments

  1. Ingo Muschenetz 2015-05-28

    Please only assign severity, not priority. Thank you!
  2. kosso 2015-05-28

    Sorry. My bad. New UI. ;) Can't see where to edit either. IMHO, this is critical.
  3. Ingo Muschenetz 2015-05-28

    [~kosso] what happens if you build it from the appc CLI?
  4. kosso 2015-05-28

    How do I go about that? I only upgraded to Appclelerator Studio yesterday. I see a lot of info in the [docs](http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_Command-Line_Interface_Reference-section-43294287_AppceleratorCommand-LineInterfaceReference-iOSBuildOptionsandFlags) but not much in the way of examples.
  5. Ingo Muschenetz 2015-05-28

    Do "appc run"
  6. kosso 2015-05-28

    Hmm.. well clearly there a lot more to it than that if I need it to deploy to a device using the right certificate and profiles etc. (The swipe-to-close behaviour doesn't work on the sim) - I'll look it up. Can I copy and paste the Command line I see when I use studio to build to sim? Did you try my test app.js on a device, using Appcelerator Studio?
  7. Ingo Muschenetz 2015-05-28

    [~kosso] I understand...you can add more flags there. [~cng] can you take a look?
  8. kosso 2015-05-29

    OK. I got this to work to install on the device.: (I left out some of the other flags I saw in the Studio console. appc run --platform iphone --sdk 3.5.1.GA --project-dir /Users/kosso/Documents/Appcelerator_Studio_Workspace/Wi ndowTest --target device --ios-version 8.3 --device-family iphone --device-id abcdefabcefMmydeviceid1234567123456 --pp-uuid myppuuid000-eaaa-1111-1111-111111 Now, I have no idea how this has happened, but it now the swipe to close works!?? And now, even more bizarrely, it works in Appcelerator Studio too. With my old apps, and this test app. w..t... ? Did running it via appc do anything special? Most bizarre. I'm quadruple checking this and other apps/configurations to make sure I'm not going mad. Because now I can't reproduce what I'd thoroughly proved to myself was broken, just before filing this and trying tests.
  9. kosso 2015-05-29

    I've added to [the Q&A thread](https://community.appcelerator.com/topic/581/swipe-right-from-the-edge-to-go-back-to-the-previous-window-doesn-t-work-anymore-in-ios-using-sdk-3-5-1-ga-and-4-0-0-ga/12) to see if this helps the original poster.
  10. Chee Kiat Ng 2015-05-29

    [~kosso], I just created a new mobile app project, chose the classic default, pasted this sample code into app.js and ran on device on appcelerator studio. And it works immediately. So I was't able to reproduce this. Environment: Appcelerator Studio, build: 4.0.1.201505271541 SDK: 4.0.0.beta4 Can you find out how exactly this problem is encountered? Maybe it was derived by other means.
  11. Chee Kiat Ng 2015-06-16

    Will close this as "cannot be reproduced" on Thursday 18th June. Please comment if it can still be reproduced.
  12. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.

JSON Source