I want to open viber application. I have a phone number and when user tap button I want to open a suitable chat or just open Viber application.
I already tried all of the version but nothing works for me.
Launching Viber app via URL scheme on iOS
guard let viberURL = URL(string: "viber://chat?number=0123456789") else { return }
if UIApplication.shared.canOpenURL(viberURL) {
UIApplication.shared.open(viberURL, options: [:], completionHandler: nil)
}