Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9357318123 for ; Fri, 25 Sep 2015 06:41:04 +0000 (UTC) Received: (qmail 21524 invoked by uid 500); 25 Sep 2015 06:41:04 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 21493 invoked by uid 500); 25 Sep 2015 06:41:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 21482 invoked by uid 99); 25 Sep 2015 06:41:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 06:41:04 +0000 Date: Fri, 25 Sep 2015 06:41:04 +0000 (UTC) From: "veeraju (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-9705) Cordova - window.history.back() not working on HTML back button in iOS 9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 veeraju created CB-9705: --------------------------- Summary: Cordova - window.history.back() not working on HTML back button in iOS 9 Key: CB-9705 URL: https://issues.apache.org/jira/browse/CB-9705 Project: Apache Cordova Issue Type: Bug Components: CLI, iOS Affects Versions: 3.8.0 Environment: XCODE 7.0 iOS 9 I am getting this issue. Where as prior to iOS 9 versions like iOS 8,iOS 7 and iOS 6 it is working perfectly.Please update me if any alternative for window.history.back() in iOS 9 Reporter: veeraju Fix For: 3.8.0 In my application I am using window.history.back to navigate back to previous View Declaration of back button
Button action: $("#verification_back_icon").on("click", function(e) { if(checkDirtyVacation()) { e.preventDefault(); if(backbtnAlt== false) { backbtnAlt =true; confirm("All data will be lost. Do you want to continue?", function(r){ if(r){ //onBackKeyDown(); clearVacationvalues(); window.history.back();//this is not working in iOS 9 }else{ } backbtnAlt =false; }); } } else { e.preventDefault(); if($(".vaction_location").hasClass("chkSelect")) { $(".vaction_location").removeClass("chkSelect"); $(".vaction_location").addClass("chkUnSelect"); } window.history.back(); } }); This worked perfectly till iOS 8.4. In iOS 9 this navigation is not working. I am using Apache Cordova native platform version 3.8.0 . If anyone facing the similar problem please suggest me. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org