[SHOPTIME-3657] My Page / reminder / Off 시 System 팝업은 Off 안됨

수정내용: lunasend method 추가 (notification disable, notification enable)
This commit is contained in:
hyunwoo93.cha
2025-01-23 10:39:17 +09:00
parent 1e782b19e1
commit b77f137ec9
3 changed files with 78 additions and 1 deletions

View File

@@ -388,3 +388,35 @@ export const saveFirstLaunchInfo = ({ onSuccess, onFailure, onComplete }) => {
onComplete,
});
};
export const disableNotification = ({ onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND disableNotification");
return;
}
return new LS2Request().send({
service: "luna://com.webos.notification",
method: "disable",
parameters: {},
onSuccess,
onFailure,
onComplete,
});
};
export const enableNotification = ({ onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND enableNotification");
return;
}
return new LS2Request().send({
service: "luna://com.webos.notification",
method: "enable",
parameters: {},
onSuccess,
onFailure,
onComplete,
});
};