Universal linking-User click on link and open app-In iOS App will not redirected to ParticularPage

Once User Click on link

In AppDelegate.cs.

below method called :
public override bool WillContinueUserActivity(UIApplication application, string userActivityType)
{
Console.WriteLine("UserActivity will continued");

        LoadApplication(new App("1819-099747", from: "iOS"));
        return true;
    }

But getting error

System.InvalidCastException: Specified cast is not valid.
at CumminsCARE.Mobile.iOS.AppDelegate.WillContinueUserActivity (UIKit.UIApplication application, System.String userActivityType) [0x0000c] in
Mobile.iOS/AppDelegate.cs:180
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.11/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.11/src/Xamarin.iOS/UIKit/UIApplication.cs:63

Best Answer

Answers

Sign In or Register to comment.