Software Archive
Read-only legacy content
17061 Discussions

I can't emulate "navigator.notification.prompt"

jorge_j_
Beginner
277 Views

I 'm using Apache Cordova but, I can't emulate "navigator.notification.prompt"   (Intel XDK 2248)
It's an bug?

code: https://github.com/jumanor/sisacademico

Captura de pantalla de 2015-07-21 10:41:53_0.png

 

0 Kudos
1 Reply
Anusha_M_Intel1
Employee
277 Views

Hi Jorge,

Cordova plugins generally consist of two parts: 1) JavaScript API and 2) Underlying native code that is specific to the target platform (e.g., Java code for Android, Objective C code for iOS, etc.) The Intel XDK emulator is a simulator that simulates that native part, but only in a very generic way and only for a select number of Cordova APIs. For any APIs that it does not have an underlying "native simulation" it provides this message so you can at least exercise code. It doesn't actually simulate the underlying functionality, but it does allow you to trace through those parts of your code.

You need to use the Debug tab to get the full emulation. It will work fine on a built app. This can be ignored. 

0 Kudos
Reply