[
https://issues.apache.org/jira/browse/CB-6911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121281#comment-14121281
]
Angus Bremner commented on CB-6911:
-----------------------------------
This has been marked as resolved yet I don't believe the original issue in the
description has been addressed. I have tried Xcode beta 7 with iOS 8 beta 5. I
have updated the geolocation plugin to include this fix. I have added this
script that was meant to address the issue
{code}
if (navigator.userAgent === undefined) {
navigator.__defineGetter__('userAgent', function() {
return("Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X)
AppleWebKit");
});
}
{code}
I am still getting a large number of errors:
Deprecated attempt to access property 'userAgent' on a non-Navigator object.
Deprecated attempt to access property 'geolocation' on a non-Navigator object.
Screenshot attached.
> Geolocation fails in iOS 8
> --------------------------
>
> Key: CB-6911
> URL: https://issues.apache.org/jira/browse/CB-6911
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Plugin Geolocation
> Environment: iOS 8 beta 1
> Reporter: Jeff Schilling
> Assignee: Shazron Abdullah
> Attachments: Screen Shot 2014-09-01 at 9.03.30 pm.png, Screen Shot
> 2014-09-04 at 9.30.58 pm.png
>
>
> references to window.navigator.* (platform, geolocation) etc fail with
> Deprecated attempt to access property 'geolocation' on a non-Navigator object.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)