Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function: Callback always returns unhandled type #29

Open
Agencialinkmario opened this issue Aug 22, 2017 · 1 comment
Open

Function: Callback always returns unhandled type #29

Agencialinkmario opened this issue Aug 22, 2017 · 1 comment

Comments

@Agencialinkmario
Copy link

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?

@htsnet
Copy link

htsnet commented Nov 8, 2017

When I try to set an alarm, I receive two messages error:

  • WakeupPlugin erros: invalid json
  • Invalid action
    thru ErrorCallback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants