Issue with App Store Overlay: “Get the full app” Banner

904 views Asked by At

I am trying to present the “Get the full app” banner in the App Clip, the code was working fine, but after updating to Xcode 12.1 doesn't happen anything!. Did Apple change anything?

@objc func displayOverlay() {
    guard let scene = view.window?.windowScene else { return }
    let config = SKOverlay.AppConfiguration(appIdentifier: "TREXAC", position: .bottom)
    let overlay = SKOverlay(configuration: config)
    overlay.present(in: scene)
    print("heey banner")
}

enter image description here

any help would be appreciated.

1

There are 1 answers

1
Liaz Kamper On BEST ANSWER

You should be using AppClipConfiguration instead of AppConfiguration

guard let scene = view.window?.windowScene else { return }
let config = SKOverlay.AppClipConfiguration(position: .bottom)
let overlay = SKOverlay(configuration: config)
overlay.delegate = self
overlay.present(in: scene)