static void CheckAppActions(AndroidIntent intent)
        {
            if (intent?.Action == Intent.ActionAppAction)
            {
                var appAction = intent.ToAppAction();

                if (!string.IsNullOrEmpty(appAction?.Id))
                {
                    AppActions.InvokeOnAppAction(Platform.CurrentActivity, appAction);
                }
            }
        }
Example #2
0
        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);
                }
            }
        }