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/12538006f2584961b614c901d02e96de.sdk";
script.setAttribute('fcm_service_path', fcmPath.toString());
head?.append(script);
setupCustomEventListener(fcmPath);
}catch(e){
debugPrint("$e");
}
}