cordova-plugin-inappbrowser
cordova-plugin-inappbrowser copied to clipboard
Closed the inAppbrowser the screen is stuck on IOS ionic 4
Bug Report
Problem
What is expected to happen?
When closing the inAppBrowser the screen will not stuck on ios ionic 4 after foreground the app.
What does actually happen?
After closed the inAppBrowser into the app the screen is stuck and cannot be click/touch
Information
- Open the app
- Open the inAppBrowser
- after open the inAppBrowser go to background process while open the inAppBrowser
- Look around the home screen on the mobile and back to the app
- It will appear the opened inAppBrowser and closed it.
- The screen will be stuck up and cannot be touched.
Command or Code
Using this code that reproduce the issue browser = cordova.InAppBrowser.open( param, '_blank', 'location=no,presentationstyle=popup,minimizeenabled=yes,closeenabled=yes,prompt=yes,headerbg=002345,haslinks=yes' );
browser.addEventListener('message', (event) => { if (event.data.route.indexOf('back') !== -1) { let strRoute: string = event.data.route; browser.removeEventListener('exit', () => { // This is intentional }); // Removes mycare:/ string from event.data.route let pathRoute: string = ''; pathRoute = strRoute.substr(8); if (pathRoute.toLowerCase().indexOf('back') !== -1) { browser.close(); } else { browser.close(); this.router.navigate([this.router.url]); } } });
Environment, Platform, Device
"dependencies": { "@agm/core": "^3.0.0-beta.0", "@angular/common": "~10.0.0", "@angular/core": "~10.0.0", "@angular/forms": "~10.0.0", "@angular/platform-browser": "~10.0.0", "@angular/platform-browser-dynamic": "~10.0.0", "@angular/router": "~10.0.0", "@awesome-cordova-plugins/camera": "^5.39.1", "@awesome-cordova-plugins/core": "^5.39.1", "@ionic-native/android-permissions": "^5.31.1", "@ionic-native/core": "^5.31.1", "@ionic-native/deeplinks": "^5.30.0", "@ionic-native/file": "^5.31.1", "@ionic-native/file-transfer": "^5.31.1", "@ionic-native/geolocation": "^5.30.0", "@ionic-native/google-analytics": "^5.31.1", "@ionic-native/google-maps": "^5.5.0", "@ionic-native/in-app-browser": "^5.30.0", "@ionic-native/native-geocoder": "^5.30.0", "@ionic-native/native-storage": "^5.31.1", "@ionic-native/preview-any-file": "^5.36.0", "@ionic-native/splash-screen": "^5.0.0", "@ionic-native/status-bar": "^5.0.0", "@ionic/angular": "^5.0.0", "@ionic/storage": "^2.3.1", "@ngx-translate/core": "^13.0.0", "@ngx-translate/http-loader": "^6.0.0", "@types/hammerjs": "^2.0.38", "cordova-browser": "6.0.0", "forcejs": "file:lib/forcejs", "hammerjs": "^2.0.8", "idlejs": "^3.0.0", "ionic-pullup": "^5.0.0-beta.3", "lottie-web": "^5.7.6", "moment": "^2.29.1", "ngx-autosize": "^1.8.4", "ngx-lottie": "^6.4.0", "rxjs": "~6.5.5", "shelljs": "^0.7.0", "ts-md5": "^1.2.7", "tslib": "^2.0.0", "zone.js": "~0.10.3" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1000.0", "@angular/cli": "~10.0.5", "@angular/compiler": "~10.0.0", "@angular/compiler-cli": "~10.0.0", "@angular/language-service": "~10.0.0", "@havesource/cordova-plugin-push": "^1.0.0", "@ionic/angular-toolkit": "^2.3.0", "@types/googlemaps": "^3.39.12", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "codelyzer": "^6.0.0", "cordova-android": "^8.1.0", "cordova-androidx-build": "^1.0.4", "cordova-ios": "^5.1.1", "cordova-plugin-add-swift-support": "^2.0.2", "cordova-plugin-android-permissions": "^1.1.2", "cordova-plugin-androidx": "^3.0.0", "cordova-plugin-androidx-adapter": "^1.1.3", "cordova-plugin-camera": "^4.1.0", "cordova-plugin-cocoapod-support": "^1.6.2", "cordova-plugin-device": "^2.0.2", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-google-analytics": "^1.9.0", "cordova-plugin-googlemaps": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps", "cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git", "cordova-plugin-inappbrowser": "^4.1.0", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-nativegeocoder": "^3.4.1", "cordova-plugin-nativestorage": "^2.3.2", "cordova-plugin-preview-any-file": "^0.2.9", "cordova-plugin-splashscreen": "5.0.2", "cordova-plugin-statusbar": "2.4.2", "cordova-plugin-whitelist": "^1.2.0", "cordova-plugin-wkwebview-engine": "git+https://github.com/apache/cordova-plugin-wkwebview-engine.git", "cordova-sqlite-storage": "^5.1.0", "cordova-support-google-services": "^1.4.1", "ionic-plugin-deeplinks": "^1.0.20", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.0.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~3.3.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "SalesforceMobileSDK-CordovaPlugin": "git+https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin.git#v8.3.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~3.9.5" },
Version information
ionic 4 angular 10 IOS 15.5
Checklist
- [ ] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above