Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
protected override void OnCreate(Bundle savedInstanceState)
{
      base.OnCreate(savedInstanceState);
      Xamarin.Essentials.Platform.Init(this, savedInstanceState);
      SetContentView(Resource.Layout.activity_deeplink);


      Android.Net.Uri uri;
      if (this.Intent != null)
      {
          if ("com.appoxee.VIEW_DEEPLINK".Equals(this.Intent.Action))
          {
              uri = this.Intent.Data;
              //Data supplied from the front-end.
              Stringstring link = uri.GetQueryParameter("link");
              //This is the messageId
              Stringstring messageId = uri.GetQueryParameter("message_id");
              //This is the eventTrigger only for version 5.0.7 and higher
              Stringstring eventTrigger = uri.GetQueryParameter("event_trigger");



             /* Deeplink*/ 
             // Intent newActivity = new Intent(Intent.ActionView);
             //newActivity.SetData(Android.Net.Uri.Parse(link));
             //StartActivity(newActivity);

          }
      }

}