I have added <preference name="windows-target-version" value="10.0" /> to my config but when i do ionic run windows i get the following errors
MSBuild v4.0 is not supported, aborting.
Error: AppPackages doesn’t exists
update: i can confirm that i can deploy to my phone and machine with vs2017 rc so the issue must be with ionic than my device or machine accepting uwp apps
did both of those commands, and removed the manual line in config.xml, however the ionic platform add windows did not add anything to the config file, it does however add windows dir under platforms.
Also i have visual studio 2017 rc installed with latest update and as mentioned i managed to do a dummy app in vs and it works fine (uwp app)
I am facing a lot of problems for my application in Windows Phone 10. I am almost grinding my hair, this is driving me crazy. I looked at Ionic because it is a multiplatform framework “Develop once and deliver it in IOS, Android and Windows”. It does not really work that well. When you find a problem, you try to find information about it and it is very difficult to find something about it. Only IOS and Android are served with information.
I agree that in a market where Android 64%, IOS 32% and Windows (mobile) 1.5%, many will not give much attention to this platform.
My problem goes like this:
With the same code I already have an app in the Android Store posted.
I added <preference name = "windows-target-version" value = "10.0" /> in xml
I added ionic platform add windows.
I opened the project in Visual studio community 2017 RC ,.
I clicked on preview EVERYTHING WORKS A WONDER, PERFECT.
The problem starts from here.
I already have reservation of app name in Store Windows. So just link through the visual studio with your app in the store. This is very simple and quick to do.
But, when giving preview: the app opens and after the splash screen the screen turns white.
Has anyone ever experienced this?
Anyone successfully in Windows build, could you share your experience in the process steps?
Sorry zoinky if you invaded your post, but would like to strengthen discussions on Windows, which seems to be a long way from the community.
Facing a lot of problems yet you only mention 1 problem.
Have you tried to debug the app or did you just build it ? It looks like all you’ve done is added one line of XML and 1 CL line.
Faced with a lot of problems. This is a joke as I can explain, Brazilian thing. I will remove it from the post so it is not misunderstood. Disregard.
Before link app with the name reservation in the store, the debug runs like a marvel. After that the body tag is empty. I’m far from the project at the moment, but then I’ll see what’s on the console.
But thanks for the attention.
Sorry for pointing it out it seemed like you either had more problems and I wanted you to mention them if so.
When you get access to the project, download the apache tools for VS and try to debug via VS itself. The link I sent should help get it set up. The normal debug tools might not show cordova specific errors but I could be wrong.
@zoinky I was also facing this problem and I just found the solution.
After Creating ionic project with --v2, I ran the command ionic serve.
Then I added these preferences in config.xml
(sorry Preferences are not showing here because of this editor ,but its same as you mentioned in your comment. just add one more Preference with name=“windows-phone-target-version” value=“10.0”).
@Farhad_87 You say it s running fine now? I have managed to get it to work in the phone etc aswell. But i am facing other problems on win 10 phone, such as choppy / defect page transition animations, log response times ( + 1 sek ) when pressing a button etc. Do you have the same problem?
@A1development Page Transitions are same as in the other Platforms.
I have not applied any functionality yet, but I hope it will work fine now. May be , its because of the device you are using. Test it on some other device. Hope it will work.
@A1development After applying a little bit functionality in my app I’m also facing slow performance issue in my app (Like Clicking a button or a list item). I think its the Platform issue. I’m using Nokia Lumia 650. This Link is giving a little bit info on how to Optimize our app under Before Packaging your app.
I haven’t tried it yet but I will, if I find it helpful , I will let you know.