All Projects → cmp-cc → Vue Bridge Webview

cmp-cc / Vue Bridge Webview

Licence: mit
javascript bridge android/ios webview

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Bridge Webview

Node Express Typescript Boilerplate
A boilerplate for developing web apps with Node.js, Express.js & TypeScript. Demonstrates helpful recipes in 8 steps in individual branches.
Stars: ✭ 60 (+15.38%)
Mutual labels:  webpack, webapp
Terminal In React
👨‍💻 A component that renders a terminal
Stars: ✭ 1,939 (+3628.85%)
Mutual labels:  webpack, webapp
Prestashop
Free PWA & SPA for PrestaShop
Stars: ✭ 59 (+13.46%)
Mutual labels:  webpack, webapp
React Native Webview Invoke
Invoke functions between React Native and WebView
Stars: ✭ 211 (+305.77%)
Mutual labels:  bridge, webview
FlexHybridApp-Android
WebView bridge interface with Promise pattern
Stars: ✭ 20 (-61.54%)
Mutual labels:  webview, bridge
Webapp
基于webpack+Vue2.0搭建webapp,结合野狗实现实时云通信,并自动构建在DaoCloud上!
Stars: ✭ 169 (+225%)
Mutual labels:  webpack, webapp
Webapp Webpack Plugin
[DEPRECATED] use favicons-webpack-plugin instead
Stars: ✭ 127 (+144.23%)
Mutual labels:  webpack, webapp
msLog
log for webView & webApp 用于webView和webApp的log工具
Stars: ✭ 25 (-51.92%)
Mutual labels:  webview, webapp
rn-webview-rpc
Add RPC capabilities to a React Native WebView component
Stars: ✭ 25 (-51.92%)
Mutual labels:  webview, bridge
Mpx
Mpx,一款具有优秀开发体验和深度性能优化的增强型跨端小程序框架
Stars: ✭ 2,913 (+5501.92%)
Mutual labels:  webpack, webapp
webviewhs
🌐 A Haskell binding to the webview library created by Serge Zaitsev.
Stars: ✭ 109 (+109.62%)
Mutual labels:  webview, webapp
Miox
Modern infrastructure of complex SPA
Stars: ✭ 374 (+619.23%)
Mutual labels:  webpack, webview
React 5ddm
5d动漫,使用React,服务端渲染,接口(不开源)来自赞片CMS。仅供参考,交流群:14646823 欢迎加入
Stars: ✭ 50 (-3.85%)
Mutual labels:  webpack
Wifi Of House
A simple web application which allows you to share your WiFi credentials instantly with your friends and family. Built using Python, Flask and Bootstrap.
Stars: ✭ 51 (-1.92%)
Mutual labels:  webapp
Panic Overlay
Displays JS errors in browsers. Shows sources. Use with any framework. 💥✨
Stars: ✭ 50 (-3.85%)
Mutual labels:  webpack
Webpack Handbook
Webpack中文指南
Stars: ✭ 1,050 (+1919.23%)
Mutual labels:  webpack
Generate Pages
webpack 开发多页面脚手架
Stars: ✭ 51 (-1.92%)
Mutual labels:  webpack
Go Web Backend
Dockerized backend services for web application
Stars: ✭ 50 (-3.85%)
Mutual labels:  webapp
Fclub
Vue全家桶+Koa+mongoose全栈开发的单页应用 http://wap.fulun.club
Stars: ✭ 49 (-5.77%)
Mutual labels:  webapp
Milky
A .NET Standard library for pentesting web apps against credential stuffing attacks.
Stars: ✭ 49 (-5.77%)
Mutual labels:  webapp

vue-bridge-webview

javascript bridge android/ios webview

Installation

Browser

  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <script src="https://unpkg.com/[email protected]/vue-bridge-webview.js"></script>

Package Managers

npm install vue-bridge-webview --save

import Vue from 'vue'
import VueBridgeWebview from 'vue-bridge-webview'
Vue.use(VueBridgeWebview)

// set default config 
VueBridgeWebview.config(0,true);

Api

syntax format: [this | Vue | window].$bridge.[method]

  • Set global config
$bridge.config(handleDelayTime,silent); // default handleDelayTime = 0 * 1000,silent = false 
  • Android/IOS invoke JS
$bridge.registerHandler : function(name, registerCallback) // callback name, callback function

example: refersh page view
[this|Vue|window].$bridge.registerHandler("refreshPage",function(){
                              document.location.reload();
                          })
  • JS invoke Android/IOS
$bridge.callHandler: function(name,params,callback) // callback name, request params, callback function

example: get userInfo
[this|Vue|window].$bridge.callHandler('getUserInfo',{},function(data){
           ... 
        })

License

MIT Copyright (c) 2016-present, cmp-cc

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].