Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

WebviewExt throws an critical error on loading a URL after device updated to iOS 17 in existing app running well on previous iOS versions #145

Open
eighteight opened this issue Sep 20, 2023 · 2 comments

Comments

@eighteight
Copy link
Contributor

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

  • iOS
  • iOS 17
  • device iphone 12 Pro, iphone 13, iphone 10 and likely more

Please, provide the following version numbers that your issue occurs with:

  • CLI: 8.5.3
  • iOS: 15.0
  • nodejs: v18.17.1
  • tns-core-modules: └── (empty)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
  • Plugin(s):
  • "dependencies": {
    "@angular/animations": "^14.0.0",
    "@angular/common": "^14.0.0",
    "@angular/compiler": "^14.0.0",
    "@angular/core": "^14.0.0",
    "@angular/forms": "^14.0.0",
    "@angular/platform-browser": "^14.0.0",
    "@angular/platform-browser-dynamic": "^14.0.0",
    "@angular/router": "^14.0.0",
    "@finanzritter/nativescript-share-file": "^2.1.0",
    "@jufab/opentelemetry-angular-interceptor": "1.3.0",
    "@jufab/opentelemetry-angular-webpack-interceptor": "^0.11.0",
    "@nativescript-community/text": "^1.3.10",
    "@nativescript-community/ui-pulltorefresh": "^2.5.1",
    "@nativescript-community/ui-webview": "^1.4.9",
    "@nativescript/angular": "^14.0.0",
    "@nativescript/appversion": "^2.0.0",
    "@nativescript/core": "~8.5.0",
    "@nativescript/fingerprint-auth": "^8.1.0",
    "@nativescript/firebase": "^11.1.3",
    "@nativescript/local-notifications": "^6.0.0",
    "@nativescript/localize": "^5.0.4",
    "@nativescript/theme": "~2.3.0",
    "@nota/nativescript-webview-ext": "^8.0.2",
    "@opentelemetry/api": "^1.2.0",
    "@opentelemetry/sdk-trace-base": "^1.7.0",
    "@opentelemetry/tracing": "^0.24.0",
    "@triniwiz/nativescript-downloader": "^3.0.1",
    "@types/node": "~10.12.18",
    "constants-browserify": "^1.0.0",
    "flatted": "^3.2.6",
    "html-webpack-plugin": "^5.5.0",
    "jwt-decode": "^3.1.2",
    "libphonenumber-js": "^1.9.18",
    "module": "^1.2.5",
    "nativescript-exit": "^1.0.1",
    "nativescript-gif": "^5.0.0",
    "nativescript-masked-text-field": "^4.0.3",
    "nativescript-numeric-keyboard": "^5.0.0",
    "nativescript-plugin-universal-links": "https://github.com/tralves/nativescript-plugin-universal-links/raw/master/dist/nativescript-plugin-universal-links.tar.gz",
    "ngx-cookie-service": "~14.0.0",
    "node-polyfill-webpack-plugin": "^2.0.1",
    "os-browserify": "^0.3.0",
    "path-browserify": "^1.0.1",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~7.6.0",
    "tty": "^1.0.1",
    "url-id-replace": "^1.0.1",
    "url-parse": "^1.5.10",
    "util": "^0.12.5",
    "zone.js": "~0.13.0"
    },
    "devDependencies": {
    "@angular-devkit/build-angular": "^14.2.10",
    "@angular/cli": "^14.2.10",
    "@angular/compiler-cli": "^14.2.12",
    "@nativescript/android": "~8.4.0",
    "@nativescript/ios": "~8.4.1",
    "@nativescript/types": "~8.4.0",
    "@nativescript/webpack": "^5.0.9",
    "@ngtools/webpack": "~14.1.0",
    "@opentelemetry/context-zone-peer-dep": "^1.7.0",
    "@opentelemetry/core": "^1.7.0",
    "@opentelemetry/exporter-jaeger": "^1.7.0",
    "@opentelemetry/exporter-trace-otlp-http": "^0.29.2",
    "@opentelemetry/exporter-zipkin": "^1.7.0",
    "@opentelemetry/instrumentation": "^0.29.2",
    "@opentelemetry/instrumentation-document-load": "^0.28.0",
    "@opentelemetry/instrumentation-fetch": "^0.29.1",
    "@opentelemetry/instrumentation-xml-http-request": "^0.29.1",
    "@opentelemetry/propagator-aws-xray": "^1.1.0",
    "@opentelemetry/propagator-b3": "^1.7.0",
    "@opentelemetry/propagator-jaeger": "^1.7.0",
    "@opentelemetry/resources": "^1.7.0",
    "@opentelemetry/sdk-trace-web": "^1.7.0",
    "@opentelemetry/semantic-conventions": "^1.7.0",
    "@types/chai": "^4.1.7",
    "@types/mocha": "^5.2.7",
    "@types/node": "~10.12.18",
    "chai": "^4.1.2",
    "chai-as-promised": "~7.1.1",
    "colors": "^1.1.2",
    "mocha-junit-reporter": "^1.18.0",
    "mocha-multi": "^1.0.1",
    "mochawesome": "^7.1.3",
    "nativescript-dev-appium": "^1.0.0",
    "sass": "~1.49.9",
    "tslib": "^1.7.1",
    "typescript": "~4.8.4",
    "wd": "^1.4.0"
    },

Please, tell us how to recreate the issue in as much detail as possible.

Try to load a url in webviewext
await this.webviewExt.loadUrl(url);

Is there any code involved?

no

If there is JavaScript code invalued inside the webview, this needs to be provided with the project.
no

@miladfm
Copy link

miladfm commented Nov 8, 2023

Same issue.
Did you find any solution?

@eighteight
Copy link
Contributor Author

@miladfm My webpage contains service workers (it is a PWA). For ios versions 17 and above, I am disabling service workers on my web front, and then this error goes away. Not ideal, but as a temporary solution ok.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants