P
P
paulvales2016-07-03 11:20:40
Google
paulvales, 2016-07-03 11:20:40

How to enable PUSH notifications in IntelXDK?

Greetings! I am making a hybrid application using intel xdk, I managed to connect the camera, but there is a problem with push notifications. Connected phonegap-push-plugin, connected to google apis. Created a project in google apis. Gives an error (below)

document.addEventListener("deviceready", function(){
   var push = PushNotification.init({
      android: {
        senderID: "xxxxxxxx"
    }
});
   PushNotification.hasPermission(function(data) {/* ошибка PushNotification.hasPermission is not a function*/
    if (data.isEnabled) {
        console.log('isEnabled');
    }
});
  })

I used the instruction: https://github.com/phonegap/phonegap-plugin-push/b...
There is also an instruction for intelxdk: https://github.com/phonegap/phonegap-plugin-push/b... but I don't understand it either.
What is the problem or are there any other ways to create push notifications with intelxdk?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question