ionic-team / ionic-team/ionic-cli

Livereload halts geolocation

Aberta
#2,597 3 comentários 0 reações 0 responsáveis Ver no GitHub
needs investigation
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

_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_

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
ios, typescript
Domínio
cli, mobile
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.