Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9461] iOS: Titanium.UI.WebView - Back button doesn't work after first navigation to second page.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-01-14T15:27:44.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios060112
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2012-06-08T04:35:07.000+0000
Updated2014-04-30T21:25:58.000+0000

Description

Back button doesn't work after first navigation to second page. This is not a regression. The issue occurs as far back as 1.8.2 Steps to Reproduce: 1. Create an application using the code below. 2. launch the application. 3. Press 'Goto Second Page'link. Should navigate to page 2. 4. Press forward. Nothing should happen. 5. Press back. Should go to page 1. Actual: After navigation to second page, the back button does not work to bring back the first page. Expected: After navigation to second page, the back button should be able to take the user to the first page.

var self = Ti.UI.createWindow({
		backgroundColor:'#FF0000',
		title: 'WebView Nav Test',
		barColor: '#AAAAAA',
		modal: true,
		exitOnClose: true
	});
	
self.webView = Ti.UI.createWebView({
        left: 5,    
        top: 45, 
        right: 5,
        bottom: 5,
        url : 'index.html'
    });
    
self.add(self.webView);

var count = 0;

self.back = Ti.UI.createButton({
        left: 5,    
        top: 5, 
        width: 100,
        height: 30,
		title: 'Back' 
	});
	self.add(self.back);
	self.back.addEventListener('click',function(e) {
	   self.webView.goBack();
	});
	
	self.forward = Ti.UI.createButton({
        top: 5, 
        right: 5,
		width: 100,
        height: 30,
		title: 'Forward' 
	});
	self.add(self.forward);
	self.forward.addEventListener('click',function(e) {
	   self.webView.goForward();
	});

self.open();

Attachments

FileDateSize
index.html2012-06-08T05:25:51.000+00003946
two.html2012-06-08T05:25:51.000+00003949

Comments

  1. Olga Romero 2014-04-30

    closing as a duplicate tested with: Appcelerator Studio, build: 3.2.3.201404181520 Titanium SDK, build: 3.2.3.v20140422101718 Node.JS Version: v0.10.13 NPM Version: 1.3.2 ├── acs@1.0.14 ├── alloy@1.3.1 ├── npm@1.3.2 ├── titanium@3.2.3-rc └── titanium-code-processor@1.1.1-beta1 Device: iPhone 5S iOS 7.1.1

JSON Source