[SHOPTIME-3657] My Page / reminder / Off 시 System 팝업은 Off 안됨
수정내용: lunasend method 추가 (notification disable, notification enable)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user