Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Flutter_inappwebview | 2,700 | 1 | 128 | 2 days ago | 100 | June 12, 2023 | 821 | apache-2.0 | Dart | |
A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window. | ||||||||||
Unity Webview | 2,062 | 11 days ago | 366 | zlib | Objective-C++ | |||||
Wkwebview | 848 | 7 years ago | 102 | Objective-C | ||||||
DEPRECATED - this plugin served a purpose in the past, but there are better implementation now | ||||||||||
Axwebviewcontroller | 745 | 8 | 4 years ago | 45 | February 22, 2018 | 48 | mit | Objective-C | ||
AXWebViewController is a webViewController to browse web content inside applications. It’s a lightweight controller on iOS platform based on WKWebView (UIWebView would be the base Kit under iOS 8.0). It added navigation tool bar to refresh, go back, go forward and so on. It support the navigation style on WeChat. It is a simple-using and convenient web view controller using inside applications. | ||||||||||
React Native Wkwebview | 632 | 47 | 8 | 2 years ago | 30 | October 08, 2018 | 91 | mit | Objective-C | |
WKWebview Component for React Native | ||||||||||
Jxbwkwebview | 610 | 2 | 3 years ago | 14 | October 27, 2020 | 2 | mit | Objective-C | ||
An component WebView for iOS base on WKWebView | ||||||||||
Kkjsbridge | 563 | 1 | 2 years ago | 39 | January 12, 2021 | 14 | mit | Objective-C | ||
一站式解决 WKWebView 支持离线包,Ajax/Fetch 请求,表单请求和 Cookie 同步的问题 (基于 Ajax Hook,Fetch Hook 和 Cookie Hook) | ||||||||||
Cordova Plugin Ionic Webview | 478 | 4,787 | 79 | a month ago | 58 | May 27, 2020 | 161 | apache-2.0 | Objective-C | |
Web View plugin for Cordova, specialized for Ionic apps. | ||||||||||
Xwebview | 436 | 4 | 5 years ago | 9 | October 22, 2018 | 20 | apache-2.0 | Swift | ||
An extensible WebView for iOS (based on WKWebView) | ||||||||||
Ddgscreenshot | 358 | 2 years ago | 6 | October 22, 2018 | 7 | mit | Swift | |||
DDGScreenShot截屏图片处理,只需一句代码,复杂屏幕截屏(如view ScrollView webView wkwebView),图片后期处理,拼图,裁剪等 |
An component WebView for ios
PAWeView is an extensible WebView which is built on top of WKWebView, the modern WebKit framework debuted in iOS 8.0. It provides fast Web for developing sophisticated iOS native or hybrid applications.
For a complete example on how to use PAWeView, see the Sample Project.
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>NSPhotoLibraryUsageDescription</key>
<string></string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
//
PAWebView *webView = [PAWebView shareInstance];
//
[webView loadRequestURL:[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://www.sina.cn"] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20.0f]];
[self.navigationController pushViewController:webView animated:YES];
// NSURLRequest
typedef NS_ENUM(NSUInteger, NSURLRequestCachePolicy)
{
NSURLRequestUseProtocolCachePolicy = 0, //
NSURLRequestReloadIgnoringLocalCacheData = 1, //
NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4, // Unimplemented
NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData,
NSURLRequestReturnCacheDataElseLoad = 2,
NSURLRequestReturnCacheDataDontLoad = 3,
NSURLRequestReloadRevalidatingCacheData = 5, // Unimplemented
};
//
[webView reload];
//
[webView reloadFromOrigin];
/* messageHanderJSNative */
- (void)addMessageHander
{
// PAWKScriptMessageHandler
[webView addScriptMessageHandlerWithName:@[@"AliPay",@"weixin"]];
//block
[webView addScriptMessageHandlerWithName:@[@"AliPay",@"weixin"] observeValue:^(WKUserContentController *userContentController, WKScriptMessage *message) {
//JSOC
NSLog(@"name:%@;body:%@",message.name,message.body);
}];
}
/* PAWKScriptMessageHandler */
- (void)PAUserContentController: (WKUserContentController *) userContentController didReceiveScriptMessage:(WKScriptMessage *)message{
//JSOC
NSLog(@"name:%@;body:%@",message.name,message.body);
}
//
[[PAWebView shareInstance] callJS:@"alert('JS')"];
//
[[PAWebView shareInstance] callJS:@"alert('JS')" handler:^(id response, NSError *error) {
NSLog(@"js");
}];
/**
cookiesWKWebviewcookiessharedHTTPCookieStoragecookies
@return cookies
iOS11 cookies NSHTTPCookieStoragecookiesiOS11cookies
*/
- (NSMutableArray *)WKSharedHTTPCookieStorage;
/**
cookiesloadRequest
@param cookie NSHTTPCookie
cookie cookie namevaluedomainexpiresDatecookie
cookie expiresDate [cookieProperties setObject:expiresDate forKey:NSHTTPCookieExpires]; cookieProperties[expiresDate] = expiresDate; cookies
*/
- (void)setCookie:(NSHTTPCookie *)cookie;
/** cookie */
- (void)deleteWKCookie:(NSHTTPCookie *)cookie completionHandler:(nullable void (^)(void))completionHandler;
/** cookie */
- (void)deleteWKCookiesByHost:(NSURL *)host completionHandler:(nullable void (^)(void))completionHandler;
/** cookies */
- (void)clearWKCookies;
/** cookie */
- (void)clearWebCacheFinish:(void(^)(BOOL finish,NSError *error))block;
/*backForwardList */
- (void)clearBackForwardList;