Which is better between webview_flutter vs flutter_webview_plugin - dart

I have been developed web view in flutter.I don't know clearly which is better
webview_flutter vs flutter_webview_plugin.

In webview_flutter, “Flutter widgets can be shown over the web view.” source
In flutter_webview_plugin, “The webview is not integrated in the widget tree, it is a native view on top of the flutter view. you won't be able to use snackbars, dialogs ...” source
Also, there is keyboard issue so if you intend to use this for OAuth or something, stick with flutter_webview_plugin
Read more on reddit

The webview_flutter is developed by the flutter team and it is the official way to integrate webviews in flutter app.
The flutter_webview_plugin is developed by the flutter community and soon it is going to be merged into the official webview_flutter.
As the two plugins are being merged and after the merger the unofficial plugin is going to be deprecated. So it is safe and my personal opinion to use the official webview_flutter from now on.

Another option is the flutter_inappwebview plugin (I'm the author) other than webview_flutter and flutter_webview_plugin. It's a Flutter plugin that allows you to add an inline webview, use a headless webview, and open an in-app browser window.
Currently, it's the most advanced and feature-rich WebView implementation you can find for Flutter.
You can check the official inappwebview.dev website for more details and documentation!
Also, starting from version 6 (the current latest one is 6.0.0-beta.20), it supports Web and macOS platforms!

Related

How to use iOS keychain in Oracle MAF application?

I am pretty new to Oracle MAF framework. I want to store a string to iOS keychain and retrieve later. I have searched for a tutorial and still unable to find.
Please share any tutorial if anyone has done this before. Also I want to know whether we can use a Cordova plugin such as https://www.npmjs.com/package/cordova-plugin-ios-keychain directly in the MAF project?
I was able to resolve the problem. I would like to share how did I manage to do. Cordova plugin can be used in the MAF application. MAF app's java code can invoke javascript methods in the cordova plugin. Or we can write a javascript class to do the bridging between MAF app and the cordova plugin.
This is a good tutorial for your reference.
https://blogs.oracle.com/mobile/integrating-a-custom-cordova-plugin-into-a-maf-app

Add React-native app to 'Activities' panel on IOS

I am looking for informations about to add an App in the 'Activities' IOS panel in order to can add my app to the list of sharing apps.
I don't know if it's automatic or if it need some configuration.
Thanks
This is possible using AppExtensions in iOS SDK.
In React native, the docs talk about App extensions here. And an example app for sharing is available in a github repo.

How to play Youtube videos using Expo

I am trying to use the react-native-youtube component in my expo project. However, I couldn't get it to work. All I have so far is a black screen with red borders. I tried following the video instructions on online however, expo doesn't have an iOS or Android folder, which means I can't open it in XCode and fiddle with it. How can I play youtube videos using expo? As you might have noticed from my question I'm new to react-native using expo.
At the moment, YouTube is not supported by Expo. You can either eject the project and install the react-native-youtube library or load your videos from a WebView like this:
<WebView
style={{flex:1}}
javaScriptEnabled={true}
source={{uri: 'https://www.youtube.com/embed/ZZ5LpwO-An4?rel=0&autoplay=0&showinfo=0&controls=0'}}
/>
For anyone still looking for this, try this package with expo support
https://github.com/LonelyCpp/react-native-youtube-iframe
A wrapper of the Youtube IFrame player API build for react native. Uses the webview player which is known to be more stable compared to the native youtube app.
As the new expo SDK has support for the modern community maintained webview, it should work seamlessly across platforms
The current way to get a YouTube video in a React Native application is to use React Native's WebView component in your project.
Here is a snack that shows an example of how the WebView works using an Instagram signup flow as an example: https://snack.expo.io/HJRKKTmAx.
I'm sorry if that wasn't exactly what you're looking for :(
To use react-native-youtube component you would have to detach your Expo project ExpoKit:
ExpoKit is an Objective-C and Java library that allows you to use the Expo platform and your existing Expo project as part of a larger standard native project — one that you would normally create using Xcode, Android Studio, or react-native init.
More information here: https://docs.expo.io/versions/v18.0.0/guides/detach.html
I hope these two options solve your problem, let me know if theres any other way I can help.
(work only in website)
Install npm i react-player
basic usage
import ReactPlayer from 'react-player'
export default function App() {
return (
<ReactPlayer url='https://www.youtube.com/watch?v=ysz5S6PUM-U' />
);
}
Props = https://www.npmjs.com/package/react-player

Porting native apps to Phonegap?

I have a native app for iOS and am being tasked to create a new app that includes portions/sections of that original native app within this new project. The caveat being that the app I am now tasked to develop must be done with Phonegap/Cordova.
My question is, what options do I have for utilizing the native code within the Phonegap project, or does the same functionality all need to be rewritten in HTML5/JS? I'm new to Phonegap so I don't fully know it's capabilities.
Generally phonegap apps are coded in javascript, css, html and where ever they need access to the native layer, they use phonegap plugins to access the native functionality. If you want use your existing code for integration into a phonegap app, you can do it by wrapping your code using phonegap plugin architecture and create plugins for the functionality from the code that you wish to reuse. Then you call those plugins where ever required in your application.
The below link is good starting point for creating plugins.
http://docs.phonegap.com/en/3.4.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide

Integrating FastPdfKit with a PhoneGap application

I'd like to integrate a FastPdfKit Reader into my PhoneGap application. That is, the PDF reader should be opened within the PhoneGap app, so that the application-related navigation is still visible.
Where do I best start?
Do you know about any publicly available code that gives an example on how to achieve this?
It sounds like what you are looking for is creating a PhoneGap plugin.
http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins
Here are some tutorials on making plugins for PhoneGap:
http://hiediutley.com/2011/04/15/phonegap-tutorial-series-6-writing-your-own-plugin/

Resources