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 {
....
}
};
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?