0
我仍然工作在我的第一離子的應用程序,並再次我堅持了一個問題:離子+源碼的瀏覽器,但類型錯誤的工作真實設備
我的應用程序使用SQLite來存儲數據。我使用ngCordova的sqlite插件和litehelpers的cordova-sqlite-storage插件。
如果我用'ionic serve --lab'測試應用程序,一切正常。沒有錯誤,數據庫是存在的,數據是確定...
但是,如果我去測試它的Android設備「離子運行的Android -l -c -s」我收到以下錯誤,並且應用程序上凍結:
0 779681 error TypeError: Cannot read property 'transaction' of undefined
at Object.execute (http://192.168.1.14:8100/lib/ngCordova/dist/ng-cordova.js:6872:11)
at new <anonymous> (http://192.168.1.14:8100/js/controllers.js:284:18)
at Object.instantiate (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:18010:14)
at $controller (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:23412:28)
at self.appendViewElement (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:59900:24)
at Object.switcher.render (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:57893:41)
at Object.switcher.init (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:57813:20)
at self.render (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:59759:14)
at self.register (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:59717:10)
at updateView (http://192.168.1.14:8100/lib/ionic/js/ionic.bundle.js:65398:23)
我的應用程序有4頁,並與ui路由器一起使用。每個頁面都有自己的控制器。
我正在尋找並嘗試兩週後,但沒有機會...
任何提示?
謝謝, 基督徒。