HomeiOS Developmentios - Webview Common Hyperlink Load URL

ios – Webview Common Hyperlink Load URL


so having a little bit of bother getting a sure use case to work.

I created an app for iOS that makes use of WebView. Every thing works nice, and I used to be in a position to configure Common Hyperlinks efficiently. It prompts to open in app because it ought to.

The issue is the URL path i’ve set to set off the app, doesn’t move by to the app.

So the app opens, but it surely solely opens on the house web page if it hasn’t been opened but, or it opens to the final location it was at.

I consider it has to do with the very fact its webview and it must load the identical URL that triggered it so it will probably go to the trail.

Instance: The URL is https://testapp.com/path

However within the WebView app, it simply goes to https://testapp.com if it hasn’t been opened (Dwelling Web page)

Or to https://testapp.com/lastlocation if it was opened and thats the final spot it was in.

Ive tried setting App Delegate with the under with no luck.

func software(_ software: UIApplication, proceed userActivity: NSUserActivity,
                     restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) ->
                        Bool {
        guard let url = userActivity.webpageURL else{return false}
        guard let part = URLComponents(string: url.absoluteString) else {return false}
        

        return true
    }

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments