dart - Chat and camera problem on android devices in Flutter webview - Stack Overflow

I converted a site's application to mobile using Webview. However, the site's chat feature do

I converted a site's application to mobile using Webview. However, the site's chat feature does not open. While the camera opens on iOS devices, it does not open on Android devices.

Performing hot restart...

Syncing files to device sdk gphone64 arm64...

Restarted application in 736ms.

W/HWUI (11896): Image decoding logging dropped!

W/HWUI (11896): Image decoding logging dropped!

E/libEGL (11896): called unimplemented OpenGL ES API

I/flutter (11896): Kamera izni verildi

W/WindowOnBackDispatcher(11896): OnBackInvokedCallback is not enabled for the application.

W/WindowOnBackDispatcher(11896): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.

I/PlatformViewsController(11896): Hosting view in view hierarchy for platform view: 0

I/PlatformViewsController(11896): PlatformView is using SurfaceProducer backend

D/permissions_handler(11896): No permissions found in manifest for: []15

I/flutter (11896): Depolama izni reddedildi

W/WindowOnBackDispatcher(11896): OnBackInvokedCallback is not enabled for the application.

W/WindowOnBackDispatcher(11896): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.

I/chromium(11896): [INFO:CONSOLE(239)] "A i tag was parsed inside of a <select> which was not inserted into the document. This is not valid HTML and the behavior may be changed in future versions of chrome.", source: / (239)

I/chromium(11896): [INFO:CONSOLE(1285)] "Uncaught TypeError: $(...).slick is not a function", source: / (1285)

I/chromium(11896): [INFO:CONSOLE(1372)] "JavaScript Yüklendi!", source: / (1372)

I/chromium(11896): [INFO:CONSOLE(1406)] "Sekme geçişleri çalıştırıldı.", source: / (1406)

E/libEGL (11896): called unimplemented OpenGL ES API

I/chromium(11896): [INFO:CONSOLE(2)] "jQuery.Deferred exception: $(...).slick is not a function TypeError: $(...).slick is not a function

I/chromium(11896): at HTMLDocument.<anonymous> (/:1305:29)

I/chromium(11896): at e (.6.0.min.js:2:36552)

I/chromium(11896): at .6.0.min.js:2:36928 undefined", source: .6.0.min.js (2)

I/chromium(11896): [INFO:CONSOLE(600)] "İstek tamamlandı.", source: .js (600)

I/chromium(11896): [INFO:CONSOLE(2)] "Uncaught TypeError: $(...).slick is not a function", source: .6.0.min.js (2)

/chromium(11896): [INFO:CONSOLE(0)] "Access to XMLHttpRequest at ':8080/socket.io/?EIO=4&transport=polling&t=PMuUOfO' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.", source: (0)

I am getting the error. please help me

<manifest xmlns:android=";>
    <!-- Gerekli İzinler -->
    <uses-feature
        android:name="android.hardware.camera"
        android:required="false" />

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <!-- Android 10 (API 29) ve altı için depolama izni -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="29"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
        android:maxSdkVersion="29"/>

    <!-- Android 11 ve sonrası için Scoped Storage izinleri -->
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" android:maxSdkVersion="30"/>

    <application
        android:label="Swopss"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher"
        android:usesCleartextTraffic="true"
        android:requestLegacyExternalStorage="true">

        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:taskAffinity=""
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">

            <meta-data
                android:name="io.flutter.embedding.android.NormalTheme"
                android:resource="@style/NormalTheme"/>
            <meta-data
                android:name="android.webkit.WebView.EnableSafeBrowsing"
                android:value="true"/>

            <!-- Kamera izinleri için WebView izinleri -->
            <meta-data
                android:name="android.webkit.WebView.EnableMediaPlayback"
                android:value="true"/>
            <meta-data
                android:name="android.webkit.WebView.EnableCamera"
                android:value="true"/>

            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <meta-data
            android:name="flutterEmbedding"
            android:value="2"/>

    </application>

    <!-- Uygulamanın dışarıdan metin işlemeye erişebilmesi için -->
    <queries>
        <intent>
            <action android:name="android.intent.action.PROCESS_TEXT"/>
            <data android:mimeType="text/plain"/>
        </intent>
    </queries>
</manifest>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744360263a4570434.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信