Created
October 14, 2022 12:23
-
-
Save furkanaydgn/4582cb4eaf12c6ac42a740f2a05d10ed to your computer and use it in GitHub Desktop.
checkEnvironmentReady
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checkEnvironmentReady = async () => { | |
try { | |
let message = await HMSInAppPurchases.isEnvReady(true); | |
console.log(message); | |
let sandbox = await HMSInAppPurchases.isSandboxActivated(); | |
console.log(sandbox); | |
getProductsInformation(); | |
// alert("Success(HMSInAppPurchases.isEnvReady):" + JSON.stringify(message, null, 4)); | |
} catch (errMsg) { | |
console.log(errMsg); | |
alert("Error(HMSInAppPurchases.isEnvReady): " + errMsg + + JSON.stringify(errMsg, null, 4)); | |
checkEnvironmentReady(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment