{"action":"created","issue":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/192","repository_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push","labels_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/192/comments","events_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/192/events","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/192","id":168557608,"number":192,"title":"history.back() don't work after add this plugin","user":{"login":"sfnt","id":2188764,"avatar_url":"https://avatars.githubusercontent.com/u/2188764?v=3","gravatar_id":"","url":"https://api.github.com/users/sfnt","html_url":"https://github.com/sfnt","followers_url":"https://api.github.com/users/sfnt/followers","following_url":"https://api.github.com/users/sfnt/following{/other_user}","gists_url":"https://api.github.com/users/sfnt/gists{/gist_id}","starred_url":"https://api.github.com/users/sfnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfnt/subscriptions","organizations_url":"https://api.github.com/users/sfnt/orgs","repos_url":"https://api.github.com/users/sfnt/repos","events_url":"https://api.github.com/users/sfnt/events{/privacy}","received_events_url":"https://api.github.com/users/sfnt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T03:03:37Z","updated_at":"2016-08-01T03:15:36Z","closed_at":null,"body":"hi\r\n\r\nthank you for your great plugin.\r\n\r\nbut I find something maybe a big problem for me maybe because of cordova-hot-code-push-plugin.\r\n\r\nInstalled platforms:\r\n  android 5.2.1\r\n  ios 4.2.0\r\n\r\ncordova-hot-code-push-plugin 1.4.0 \"Hot Code Push Plugin\"\r\ncordova-plugin-device 1.1.2 \"Device\"\r\ncordova-plugin-whitelist 1.2.2 \"Whitelist\"\r\n\r\n\r\nI have 3 pages in my app, A, B and C\r\n\r\nA has a link to B, B has a link to C\r\nB and C have history.back()\r\n\r\nwithout cordova-hot-code-push-plugin those 3 pages work well,\r\nbut when I add cordova-hot-code-push-plugin, B can not back to A, but C can back to B.\r\n\r\nif the page import the cordova.js , history.length =1;\r\n\r\nwhen I remove cordova-hot-code-push-plugin everything works well.\r\n\r\ncould you tell me what was wrong?\r\n\r\nthank you~"},"comment":{"url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/comments/236480558","html_url":"https://github.com/nordnet/cordova-hot-code-push/issues/192#issuecomment-236480558","issue_url":"https://api.github.com/repos/nordnet/cordova-hot-code-push/issues/192","id":236480558,"user":{"login":"sfnt","id":2188764,"avatar_url":"https://avatars.githubusercontent.com/u/2188764?v=3","gravatar_id":"","url":"https://api.github.com/users/sfnt","html_url":"https://github.com/sfnt","followers_url":"https://api.github.com/users/sfnt/followers","following_url":"https://api.github.com/users/sfnt/following{/other_user}","gists_url":"https://api.github.com/users/sfnt/gists{/gist_id}","starred_url":"https://api.github.com/users/sfnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfnt/subscriptions","organizations_url":"https://api.github.com/users/sfnt/orgs","repos_url":"https://api.github.com/users/sfnt/repos","events_url":"https://api.github.com/users/sfnt/events{/privacy}","received_events_url":"https://api.github.com/users/sfnt/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T03:15:36Z","updated_at":"2016-08-01T03:15:36Z","body":"    /**\r\n     * Initialize default callback, received from the web side.\r\n     *\r\n     * @param callback callback to use for events broadcasting\r\n     */\r\n    private void jsInit(CallbackContext callback) {\r\n        jsDefaultCallback = callback;\r\n        dispatchDefaultCallbackStoredResults();\r\n        // Clear web history.\r\n        // In some cases this is necessary, because on the launch we redirect user to the\r\n        // external storage. And if he presses back button - browser will lead him back to\r\n        // assets folder, which we don't want.\r\n        handler.post(new Runnable() {\r\n            @Override\r\n            public void run() {\r\n                webView.clearHistory();\r\n            }\r\n        });\r\n        // fetch update when we are initialized\r\n        if (chcpXmlConfig.isAutoDownloadIsAllowed() &&\r\n                !UpdatesInstaller.isInstalling() && !UpdatesLoader.isExecuting()) {\r\n            fetchUpdate();\r\n        }\r\n    }\r\n\r\nI find the code here, can you add some control , and do let me clear history by myself ?"}}
{"actor":{"display_login":"sfnt"}}