public void clickVerifyAddress() { Debug.Log("and then"); #if UNITY_IPHONE string passedData = PlayerPrefs.GetString("url_scheme"); if (passedData != null) { PlayerPrefs.DeleteKey("url_scheme"); Debug.Log("url is " + passedData); verifyAddress(passedData); } #endif #if UNITY_ANDROID string query = CustomUrlSchemeAndroid.GetLaunchedUrlQuery(); if (query != null) { Debug.Log("Verifying address?"); verifyAddress(query); } else { Debug.Log("launched query was null"); } #endif }
void OnApplicationPause(bool pauseStatus) { Debug.Log("Application pause?"); if (pauseStatus == false) { Debug.Log("and then"); #if UNITY_IPHONE string passedData = PlayerPrefs.GetString("url_scheme"); if (passedData != null) { PlayerPrefs.DeleteKey("url_scheme"); Debug.Log("url is " + passedData); verifyAddress(passedData); } #endif #if UNITY_ANDROID string query = CustomUrlSchemeAndroid.GetLaunchedUrlQuery(); if (query != null) { Debug.Log("Verifying address?"); verifyAddress(query); } #endif } }