static void AddGetSocialUrlSchemeToPlist(PlistDocument plistInfoFile)
        {
            const string CFBundleURLTypes   = "CFBundleURLTypes";
            const string CFBundleURLSchemes = "CFBundleURLSchemes";

            if (!plistInfoFile.ContainsKey(CFBundleURLTypes))
            {
                plistInfoFile.root.CreateArray(CFBundleURLTypes);
            }

            var cFBundleURLTypesElem = plistInfoFile.root.values[CFBundleURLTypes] as PlistElementArray;

            var getSocialUrlSchemesArray = new PlistElementArray();

            getSocialUrlSchemesArray.AddString(string.Format("getsocial-{0}", GetSocialSettings.AppId));

            if (cFBundleURLTypesElem != null)
            {
                var getSocialSchemeElem = cFBundleURLTypesElem.AddDict();
                getSocialSchemeElem.values[CFBundleURLSchemes] = getSocialUrlSchemesArray;
            }
        }
        public static void ConfigurePushNotifications(PlistDocument entitlements)
        {
            // Push Environment
            if (!GetSocialSettings.IsIosPushEnabled)
            {
                return;
            }

            // read current value
            var currentPushSettings = entitlements.ContainsKey("aps-environment")
                ? entitlements.root["aps-environment"].AsString()
                : null;

            if (currentPushSettings != null && !GetSocialSettings.IosPushEnvironment.Equals(currentPushSettings))
            {
                // show warning
                Debug.LogWarning("[GetSocial] Push notification settings are different, check the settings in the GetSocial Dashboard at http://dashboard.getsocial.im .");
            }
            if (currentPushSettings == null)
            {
                entitlements.root.SetString("aps-environment", GetSocialSettings.IosPushEnvironment);
            }
        }