Exemple #1
0
 public void OnClick()
 {
     if (!string.IsNullOrEmpty(firebaseDynamicLink))
     {
         SGAppLauncher.LaunchURL(firebaseDynamicLink);
     }
 }
    public void TranslationURL_OnClick()
    {
        if (string.IsNullOrEmpty(SGAppLauncher.defaultMessage))
        {
            return;
        }

        string url = SGStorage.GetGenericPref(keyURL, defaultURL);

        SGAppLauncher.LaunchURL(url);
    }
    public void TranslationApp_OnClick()
    {
        if (string.IsNullOrEmpty(SGAppLauncher.defaultMessage))
        {
            return;
        }

        string url   = SGStorage.GetGenericPref(keyURL, defaultURL);
        string appID = "";

#if UNITY_EDITOR
        appID = SGStorage.GetGenericPref(keyApp, defaultAndroidBundleID);
#elif UNITY_ANDROID
        appID = SGStorage.GetGenericPref(keyApp, defaultAndroidBundleID);
#endif
        SGAppLauncher.LaunchApp(appID, url);
    }