I am trying to run cordova app on windows 10 iot core.
- hardware info: Raspberry Pi 3B.
- cordova version: 7.0.1
- cordova-windows version: 5.0.0
- build command:
cordova build windows --debug --arch=arm -- --appx=uap
- config.xml:
<preference name="windows-target-version" value="10.0" />
<preference name="WindowsDefaultUriPrefix" value="ms-appx://" />
I use cordova cli to create a new project, which default includes index files, use platform to add windows, and set to arm arch and uap on build. Next, I use device portal to install the appx and cer files that cli generated, then start the app from apps list in dev portal.
The app's status will be running, but the index.html doesn't shown up, unless I remark the cordova.js in index.html. If I reference the cordova.js, the splash screen will keep loading; if I remove the cordova.js, the index.html will show up. In that case, I will not be able to communicate with cordova native code from javascript, it should not be right.
Question is, if I want to develop an headed cordova-based uap app running on windows 10 IoT Core, what am I missing?
NOTE: if I use vs2015 to build the same project for x64 platform, I can install and run the uwp app on my win 10 x64 notebook without any problem.