I have local and remote videos. I am implementing video sharing for Instagram, TikTok and other social networks. My application requires support iOS 12+.
For Instagram and TikTok the user should go directly to the selected app with the selected video for sharing from my application.
I am using schemes for Instagram (like "instagram://library?LocalIdentifier=someIdentifier"), UIActivityViewController for other social networks.
But I cannot find something for TikTok. I did not find any API for that. Also I tried to find some special scheme.
May be someone knows that is it possible or not?
UPD.
Tik Tok released iOS SDK.
Unfortunately, my watermarked videos are not allowed for sharing.
My team lead helped me found the only solution.
It is a scheme for opening Tik Tok: snssdk1233://. I didn't found something better.
How you could implement it:
guard let url = URL(string: "snssdk1233://") else { return }
UIApplication.shared.open(url, options: [:], completionHandler: nil)
Also there is a scheme musically://. It does the same as snssdk1233://. (Maybe there is a difference between them)
The official answer is to use the SDK for iOS and Android: https://developers.tiktok.com/doc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With