Multi Device Hybrid App for Windows Phone: How to set the logo?

浪尽此生 提交于 2019-12-25 02:25:25

问题


I am trying to figure out, how to set the app logo as well as the splashscreen using the preview for cordova apps (or Multi-Device Hybrid Apps) in Visual Studio 2013. I tried adding

<platform name="wp8">
  <icon src="img/logo.png" width="99" height="99" />
  <!-- tile image -->
  <icon src="img/logo.png" width="159" height="159" />
</platform>

However this won't do the trick. It's a pretty new thing so finding informations on this topic is kind of hard. It was pretty easy, using the old method. Any help is appreciated.


回答1:


Multi-Device Hybrid apps use the Cordova CLI to build for each platform, which provides a fallback by default, so you don't actually need to add a reference in your HTML files.

Instead, to set a logo (I assume you're talking about the icon that shows up in the app drawer), you need to add(or replace) the image in res/icons/wp8/ by following the resolution and naming guidelines mentioned in "Platform-specific Visual Assets" section of the docs.




回答2:


Switch to wp8.1 emulator instead of wp8 emulator.



来源:https://stackoverflow.com/questions/25192991/multi-device-hybrid-app-for-windows-phone-how-to-set-the-logo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!