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] [Commented] (CB-6863) Default Cordova bridge broken due to iOS 8 changes
Date Wed, 04 Jun 2014 18:09:02 GMT

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

Shazron Abdullah commented on CB-6863:
--------------------------------------

For iOS 8, I think we should just adopt WKScriptMessage as the bridge:https://developer.apple.com/library/prerelease/ios/documentation/WebKit/Reference/WKScriptMessage/index.html#//apple_ref/occ/instp/WKScriptMessage/body

the bridge would be handled in userContentController:didReceiveScriptMessage of the WKScriptMessageHandler:
https://developer.apple.com/library/prerelease/ios/documentation/WebKit/Reference/WKScriptMessageHandler_Ref/index.html#//apple_ref/occ/intf/WKScriptMessageHandler


Just pass back JSON, which is bridge to a NSDictionary.

Links:
https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/WebKit/ObjC_classic/index.html#//apple_ref/doc/uid/TP30000745

> Default Cordova bridge broken due to iOS 8 changes
> --------------------------------------------------
>
>                 Key: CB-6863
>                 URL: https://issues.apache.org/jira/browse/CB-6863
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>         Environment: iOS 8 beta 1
>            Reporter: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 3.6.0
>
>
> https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-8.0/index.html
> WebKit
> - Known Issues
> -- Applications that use Apache Cordova/PhoneGap are broken due to a bug that causes
the window.navigator.userAgent object to become undefined when window.navigator is replaced
by a pure JavaScript wrapper object.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message