dipanda
dipanda

Reputation: 790

Cordova wp8 app not initializing in Windows Phone 8/8.1 Emulator

I am developing a Cordova app that is working fine in both Android and iOS, but there is a problem when running both in Windows Phone 8.0 and 8.1 emulators (I am targeting the wp8 cordova platform).

The app loads to the home page, but in the output window I see the this messages:

CordovaBrowser_LoadCompleted
Apache Cordova native platform version 3.8.2 is starting
Error::Plugin not allowed in config.xml. StatusBar
Error::Plugin not allowed in config.xml. Device
Error::Plugin not allowed in config.xml. NetworkStatus
CordovaBrowser_LoadCompleted
Apache Cordova native platform version 3.8.2 is starting
deviceready has not fired after 5 seconds.
Channel not fired: onCordovaInfoReady
Channel not fired: onCordovaConnectionReady

Every time I interact with the app (scroll, tap on links/buttons, ...), nothing happens in the emulator, and in the output window the following lines appears again:

CordovaBrowser_LoadCompleted
Apache Cordova native platform version 3.8.2 is starting

I am using the emulator because for now I do not have a real device.

UPDATE

After running another time cordova prepare wp8, the errors regarding plugins, deviceready and "Channel not fired" disappeared; however, the app is still not working properly, I still get the CordovaBrowser_LoadCompleted and "Apache Cordova native..." messages every time I try to use the app.

Upvotes: 0

Views: 174

Answers (1)

Santosh Shinde
Santosh Shinde

Reputation: 6053

If you are trying to emulate Windows Phone 8.1, you have to use the windows platform in Cordova/PhoneGap rather than the wp8 platform.

cordova platform rm wp8
cordova platform add windows

More information are available here and here.

Hope this will help you !

Upvotes: 1

Related Questions