initWebSDK static method
Implementation
static void initWebSDK(String fcmPath) {
try{
html.Element? head = html.document.querySelector('head');
html.ScriptElement script = html.ScriptElement();
script.defer = true;
script.src = "https://sdk.rsut.io/handlers/web.sdk";
script.setAttribute('fcm_service_path', fcmPath.toString());
head?.append(script);
setupCustomEventListener(fcmPath);
}catch(e){
debugPrint("$e");
}
}