In my app I have been able to share a video link to send to Facebook Messenger using:
string facebookMessengerUrl = "fb-messenger://share?link=" +
uriToShare;
NSUrl facebookUrl = new NSUrl(facebookMessengerUrl);
if (UIApplication.SharedApplication.CanOpenUrl(facebookUrl))
{
UIApplication.SharedApplication.OpenUrl(facebookUrl);
}
Of course, I have also added the following entry "fb-messenger" in "Info.plist", under "LSApplicationQueriesSchemes".
I have added a similar functionality for WhatsApp, Line and Messenger sucessfully; however I cannot send properly the video to the Kik app. The following code opens the Kik app but then I got an "unexpected error" and the video or its url is not shown and I cannot send it to any user.
string kikStr = "kik-share://kik.com/send/video&video_url=" +
uriToShare;
NSUrl kikUrl = new NSUrl(kikStr);
if (UIApplication.SharedApplication.CanOpenUrl(kikUrl))
{
UIApplication.SharedApplication.OpenUrl(kikUrl);
}
Of course, I have also added "kid-share", in Info.plist, in the section LSApplicationQueriesSchemes.
I have tried several variants of the scheme:
"kik-share://kik.com/send/video&video_url="
but without any right result.
The code is C sharp but do not pay attention on this detail (the same wrong result happens using Swift), the main goal is to know the suitable scheme to use; that is:
"kik-share://I_do_not_know"