的Windows Phone 8应用离子导航问题(混合应用) [英] Windows Phone 8 Ionic app navigation issue(Hybrid Application)

查看:97
本文介绍了的Windows Phone 8应用离子导航问题(混合应用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android和WP8使用离子型为混合型应用程序。它适用于Android平台的罚款,但是当我最近使用这对WP8,它向我展示

I am developing an hybrid app for Android and WP8 using Ionic. It works fine on Android platform but when I recently used this on WP8, its showing me

你需要安装一个应用程序完成这个任务。你想搜索
  对于一个在商店?

"You need to install an app for this task. Would you like to search for one on the Store?"

当我点击一些链接(内部应用程序的链接)。请有谁能够告诉我,为什么发生这种情况。先谢谢了。

When I click on some links (internal app links). Please can anybody tell me why this is happening. Thanks in advance.

推荐答案

问题。在Windows手机由于 MS-APPX IE的问题

Problem In windows phone Due to ms-appx IE problem :

在Windows Phone上使用NG-href和动态的URL在你的应用程序,例如:

When you use ng-href and dynamic url's in your app on Windows Phone, for example:

<a ng-href="#/view/"> click here </a>

您会发现,当你点击链接,你会得到一个消息在AppStore的搜索应用程序?。因为AngularJS不能处理preFIX了Windows Phone的IE是adding.You可以通过添加HTML5他到你的应用程序很容易地解决这个,您会收到此消息。

You will notice that when you click on the url, you get a message "Search for app in appstore?". You receive this message because AngularJS can't handle the prefix that Windows Phone IE is adding.You can resolve this easily by adding an HTML5 him to your app.

    .config([
      '$compileProvider',
      function ($compileProvider)
        $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
        // Angular before v1.2 uses $compileProvider.urlSanitizationWhitelist(...)
      }
    ])

如果本地和放大器;动态图像无法显示的应用程序,然后添加下面与您的app.js

And if local & dynamic images are not showing in app then add following same as your app.js

 $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|content|ghttps?|ms-appx|x-wmapp0):|img\//);

有关详细信息,在这里查 LINK1 ,< A HREF =htt​​p://forum.ionicframework.com/t/image-displaying-issue-with-ng-repeat/3768/9相对=nofollow>链接2 ,的 LINK3 和的 LINK4

For more details to check here link1, link2 ,link3 and link4.

这篇关于的Windows Phone 8应用离子导航问题(混合应用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆