Ionic / Cordova won't deploy to Windows 10 phone - windows

I have an existing Ionic app that I am trying to test on my Windows 10 mobile phone, but i cannot get Ionic (or Cordova) to deploy to the phone. I have added the Windows platform using ionic platform add windows and then tried to deploy using ionic run windows --device -- --phone --archs="x86" but that results in:
Deploying app package...
Unexpected error from installation:
Error: Not implemented
You may have previously installed the app with an earlier version of cordova-windows.
Ensure the app is uninstalled from the phone and then try to run again.
ERROR: Error: Not implemented
If i do ionic run windows --list to get a list of detected devices i get this:
Available windows devices:
0. Device (device)
Available windows virtual devices:
No devices found matching the specified criteria.
If I try to deploy directly to 0. Device (device) then the app launches on my desktop computer.
Windows itself can "see" my Windows 10 phone and i can browse the contents of it in Windows Explorer.
I have also enabled Developer Mode on the phone so it will load apps from anywhere and I have purchased a Windows Developer License to see if that would help, but it didn't.
Finally, I tried installing the app using the Device Portal feature, but when I try to install it, I get this error:
Failure reason: Failed to start deployment. Failure text: No signature was present in the subject.
(0x800b0100)
Has anyone else been able to deploy an Ionic / Cordova app to a Windows 10 device? If so, how did you set it up?

I had the same issue.
By default the cordova build command produces two packages: Windows 8.1 and Windows Phone 8.1. To upgrade Windows package to version 10 the following configuration setting must be added to configuration file (config.xml).
<preference name="windows-target-version" value="10.0" />
This resolved the issue.

On the Start Menu in Windows type services.msc and start the Windows Phone IP Over Usb service.

Related

Run flutter from vs code to physical phone without Android studio or emulator on windows

I started to Learn flutter toolkit need to run the app on physical phone no need to install emulator or Android studio just I install:
A)Flutter sdk and add to windows path.
B)install vs code to use as editor , just add flutter plugin to it
C) connect my physical Android phone and already work in developer mode.
The problem when I run command
Give me that my phone not connect and when run app using F5 in vs code ask for emulator I don't need that I need physical phone only.
That is flutter doctor I have any body can help me what I need to add to my PC no need Android studio no need to add any emulator.
$ flutter doctor
[√Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft
Windows [Version 10.0.17763.1158], locale ar-SA)
[XAndroid toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android
SDK components.
(or visit https://flutter.dev/setup/#android-setup for
detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[!Android Studio (not installed)
[√ VS Code (version 1.44.2)
[!Connected device
No devices available
Doctor found issues in 3 categories.
You must need android sdk to run flutter app on your android and xcode for running on iphone. Download android sdk and check again.

Cordova windows share app between different devices

Am using cordova to build windows platform. Previously when building for android I would run cordova build android and then find the apk file in the build directory and then I can easily share the file amongst different devices.
When building running cordova build windows I am finding following files in platform/windows/
1.appmanifest.xml
2.cordovaapp.windows.build.appxrecipe
3.resources.pri
How do I get the executable file to install in other devices since when running cordova run windows the application is successifully launched in my computer.
I have also tried running with visual studio and the same results as above are produced.
After running cordova build windows Cordova creates a .appx file in a directory like so:
platforms\windows\AppPackages\AppName.Windows_1.0.0.0_anycpu_debug_Test
where AppName is the name of your app.
APPX is the file format used to distribute and install apps on Windows
8.x and 10, Windows Phone 8.1, Windows 10 Mobile, Xbox One, Hololens, and Windows 10 IoT Core.
References: MSDN and Wikipedia
You can install this .appx file on your PC by doubleclicking it. On a Windows 10 mobile device you can follow a tutorial like this one (just skip the first part on how to create a .appx, as you already have one).

Appcelerator Windows Phone (run, build, liveview)

I've an Alloy app compatible with iOS and android, now I need to make it compatible with Windows Phone, but I've some questions about Windows Phone SDK and Appcelerator for building Windows Phones apps.
The problem is: I've only 2 options to run the app on windows (device or windows phone emulator), there is no local windows option.
So, every time that I wan't to compile and run it, I've to run it on appc terminal:
cd "C:\Users\Ricardo\Documents\Appcelerator\projectTest"
appc run -p windows -T ws-local
There is any short cut for this operation? or this option in the top left run/build/package options?
Also, it would be great to use LiveView with windows phone app development, but isn't compatible yet, right?
Unfortunately,Local Windows build (ws_local) option is missing in the Appcelerator Studio but you can always run directly from the terminal.
Here is the supporting ticket to address this problem - https://jira.appcelerator.org/browse/TISTUD-8502.
Windows liveview is not yet supported - which is scheduled for next version of Studio

Can't build cordova app on windows 7

I went through the whole process to initialize a cordova app from the command line as state on this webpage. I added the windows platform with the command cordova platform add windows, and then tried to build it. But I got an error saying that I may not have the required environment or OS to build this project. I'm not sure what that means or what I should do, this error isn't described on the webpage I've linked.
From the Windows Platform Guide:
This guide shows how to set up your SDK development environment to
build and deploy Cordova apps for Windows 8, Windows 8.1, Windows
Phone 8.1, and Windows 10 Universal App Platform.
There is no mention of Windows 7 which is what you state in your title. Thus the "Windows Platform" may not be supported on that version of Windows. Imagine trying to build a Windows application in Windows 95 today or Windows 98? You likely wouldn't do it as they are too old which is how some may view Windows 7 today as there are a few newer versions out there to support.

Building WP app to phone App didn't start error

We are having an issue building my app in Debug mode to my physical devices, the error is posted below.
The device is dev unlocked and was working, but stopped with no warning. We can still work on the emulator and build in release mode to the device.
We have tried:
•Reassociating it with the Windows Phone store.
•Cleaning the solution.
•Deleting obj and bin folders.
•Rebuilding solutions
•Running VS in admin mode.
•Restarting the system.
Does anyone please have advice on how to resolve this issue as it is hurting our beta testing.
Error:
"Unable to activate Windows Store app 'App Name'. The Process started, but the activation request failed with error 'The app didn't start'"
try to remove the App.config file
If you already have the app installed on device, it will fail when you try to deploy using Visual studio. Is this a Windows Phone 8.1 app or 7.x app?

Resources