Skip to content

๐ŸŒ‰ web view & native app inter communication protocol for smarter hybrid apps

License

Notifications You must be signed in to change notification settings

jahangiralommin2/inapp-bridge

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

43 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

In App Bridge - "Native Cross platform webview made easy."

Bridge for Web & Native apps for seamless integration and inter communication.

  • Android Native (until 2020.1)
  • iOS Native (until 2020.2)
  • Flutter (until 2020.3)
  • Web (VanillaJS & React JS) (until 2020.1)
    • can be used for vueJS/Angular with unofficial support

What is In App Bridge?

while you develop apps for both android and ios platform, you will face a stage that you need to use webview for faster development. you can try developing web app for embedding into native app's webview without any tools. but you will relise that that work is not pleasant. iOS/Android will require different interface for communicating to your web app.

Also when you need platform specific logic on your webapp, you will find it annoying.

Inappbridge provides interface between web/android and web/iOS

  • Fully reusable web
  • Faster webview integration
  • Web stays as web. supports both for plain browser & app's page as hybrid

How to use

ReactJS Example

this.props.inAppBridge.pushPage() // pushes new page of native app
this.props.inAppBridge.dismiss() // dismiss current page of native app
this.props.inAppBridge.subscribeTo(channel: "channelA", onMessage: this.handleMessageFromNative)

Android Example

InAppBridgeWebviewHandler handler = new InAppBridgeWebviewHandler()
handler.with(webview)

handler.postMessage("message from native to webview") // send simple message to webview
handler.publishTo(channel: "channelA", message: "message from native to webview") // send simple message to webview
handler.authenticate(jwt:"eJX...") // authenticate webview via native app's token
handler.setResult(true) // send positive action to webview

iOS Example

InAppBridgeWebviewHandler handler = new InAppBridgeWebviewHandler()
handler.with(webview)

handler.postMessage("message from native to webview") // send simple message to webview
handler.authenticate(jwt:"eJX...") // authenticate webview via native app's token
handler.setResult(true) // send positive action to webview

How to contribute

If you are interested in contributing to this project. please contact woojoo@softmarshmallow.com

About

๐ŸŒ‰ web view & native app inter communication protocol for smarter hybrid apps

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 33.3%
  • Dart 30.1%
  • HTML 13.8%
  • Kotlin 12.5%
  • Swift 5.6%
  • CSS 4.5%
  • Objective-C 0.2%