Problem with windows phone 10


#1

Hello Ionic-Team,
before of all, great great framework!!! I love it.
I’m on Windows 10 64bit and I’ve installed all necessary stuff (node, ionic,… visual studio 2015 with SDK 10…)
I want to add my Android/Ios Ionic application to Windows phone 10 platform.
I’m able to build my app for windows (ionic build windows).
If I execute “ionic run windows” the app runs fine in my windows 10 desktop computer.
How can I deploy my app on windows phone emulator or on physical device connected through usb?
I tried to send the compiled application .appx (compiled in debug) to my windows 10 phone (by email) and (after enabled developer mode) I tryed to install it.
The installation succeeded but when I try to run the app it will automatically close after 1 second.
How can I debug the app to check If there are some exception?
I tried also to load the .sln (created by ionic build) in visual studio 2015 but I’ve got some errors.
Can you help me please??

this is my package.json

 {
   "name": "MyApp",
   "version": "1.1.1",
  "description": "An Ionic project",
  "dependencies": {
    "gulp": "^3.5.6",
    "gulp-sass": "^2.0.4",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0"
  },
  "devDependencies": {
    "bower": "^1.3.3",
    "gulp-util": "^2.2.14",
    "shelljs": "^0.3.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard",
    "phonegap-plugin-push"
  ],
  "cordovaPlatforms": [
    "android",
    "ios",
    {
      "platform": "windows",
      "version": "https://aka.ms/cordova-win10",
      "locator": "windows@https://aka.ms/cordova-win10"
    }
  ]
}

If I miss some information please let me know!
thanks you a lot!!!


#2

did you run your app in a windows 10 mobile? i want to run my app on my windows 10 mobile device but i dont know how …


#3

You need to add below lines in your config.xml.
<preference name="windows-target-version" value="10.0"/> <preference name="windows-phone-target-version" value="10.0"/>.
Once done, open Visual Studio 2015 ( community edition will be good enough ) and follow the steps below.

  1. File -> New -> Project From Existing Code
  2. Select the type of Project as Cordova.

Now you can choose to deploy/debug the project as Android / Windows 10 mobile.


#4

Yes! what wrote jagansai is right. That was what I did!