Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11433

Permission dialog display cordova package path instead of plain text message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Labels:
    • Environment:

      ios 9.3.x

      Description

      When having this react component

      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)
      

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pke Philipp Kursawe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: