0

Good afternoon. I`m using mvvmCross 5.2.0 and Xamarin.

I am trying to pass three parameters through a link and when opening my App, treat them in a Model, however I am not able to find how, by AppDelegate, I call a Model passing the parameters.

Link:

valdemar://?token=1234&name=Rafael

AppDelegate:

public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation)
        {
            ...
            //How to get the parameters and pass to the Model?

        }
  • It is simple to get the parameters , but what' the meaning by `passing to the model`? You mean create a global variable(Model class) in Appdelegate? – ColeX Sep 18 '17 at 07:29
  • @ColeXia I need to use these two parameters in a Model. When I get them from the link in the AppDelegate, I need to pass those parameters there to the Model and there manage to work with them. For example: In the AppDelegate, I would receive a user and password through the link, and would pass to my LoginModel to log in. – Rafael Barbosa Sep 18 '17 at 11:53
  • https://stackoverflow.com/questions/25660904/open-viewmodel-from-appdelegate maybe helpful – ColeX Sep 19 '17 at 05:58
  • @ColeXia Hi my friend, I used the information from this link, see what you think, please https://stackoverflow.com/questions/23970246/getting-the-url-of-a-file-my-app-is-opening-via-openurl – Rafael Barbosa Sep 19 '17 at 12:38
  • `Notification` is helpful ,have you solved your problem? – ColeX Sep 20 '17 at 02:04
  • Yes my friend @ColeXia. – Rafael Barbosa Sep 20 '17 at 12:51

0 Answers0