webview

WebView shows net::ERR_CLEARTEXT_NOT_PERMITTED on HTTPS url

送分小仙女□ 提交于 2020-04-17 18:40:54
问题 I'm trying to load an url that fit security protocols with HTTPS, but when I'm trying to load on a WebView, android shows me net::ERR_CLEARTEXT_NOT_PERMITTED. Why? is a HTTPS what is the problem? The source code that shows it is: public class InternalWebBrowserActivityHelperImpl implements InternalWebBrowserActivityHelper, Constants { private final String TAG = getClass().getSimpleName(); @NonNull private InternalWebBrowserActivityView activityView; public InternalWebBrowserActivityHelperImpl

WebView shows net::ERR_CLEARTEXT_NOT_PERMITTED on HTTPS url

隐身守侯 提交于 2020-04-17 18:39:46
问题 I'm trying to load an url that fit security protocols with HTTPS, but when I'm trying to load on a WebView, android shows me net::ERR_CLEARTEXT_NOT_PERMITTED. Why? is a HTTPS what is the problem? The source code that shows it is: public class InternalWebBrowserActivityHelperImpl implements InternalWebBrowserActivityHelper, Constants { private final String TAG = getClass().getSimpleName(); @NonNull private InternalWebBrowserActivityView activityView; public InternalWebBrowserActivityHelperImpl

WebView shows net::ERR_CLEARTEXT_NOT_PERMITTED on HTTPS url

北慕城南 提交于 2020-04-17 18:38:54
问题 I'm trying to load an url that fit security protocols with HTTPS, but when I'm trying to load on a WebView, android shows me net::ERR_CLEARTEXT_NOT_PERMITTED. Why? is a HTTPS what is the problem? The source code that shows it is: public class InternalWebBrowserActivityHelperImpl implements InternalWebBrowserActivityHelper, Constants { private final String TAG = getClass().getSimpleName(); @NonNull private InternalWebBrowserActivityView activityView; public InternalWebBrowserActivityHelperImpl

WebView shows net::ERR_CLEARTEXT_NOT_PERMITTED on HTTPS url

纵饮孤独 提交于 2020-04-17 18:37:50
问题 I'm trying to load an url that fit security protocols with HTTPS, but when I'm trying to load on a WebView, android shows me net::ERR_CLEARTEXT_NOT_PERMITTED. Why? is a HTTPS what is the problem? The source code that shows it is: public class InternalWebBrowserActivityHelperImpl implements InternalWebBrowserActivityHelper, Constants { private final String TAG = getClass().getSimpleName(); @NonNull private InternalWebBrowserActivityView activityView; public InternalWebBrowserActivityHelperImpl

React Native and webview communication, how to call react function from RN?

耗尽温柔 提交于 2020-04-17 18:30:09
问题 I have RN <=> Webview running webview subscribe to 'getFoo' message webview sets foo value to 'woo' (with breakpoint I can confirm foo value has been updated) RN sends 'getFoo' message to webview : give me the value of foo webview gets notified of the request of the RN via callback, here foo value is empty! why? webview sends the foo value (empty) to RN Below is the webview part import _ from "lodash" import React, { useState, useContext, useEffect, useReducer, useCallback, useRef } from

Error inflating class android.webkit.WebView Crash on Lollipop when opening PDF

帅比萌擦擦* 提交于 2020-04-16 04:20:08
问题 In my app I encountered said Error during auto-tests. I'm attempting to show a PDF from an URL in a WebView which causes this crash on devices running Android 5 Lollipop. The full crash log references a String resource in WebView not being found, which I couldn't really gain much from either so far. EDIT: I am aware this is a known problem, but so far no solution has fixed the crash, only prevented Android 5 devices from reaching that state and attempting to show the pdf. Crashlog android

“Content-Security-Policy”, “frame-ancestors *” from android_asset

你。 提交于 2020-04-16 04:17:18
问题 I am writing an Android-App, which loads a local webpage, and that page, posts to some inner iframe, which in reply will display data regarding that user. The remote site refuses to display on my android_asset/page.html because of: Refused to display 'https://example/foo/bar' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors *". My code is: mWebView.getSettings().setJavaScriptEnabled(true); mWebView.setWebViewClient(webViewClient);

evaluateJavaScript in swiftui

拥有回忆 提交于 2020-04-16 03:32:09
问题 How to get evaluateJavaScript to work when a message is received from webview? print(message.body) <--- this is working parent?.evaluateJavaScript("document.getElementsByClassName('mat-toolbar-single-row')[0].style.backgroundColor = 'red'", completionHandler: nil) <--- this is not struct WebView: UIViewRepresentable { let request: URLRequest let contentController = ContentController(nil) func makeUIView(context: Context) -> WKWebView { let webConfiguration = WKWebViewConfiguration() let

Enable GeoLocation On Webview

ぃ、小莉子 提交于 2020-04-16 03:31:48
问题 Good Evening. I'm on making Tracking Application on Android using Webview. i got problem because the system all works well beside the location. in manifest i got this permission settings already <uses-permission android:name="android.permission.INTERNET"></uses-permission> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> and in mainactivity.java i got this

how to callback the array of data to another viewController in iOS Swift

允我心安 提交于 2020-04-15 06:48:50
问题 In createCardVC, I have used the carbonKit library to show tab bar. Initially, the array of data loaded using static data but now I am trying to use an array of data from webView javascript postMessage. When createCardVC is loaded the carbonKit of the first tab is webViewVC will be loaded. In webView, From postMessage it will list number menu items to show tab bar menu. Here tabs values are dynamic and which will return from webView postMessage. Here is the clear picture: Here is the code