ionic-team / ionic-team/ionic-cli

Livereload halts geolocation

未關閉
#2,597 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
needs investigation
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

_From @arapocket on August 2, 2017 2:47_

**Ionic version:** (check one with "x")
[ ] **1.x** (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] **2.x**
[x] **3.x**

**I'm submitting a ...** (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

**Current behavior:**

- Position gets watched when i do a fresh run of the app using
`ionic cordova run ios --device -l -c`

- When I make changes to my code (in this case just saving) app rebuilds but device does not ask me to allow location tracking, thus breaking the geolocation.

**Other information:**

- Device only asks for allowing location when I restart my device
Edit: Restarting the device doesn't help either. Deleting the app and rebuilding it works.
Edit 2: Deleting the app doesn't even work now!!!
Edit 3: Ran the command again and it worked, but now watchposition is not working properly.
**When installing the app without livereload everything works fine.**

- nothing happening in the console to indicate an error

_Copied from original issue: ionic-team/ionic#12542_

貢獻指南

開啟貢獻指南

研究方向

Reproduce the issue with `ionic cordova run ios --device -l -c`, then inspect the Ionic CLI live-reload flow and how it affects the iOS app after a rebuild. Done means geolocation permission and `watchPosition` continue working after code changes, as they do without livereload.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
ios, typescript
領域
cli, mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。