...
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. String link = uri.GetQueryParameter("link"); ////This is the messageId String messageId = uri.GetQueryParameter("message_id"); ////This is the eventTrigger only for version 5.0.7 and higher String eventTrigger = uri.GetQueryParameter("event_trigger"); /* Deeplink*/ // Intent newActivity = new Intent(Intent.ActionView); //newActivity.SetData(Android.Net.Uri.Parse(link)); //StartActivity(newActivity); } } } |