docfresh / fixityhybrid

Fixity Hybrid app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HybridWebView Custom Renderer

fixityhybrid is a Xamarin.Forms-based native wrapper for Web apps. It's being used for Fixity's iOS and Android apps.

This fork enhances David Britch's original sample here: Implementing a HybridWebView.

David's code demonstrated a cutom renderer for a 'HybridWebView' custom control, to enhance the platform-specific web controls to allow C# code to be invoked from JavaScript.

It has been enhanced to allow certain features for Android and iOS

Android

  • Enabling Location Services and Camera permissions in the WebView
  • Directly download PDFs and other files to local storage
  • Properly route mailto: , tel: , sms: links
  • Properly route Google Maps links
  • Route external links to a new system browser
  • Route internal links in the webview
  • Enable 1-touch enabling of Location Services
  • Splash Screen
  • Toast messages
  • Offline handling with offline.html

iOS

  • Enabling Location Services and Camera permissions in the WebView
  • Directly download PDFs and other files to local storage
  • Properly route mailto: , tel: , sms: links
  • Properly route Google Maps & Apple Maps links
  • Route external links to a new system browser
  • Route internal links in the webview
  • Toast messages
  • Offline handling with offline.html

UWP

  • All of the above

TO DO

  • Make Android's GPS detection modal --- don't load the website until they confirm OK.
  • Make the website to load a constant (currently loads fixity.io)
  • Check and test the Javascript bridge on both Android and iOS
  • Ensure 2-way communication between Native app and Web app via JS bridge
  • Let the JS bridge handle multiple actions (for example, Toast and Messagebox on native platforms)
  • Look into pre-loading WiseJ resources to avoid download (speed)
  • Handle Facebook login (does not work in Hybrid app)

Fork Author

Andrew Niese Fresh Software LLC for Fixity.io

Original Author

David Britch

About

Fixity Hybrid app


Languages

Language:C# 80.6%Language:HTML 19.4%