Software Archive
Read-only legacy content
17061 Discussions

[help] notification alert on intel xdk not working...

Denis_J_
Beginner
291 Views

how to use alert method on intel xdk,.,

1) i try use this script but not working on my real device ( only work on emulate and test intel xdk)

intel.xdk.notification.alert("Hammertime!","STOP","Can\'t Touch This");

2) this script also does not work ( only work on emulate and test intel xdk)

navigator.notification.alert(message, alertCallback, [title], [buttonName]);

 

*note : i have added plugins ( for number 1 --> include plugin --> dialogs (notification) plugin , and for number 2 --> third party plugin --> org.apache.cordova.dialogs )

 

0 Kudos
1 Reply
Swati_S_Intel1
Employee
291 Views

For #1, you need to include the Intel XDK notification plugin (on the right side of Plugins section)

For #2, you can include Notification plugin under Standard Cordova Plugins (on the left side of Plugins section), you don't need to include 3rd party.

0 Kudos
Reply