Skip to content

Keepalive not working when url changed #2613

@shanelau

Description

@shanelau

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Steps:

  • load https://jumble.social/ and set keepAlive = InAppWebViewKeepAlive()
  • click any url, like https://jumble.social/notes/bbb
  • close webview
  • load https://jumble.social/ use the same InAppWebViewKeepAlive Object;
  • webview will load url: https://jumble.social/ and keep the scroll offset

Expected Behavior

  • webview will load the last url: https://jumble.social/bbb and keep the scroll offset

Steps with code example to reproduce

Steps with code example to reproduce
// Paste your code here

Stacktrace/Logs

Stacktrace/Logs
<Replace this line by pasting your stacktrace or logs here>

Flutter version

3.29.2

Operating System, Device-specific and/or Tool

Andoird 34+

Plugin version

6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions