diff --git a/Assets/GoogleSignIn/Editor/GoogleSignInDependencies.xml b/Assets/GoogleSignIn/Editor/GoogleSignInDependencies.xml index 625d2e51..5aaffe64 100644 --- a/Assets/GoogleSignIn/Editor/GoogleSignInDependencies.xml +++ b/Assets/GoogleSignIn/Editor/GoogleSignInDependencies.xml @@ -12,7 +12,7 @@ - diff --git a/Assets/GoogleSigninSDK/GoogleSignInManager.cs b/Assets/GoogleSigninSDK/GoogleSignInManager.cs index 9761ad60..d02632f4 100644 --- a/Assets/GoogleSigninSDK/GoogleSignInManager.cs +++ b/Assets/GoogleSigninSDK/GoogleSignInManager.cs @@ -15,7 +15,7 @@ public class GoogleSignInManager : MonoBehaviour public Bootstrapper bootstrapper; public Button googleSignInButton; public Button guestLoginButton; - + void Awake() { configuration = new GoogleSignInConfiguration @@ -26,8 +26,14 @@ public class GoogleSignInManager : MonoBehaviour }; GoogleSignIn.Configuration = configuration; - Application.quitting += SyncPlayerPrefsToPlayFabOnQuit; - OneSignal.Default.Initialize("3ee530aa-8613-485b-9cbd-0263727badc5"); + Application.quitting += SyncPlayerPrefsToPlayFabOnQuit; + string ons_id = ""; +#if UNITY_ANDROID + ons_id = GameConstants.OSN_Android; +#elif UNITY_IOS + ons_id = GameConstants.OSN_iOS; +#endif + OneSignal.Default.Initialize(ons_id); } void Start() diff --git a/Assets/Scripts/Ads Scripts/AdsManager.cs b/Assets/Scripts/Ads Scripts/AdsManager.cs index 301ad928..f1d15de1 100644 --- a/Assets/Scripts/Ads Scripts/AdsManager.cs +++ b/Assets/Scripts/Ads Scripts/AdsManager.cs @@ -9,13 +9,13 @@ public class AdsManager : MonoBehaviour { #if UNITY_ANDROID public string iAdUnit = "ca-app-pub-1518268979235646/3488992980"; -#elif UNITY_IPHONE +#elif UNITY_IOS public string iAdUnit = "ca-app-pub-1518268979235646/3373351338"; #endif #if UNITY_ANDROID public string rAdUnit = "ca-app-pub-1518268979235646/8744418588"; -#elif UNITY_IPHONE +#elif UNITY_IOS public string rAdUnit = "ca-app-pub-1518268979235646/1208328787"; #endif diff --git a/Assets/Scripts/Dev/GameConstants.cs b/Assets/Scripts/Dev/GameConstants.cs index 5a0b6d96..3c74ddc8 100644 --- a/Assets/Scripts/Dev/GameConstants.cs +++ b/Assets/Scripts/Dev/GameConstants.cs @@ -11,6 +11,9 @@ public class GameConstants public static string PlayfabTitleId = "168AE2"; public static string PrivacyPolicyPrefKey = "PrivacyPolicy"; public static string PrivacyPolicyLink = "https://rizze.io/eula"; + public static string OSN_Android = "3ee530aa-8613-485b-9cbd-0263727badc5"; + public static string OSN_iOS = "aabdcf42-77ef-47c3-83f7-c97a1af87a5f"; + public static string AndroidURL = "https://play.google.com/store/apps/details?id=com.rizze.pipuzzle&hl=en-US&ah=gfIMAf3ZQA42PzRKpRnkmyC0Sek&pli=1";