[ 
https://issues.apache.org/jira/browse/CB-11433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15554679#comment-15554679
 ] 

Philipp Kursawe commented on CB-11433:
--------------------------------------

Sorry, no the issue has gone. It was related to how I load my and the cordova 
scripts. I used <script async/> and the iOS webkit can't handle that properly 
it seems. It created all kind of weird issues.
And the one here was one of them.

> Permission dialog display cordova package path instead of plain text message
> ----------------------------------------------------------------------------
>
>                 Key: CB-11433
>                 URL: https://issues.apache.org/jira/browse/CB-11433
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>    Affects Versions: 2.2.0
>         Environment: ios 9.3.x
>            Reporter: Philipp Kursawe
>              Labels: triaged, wfc
>
> When having this react component
> {code}
> import React from "react"
> import { connect } from "react-redux"
> import { update } from "../geolocationActions"
> class GeoLocation extends React.Component {
>   constructor(props) {
>     super(props)
>     this.updatePosition = position => props.update(position)
>     this.onError = () => props.update(null)
>   }
>   componentWillMount() {
>     this.watchId = navigator.geolocation.watchPosition(this.updatePosition, 
> this.onError)
>   }
>   componentWillUnmount() {
>     navigator.geolocation.clearWatch(this.watchId)
>   }
>   render() {
>     return null
>   }
> }
> GeoLocation.propTypes = {
>   update: React.PropTypes.func.isRequired,
> }
> export default connect(null, { update })(GeoLocation)
> {code}
> Sometimes the phone displays the correct permission question:
> https://1drv.ms/i/s!AjrwWLsSkwcs1YlgMrdeK9AvkCwe7g
> but sometimes (even right after the first dialog) another dialog is displayed 
> and the app hangs after it has been closed.
> https://1drv.ms/i/s!AjrwWLsSkwcs1YlfkCT9F6OKUK9iRQ



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to