Closed danielehrhardt closed 3 months ago
Hi @danielehrhardt,
Could you please provide more info like:
Thank you!
Hi @danielehrhardt,
Could you please provide more info like:
- The steps you followed
- The platform you're running the app on that gives you this error message
- Your capacitor & Clarity version
Thank you!
Sure!
declare let ClarityPlugin: any; ClarityPlugin.initialize("-", success, failure, {isIonic: true});
Hello @danielehrhardt,
Currently, android is the only supported platform for ionic, so make sure to move the initialization block inside a similar if condition:
if(Capacitor.getPlatform() === "android") {
// Call Clarity initialize.
ClarityPlugin.initialize("-", success, failure, {isIonic: true});
}
⚡️ WebView loaded
⚡️ ------ STARTUP JS ERROR ------
⚡️ ReferenceError: Can't find variable: ClarityPlugin ⚡️ URL: capacitor://localhost/main-LSHYXVST.js ⚡️ [error] - {} ⚡️ main-LSHYXVST.js:1:71819
⚡️ See above for help with debugging blank-screen issues