private static List <IntentFilter> CreateInstallReferrerIntentFilters()
        {
            var intentFilter = new IntentFilter(false);

            intentFilter.AddChild(new Action("com.android.vending.INSTALL_REFERRER"));

            return(new List <IntentFilter> {
                intentFilter
            });
        }
        private static List <IntentFilter> CreateDeepLinkingIntentFilters()
        {
            var deepLinkIntentFilter = new IntentFilter(false);

            AddBrowsableTags(deepLinkIntentFilter);
            deepLinkIntentFilter.AddChild(new Data("getsocial", GetSocialSettings.AppId));

            var appLinkIntentFilter = new IntentFilter(true);

            AddBrowsableTags(appLinkIntentFilter);
            GetSocialSettings.DeeplinkingDomains.ForEach(domain => appLinkIntentFilter.AddChild(new Data("https", domain)));

            return(new List <IntentFilter>()
            {
                deepLinkIntentFilter, appLinkIntentFilter
            });
        }
 private static void AddBrowsableTags(IntentFilter intentFilter)
 {
     intentFilter.AddChild(new Category("android.intent.category.BROWSABLE"));
     intentFilter.AddChild(new Category("android.intent.category.DEFAULT"));
     intentFilter.AddChild(new Action("android.intent.action.VIEW"));
 }