static void CheckAppActions(AndroidIntent intent) { if (intent?.Action == Intent.ActionAppAction) { var appAction = intent.ToAppAction(); if (!string.IsNullOrEmpty(appAction?.Id)) { AppActions.InvokeOnAppAction(Platform.CurrentActivity, appAction); } } }
static void CheckAppActions(AndroidIntent intent) { if (intent?.Action == Intent.ActionAppAction && !intent.GetBooleanExtra(AppActions.extraAppActionHandled, false)) { // prevent launch intent getting handled on activity resume intent.PutExtra(AppActions.extraAppActionHandled, true); var appAction = intent.ToAppAction(); if (!string.IsNullOrEmpty(appAction?.Id)) { AppActions.InvokeOnAppAction(Platform.CurrentActivity, appAction); } } }