Post

Replies

Boosts

Views

Activity

Using camera app for App Clips
It seems like during development only the dedicated QR scanner app will correctly trigger an App Clip. Does anyone already have production App Clips and can tell, if App Clips also work with the normal Camera app? I couldn't find any documentation stating that this is a restriction. Or will the camera only recognize the special App Clip Codes (for which we still don't an ETA, right?)
4
0
1.1k
Oct ’20
Detect when `history.back()` has been called
We have a PWA that has a button that calls `history.back()`. If I'm already at the root URL `history.back()` doesn't do anything in `WKWebView`, but I also don't get notified either by any of the `WKNavigationDelegate` callbacks.So is there a way to get notified if a website has called `history.back()`?STEPS TO REPRODUCEInitialize `WKWebView` and open my sample URL: https://martindinh.de/apple.html and click the "Go back" button. WKWebView will just stay on the same page without notifying the webview.This is a simple Playground setup://: A UIKit based Playground for presenting user interface import UIKit import PlaygroundSupport import WebKit class MyViewController : UIViewController { let webview: WKWebView = .init() override func loadView() { let view = UIView() view.backgroundColor = .white webview.frame = CGRect(origin: .zero, size: CGSize(width: 300, height: 500)) webview.load(URLRequest(url: URL(string: "https://martindinh.de/apple.html")!)) view.addSubview(webview) self.view = view } } // Present the view controller in the Live View window PlaygroundPage.current.liveView = MyViewController()
0
0
1.4k
Apr ’20