0
我正在使用我的無連接功能(我的應用程序必須連接到工作)。我檢測到網絡連接並重新導向到一個帶有重試按鈕和好消息的頁面。這在Android上而不是在iOS9使用IONIC在IOS上沒有網絡連接功能問題
if (window.Connection) {
$rootScope.currentState = $state.current.name;
if (navigator.connection.type == Connection.NONE) {
$state.go('internet-error');
} else{
$state.go('login');
}
}
嘗試偉大工程提供一些解決方案是,任何變化對config.xml中需要