Software Archive
Read-only legacy content
17060 討論

Notification alert

zipsoft_z_
初學者
1,473 檢視

Hi,

I am trying to do this:

intel.xdk.notification.alert("Hammertime!","STOP","Touch This");

but get 'intel' is not defind (W117) ...

Where am I wrong?

 

0 積分
3 回應
Ad
新貢獻者 III
1,473 檢視

You can configure the jshint errors you get by putting the jshint directives directly in your code (at the top of the page). See this thread: https://software.intel.com/en-us/forums/intel-xdk/topic/560196

I'm not sure, but I think the Intel notification plugin is deprecated, at least not listed in the plugin Manager anymore, it's better to use the Core Cordova Notification Plugin. And remember: this will not work in the emulator! (neither the intel notification plugin)

 

John_H_Intel2
員工
1,473 檢視

Make sure you enable the correct plugin in the Project settings for the plugins that you are trying to access.

PaulF_IntelCorp
1,473 檢視

I recommend you use the Cordova notification plugin, not the obsolete intel.xdk plugin.

回覆