You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Window.wakeuptimer.wakeup (successCallback,
ErrorCallback,
// the list of alarms to set
{
Alarms: [{
Type: 'onetime',
Time: {hour: 14, minute: 30}
Extra: {message: 'json containing app-specific information to be posted when alarm triggers'},
Message: 'Alarm has expired!'
}]
}
);
Always returns me in Callback: unhandled type
Being that I define the callback
Var successCallback = function (result) {
If (result.type === 'wakeup') {
.....
} Else if (result.type === 'set') {
....
} Else {
....
}
};
Can someone help me understand the problem?
The text was updated successfully, but these errors were encountered:
I created an application using example code:
Window.wakeuptimer.wakeup (successCallback,
ErrorCallback,
// the list of alarms to set
{
Alarms: [{
Type: 'onetime',
Time: {hour: 14, minute: 30}
Extra: {message: 'json containing app-specific information to be posted when alarm triggers'},
Message: 'Alarm has expired!'
}]
}
);
Always returns me in Callback: unhandled type
Being that I define the callback
Var successCallback = function (result) {
If (result.type === 'wakeup') {
.....
} Else if (result.type === 'set') {
....
} Else {
....
}
};
Can someone help me understand the problem?
The text was updated successfully, but these errors were encountered: