Launching Viber app via URL scheme on iOS

后端 未结 9 1185
野趣味
野趣味 2020-11-30 12:46

I\'m making an iOS app which can open Viber app and automatically call a person or go to chat window with the person. Is there any url scheme for Viber to do that such as:

相关标签:
9条回答
  • 2020-11-30 13:41
    viber://contact?number= mobile number
    

    It will open the particular user contact. Give user to select chat and call.
    it worked for me!

    0 讨论(0)
  • 2020-11-30 13:43

    This works: "viber://chats" or "viber://calls"

    0 讨论(0)
  • 2020-11-30 13:43

    You can check by using

    [[UIApplication sharedApplication] canOpenURL:@"viber://url"];
    

    if Viber app is installed on device, and viber handle this url scheme it will return true otherwise false.

    0 讨论(0)
提交回复
热议问题