I know how to set up a parental gate to keep a child user away from a web portal for parents or guardians. But is it even OK with Apple (or just in general) to open a browser from inside a kids app?
I can think of two ways to do this:
-
Launch a browser with
UIApplication.shared.open().
This takes the user (presumably an adult) out of the app. Will Apple object to this? -
Use an in-app browser with
WKWebView.
(Wrapped inUIViewRepresentable
because I'm using SwiftUI.)
Option 2 has some problems with Google SSO, which is a requirement for me. Some details in stackoverflow 2016 and stackoverflow 2019 and gitHub. I can't figure out how to apply the solutions in those posts to the SwiftUI architecture or even the UIViewRepresentable.