问题与离子在android系统6和IOS 9

问题描述:

我有一个跨平台的应用程序离子, 我有离子视图应用视图一些问题,为APK版本问题与离子在android系统6和IOS 9

弗里斯特问题正确运行:我使用的插座.io来检查用户的互联网连接,它始终在IOS 9上失败,虽然它在Android 6和APK版本的离子视图版本上运行良好。

第二个问题:虽然它是Android 6和IOS 9上的不可点击的图标APK版本

<i class="icon ion-ios-download-outline" 
         external-link="result.file.uri"></i> 

external-link是一个指令重定向到链接点击 ,它的工作对于APK版本 有什么帮助吗?

**编辑

externalLink指令代码

angular.module('ivf.directives').directive('externalLink', ExternalLinkDirective); 

function ExternalLinkDirective() { 
    return { 
     restrict: 'A', 
     scope: false, 
     link: function ($scope, $element, $attrs) { 
      $element.click(function ($event) { 
       if ($event.isDefaultPrevented()) return; 

       var link = $scope.$eval($attrs['externalLink']); 
       if (link) { 
        window.open(link, '_system'); 
       } 
      }); 
     } 
    } 
} 
+0

*寻求调试帮助的问题(“为什么不是这个代码工作?”)必须包含所需的行为,特定的问题或错误以及在问题本身中重现问题所需的最短代码* – Selvin

+0

请显示externalLink指令代码 – manzapanza

要检查互联网连接,你可以使用Cordova Plugin Network Information

Example from documentation

function checkConnection() { 
    var networkState = navigator.connection.type; 

    var states = {}; 
    states[Connection.UNKNOWN] = 'Unknown connection'; 
    states[Connection.ETHERNET] = 'Ethernet connection'; 
    states[Connection.WIFI]  = 'WiFi connection'; 
    states[Connection.CELL_2G] = 'Cell 2G connection'; 
    states[Connection.CELL_3G] = 'Cell 3G connection'; 
    states[Connection.CELL_4G] = 'Cell 4G connection'; 
    states[Connection.CELL]  = 'Cell generic connection'; 
    states[Connection.NONE]  = 'No network connection'; 

    alert('Connection type: ' + states[networkState]); 
} 

checkConnection(); 

第二

哪些图标你在说什么?请显示您的代码

+0

检查插入的代码片段 –