Step7. Sharing campaign link

    Step7. Sharing campaign link


    Article summary

    Through Shoplive's sharing API, you can easily share the URI Scheme or URL of the broadcast.

    Set the format of shared links

    URI Scheme

    let scheme = "{your host}://{your host}?ak=xxx&ck=yyy"
    ShopLive.setShareScheme(with: scheme, custom: nil)

    URL

    let url = "https://www.share_link.com/?ak=xxx&ck=yyy"
    ShopLive.setShareScheme(with: "https://www.share_link.com/?ak=xxx&ck=yyy", custom: nil)


    Use the default system’s shared UI

    ShopLive.setShareScheme(scheme, custom: nil)


    Use the custom-system’s shared UI

    ShopLive.setShareScheme(scheme, custom: {
        let customShareVC = CustomShareViewController()
        customShareVC.modalPresentationStyle = .overFullScreen
    
        // Create a custom system share UI ViewController and display it on the Shoplive Player screen (viewController).
        ShopLive.viewController?.present(customShareVC, animated: false, completion: nil)
    })

    You can share the link of the currently playing broadcast with others or on social media, encouraging app installation or broadcast viewing with just a click of the link. (However, the app must handle the deeplink separately.)


    What's Next