Coder Social home page Coder Social logo

Comments (7)

Silureth avatar Silureth commented on June 10, 2024 1

Hi,
Yesterday i faced this problem the solution based on this post is to present SafariViewController from rootView.
So the code part in ts (in angular 15, and ns 8.4)

import { AdvancedWebViewOptions, openAdvancedUrl, NSAdvancedWebViewEventEmitter, AdvancedWebviewEvents } from 'nativescript-advanced-webview';
import { getRootView } from '@nativescript/core/application';

const opts: AdvancedWebViewOptions = {
      url: "<yourURL>",
      showTitle: true,
      toolbarColor: '#336699',
      toolbarControlsColor: '#fff',
      ios: {
        viewController: getRootView().viewController
      }

from nativescript-advanced-webview.

Bezlepkin avatar Bezlepkin commented on June 10, 2024

I have same issue. Works on a fresh install but doesn't work in my app. I have a lot of plugins, I suspect it's the delegate...

from nativescript-advanced-webview.

Bezlepkin avatar Bezlepkin commented on June 10, 2024

2022-03-17_14-50-05

SFSafariViewControllerDelegateImpl.initWithOwnerCallback method is works and that's it. Then the code does not work
@bradmartin

from nativescript-advanced-webview.

bradmartin avatar bradmartin commented on June 10, 2024

@Bezlepkin - what do you mean "that's it"? Removing it or something?

from nativescript-advanced-webview.

Bezlepkin avatar Bezlepkin commented on June 10, 2024

Removing it or something
works out only the method: initWithOwnerCallback (called AdvancedWebviewEvents.LoadStarted)

safariViewControllerDidCompleteInitialLoad method does not work.

from nativescript-advanced-webview.

codemeall avatar codemeall commented on June 10, 2024

Hi, anyone get to resolve the above issue?

from nativescript-advanced-webview.

bradmartin avatar bradmartin commented on June 10, 2024

Good find @Silureth - I'm pushing a bug release of the plugin where the core does the root view controller, but I'll also merge your README PR and add a note that it's not 100% necessary with version x.x.x

from nativescript-advanced-webview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.