cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Deleted] (CB-11439) Permission dialog sometimes displayed twice or with wrong message
Date Tue, 14 Jun 2016 21:56:30 GMT

     [ https://issues.apache.org/jira/browse/CB-11439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah deleted CB-11439:
----------------------------------


> Permission dialog sometimes displayed twice or with wrong message
> -----------------------------------------------------------------
>
>                 Key: CB-11439
>                 URL: https://issues.apache.org/jira/browse/CB-11439
>             Project: Apache Cordova
>          Issue Type: Bug
>         Environment: iOS 9.3.x
>            Reporter: Philipp Kursawe
>
> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message