You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s from the javascript, instead of throwing an exception while attempting to decode the message as JSON.
This can occur e.g if the webview loaded a new page immediately after dispatching a message to ObjC, in which case WebViewJavascriptBridge may not exist in the JS by the time ObjC reaches in to fetch the message queue.
Fix#159, #183
[_webView evaluateJavaScript:[_base webViewJavascriptFetchQueyCommand] completionHandler:^(NSString* result, NSError* error) {
[_base flushMessageQueue:result];
}];
}
The reason:
if the result == nil, then flushMessageQueue try to _deserializeMessageJSON a nill object.
The text was updated successfully, but these errors were encountered: