Alarm API not working

const alarmTime = new Date();
alarmTime.setSeconds(alarmTime.getSeconds() + 2);
const alarm = new tizen.AlarmAbsolute(alarmTime);
tizen.alarm.add(alarm, tizen.application.getCurrentApplication();

Getting “Since Tizen 4.0 constructor AlarmAbsolute(Date date, long period) is deprecated, thus period attribute should not be used.” error


Did you find a fix for this or are you still trying to solve this? All I can do is refer you to the Tizen Documentation for Native Alarms or Web Application Alarms but you probably already looked there.

Samsung Developer Relations