Nativescript app geolication fetch错误?

时间:2018-01-15 13:50:34

标签: geolocation nativescript angular2-nativescript

朋友我对nativescript应用程序很新。我正在尝试创建一个应用程序,

我在获取位置时遇到错误

错误是

ERROR Error: Uncaught (in promise): TypeError: ex.getStatusCode is not a function
JS: TypeError: ex.getStatusCode is not a function
JS:     at file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-geolocation/geolocation.js:156:41
JS:     at ZoneDelegate.invoke (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:365:26)
JS:     at Object.onInvoke (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/@angular/core/bundles/core.umd.js:4132:37)
JS:     at ZoneDelegate.invoke (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:364:32)
JS:     at Zone.run (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:125:43)
JS:     at file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:760:57
JS:     at ZoneDelegate.invokeTask (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:398:31)
JS:     at Object.onInvokeTask (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/@angular/core/bundles/core.umd.js:4123:37)
JS:     at ZoneDelegate.invokeTask (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:397:36)
JS:     at Zone.runTask (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:165:47)
JS:     at drainMicroTaskQueue (file:///data/data/org.nativescript.VivianArmy/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:593:35)

0 个答案:

没有答案