input-samples icon indicating copy to clipboard operation
input-samples copied to clipboard

Autofill doesn't work on Android 10/Flutter/WebView

Open MihaMarkic opened this issue 2 years ago • 1 comments

I've created a simple flutter app using webview_flutter plugin. I open a web page and no autofill suggestions are shown. While the same page works if hosted in webview in a native app. I suppose it's a problem with flutter somewhere, but could you check this log and see if it is obvious what's going on? Below is the log filtered by "autofill" and after i click on a field that shuld work.

2021-10-20 11:50:31.197 30038-30038/com.example.test_google_webview V/AutofillManager: requestHideFillUi(null): anchor = null 2021-10-20 11:50:31.639 30038-30038/com.example.test_google_webview V/AutofillManager: not ignoring notifyViewEntered(flags=0, view=1073741824:65539, state UNKNOWN, enteredIds=null 2021-10-20 11:50:31.639 30038-30038/com.example.test_google_webview V/AutofillManager: startSessionLocked(): id=1073741824:65539, bounds=Rect(56, 913 - 700, 983), value=null, flags=0, state=UNKNOWN, compatMode=false, enteredIds=null 2021-10-20 11:50:31.640 699-2424/? V/AutofillManagerServiceImpl: startSession(): token=Token{de0943 ActivityRecord{1fccef2 u0 com.example.test_google_webview/.MainActivity t24179}}, flags=0 2021-10-20 11:50:31.642 699-2424/? V/AutofillSession: updateLocked(): id=1073741824:65539, action=START_SESSION, flags=0 2021-10-20 11:50:31.642 699-2424/? V/AutofillSession: Creating viewState for 1073741824:65539 2021-10-20 11:50:31.642 699-2424/? V/AutofillSession: Requesting structure for request #1 ,requestId=13, flags=0 2021-10-20 11:50:31.673 699-3352/? V/AutofillSession: New structure for requestId 13: android.app.assist.AssistStructure@b0b3b58 2021-10-20 11:50:31.676 699-3352/? V/AutofillSession: fillContextWithAllowedValuesLocked(): no node for 1073741824:65539 2021-10-20 11:50:31.895 699-724/? V/AutofillSession: canceling session -1731086303 when server returned null 2021-10-20 11:50:31.895 699-724/? V/AutofillSession: removeSelfLocked(): null 2021-10-20 11:50:31.896 699-724/? V/AutofillSession: destroyLocked(): logging 1 requests 2021-10-20 11:50:31.896 699-715/? D/AutofillUI: destroySaveUiUiThread(): already destroyed 2021-10-20 11:50:31.897 30038-30038/com.example.test_google_webview V/AutofillManager: notifyNoFillUi(): sessionId=-1731086303, autofillId=1073741824:65539, sessionFinishedState=2 2021-10-20 11:50:31.897 30038-30038/com.example.test_google_webview V/AutofillManager: setSessionFinished(): from ACTIVE to FINISHED 2021-10-20 11:50:36.899 699-724/? V/RemoteFillService: Not handling operation as service for ComponentInfo{com.google.android.gms/com.google.android.gms.autofill.service.AutofillService} is already destroyed

MihaMarkic avatar Oct 20 '21 09:10 MihaMarkic

Nice

asrijojo11e avatar Feb 27 '23 17:02 asrijojo11e