Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_webview] PWA support for offline access in Mobile devices #561 #69502

Open
rebootcode opened this issue Oct 31, 2020 · 10 comments
Open
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: webview The WebView plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@rebootcode
Copy link

rebootcode commented Oct 31, 2020

Use case

Is it possible to cache "initialURL" so that if there is no internet, InitialURL always opens the page from the local cache if the app has been opened at least once and the cache is not cleared.

Proposal

Caching the intialURL as well as follow up URL after the first-page load just like PWA insides flutter.

What was done

I just created a simple WebView flutter app and accessed PWA website all pages, closed the app, disconnected from the internet, opened the app again and voila got the error, the page is not available.

But it works fine in the mobile chrome browser, it loads all pages I accessed with my Internet on even after disconnecting from the internet.

But inside flutter webview app, I get an error, "This webpage is not available".

@iapicca
Copy link
Contributor

iapicca commented Oct 31, 2020

@rebootcode
maybe I didn't understand correctly, but
it seems to me that you want to cache for offline use a whole website
if so, I'm not sure it's realistic expectation

@rebootcode
Copy link
Author

PWA has an offline store option and if flutter_webview can support PWA, It will be just a magical moment.

@rebootcode rebootcode changed the title [flutter_webview] Cache "initialURL" for offlineview or PWA support #561 [flutter_webview] PWA support for offline access #561 Nov 1, 2020
@rebootcode rebootcode changed the title [flutter_webview] PWA support for offline access #561 [flutter_webview] PWA support for offline access in Mobile devices #561 Nov 1, 2020
@rebootcode

This comment was marked as outdated.

@Sammius
Copy link

Sammius commented Nov 2, 2020

Due to Flutter's limitations on 3D, I also have a significant portion of the application in WebView, and PWA support for WebView would be very helpful. Since in our region, there are problems with the Internet coverage.

@darshankawar
Copy link
Member

@rebootcode
I see there's an open feature request to integrate PWA for webview_flutter plugin. Also see this comment on feasibility of this request implementation. Would you be okay to follow-up in that issue and close this one as duplicate ?
Thanks.

@darshankawar darshankawar added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Nov 2, 2020
@rebootcode
Copy link
Author

@darshankawar, I see the previous #30582 thread recommends downloading the PWA app inside flutter.
But I recommend instead of downloading another app, just supporting the "offline" or "page cache" features using serviceworker or something similar inside webview to let page accessible offline.

It sounds similar and the objective may sound similar, but the approach and requirement are strictly for "offline" based access using serviceworker cache or something similar.
Not sure, if merging both and closing this thread would be right.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 2, 2020
@darshankawar darshankawar added p: first party p: webview The WebView plugin c: proposal A detailed proposal for a change to Flutter and removed in triage Presently being triaged by the triage team labels Nov 2, 2020
@darshankawar
Copy link
Member

Related to 30582

@StarMonk

This comment was marked as off-topic.

@stuartmorgan stuartmorgan added the P3 Issues that are less important to the Flutter project label Aug 4, 2021
@bahung1221

This comment was marked as off-topic.

@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team labels Jul 8, 2023
@stuartmorgan stuartmorgan added the c: new feature Nothing broken; request for a new capability label Sep 8, 2023
@ubaidakmal
Copy link

is there any method for offline cache web view support for the Flutter ios app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: webview The WebView plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

No branches or pull requests

9 participants