-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove "WebView" from the Mobile App Entirely #357
Comments
Noting this relevant thread in #458
|
The decision is to remove the "Provide Beta Feedback For This Project" button and because it's the only thing using the WebView to also remove the WebView library. |
@lcjohnso, I removed the "Provide Beta Feedback For This Project" button and the library react-native-webview. However, I did find additional uses of WebView in the mobile app. The additional uses were not using the react-native-webview library, instead they are using the React Native WebView which is deprecated in favor of the react-native-webview libray (see Chelsea's original comment about this).
If these uses are still needed, I would recommend keeping the library and using that instead of the deprecated React Native WebView. I will note that it doesn't seem like anything is breaking so if you wanted to leave as is, I would understand that too. |
Hi @coryzoon -- Great to see these additional details. Regarding the additional uses:
OK, we def want to keep this functionality. Therefore, we're keeping the react-native-webview library and updating the Field Guide to make use of that supported library so we can deprecate the older React Native WebView library.
As noted at the top of this issue, we made the decision to stop supporting projects that would need to open in Webview. I'm happy with that decision, so following suggestion in the inline comments added via this commit (referenced at top of issue), I suggest we rip out remaining code related to displaying these fallback cases (your Case 3 and Case 4). Re: Case 4 -- The idea here: we shouldn't be showing these projects in the mobile app if they are just going to open in a browser window. If volunteers want to engage with this projects while on their mobile device, they can access the web FE directly via a browser, but no need to facilitate that through the app. FYI re: Case 3 -- the "redirect" option for projects is a relic of the transition from an older backend (Ouroboros) to our current backend (Panoptes) to enable linking to projects that were still hosted on the old backend. There is only one "redirect" project that isn't finished (Old Weather), but it is not nor will ever be mobile friendly, so the filtering of "Finished" project out of the projects list makes Case 3 no longer relevant and makes removing its associated code safe to remove. |
Closed by #484 While the final result was to keep WebView for use in beneficial components (i.e., Field Guide), the app was cleaned up to remove WebView's previous use to facilitate non-mobile friendly project participation. Also, the upgrade to a supported library (one of the original drivers in opening this issue) is now complete. |
What are we doing?
We are removing all of the
WebView
functionality from the app.Why are we doing it?
Additional Context
We initially used Webviews to display projects that were only designed for the browser, back when the app was new and we didn't have many "mobile-friendly" workflows available. That is no longer the case, and we no longer display browser-based projects in the mobile app (removed in this commit). So all views that were designed to show those can be removed. We should also make sure we're not using WebViews anywhere else in the app.
The text was updated successfully, but these errors were encountered: