Coder Social home page Coder Social logo

chicio / explore-wkscriptmessagehandler Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 4.0 83 KB

:iphone: An example project created for my blog post "Web to native communication on iOS using WKScriptMessageHandler" :iphone:

Home Page: https://fabrizioduroni.it/blog/

License: MIT License

Swift 68.27% HTML 31.73%
wkscriptmessagehandler web ios swift webki wkwebview javascript mobile-app mobile-development apple

explore-wkscriptmessagehandler's Introduction

Explore WKScriptMessageHandler

Build Status GitHub license Supported platform

An example project in which I explore how it is possible to use WKScriptMessageHandler to make some WKWebView web page to native communication.
This is a project for my blog posts Web to native communication on iOS using WKScriptMessageHandler

Description

This is a quote from the post:

Sooner or later every mobile developer in the world had the following specific need: integrate a website page inside an app. Usually the feature to be developed requires a depp integration between web and native: the app must react to some changes in the web page based on the user interactions or some other events (automatic refresh, geolocation ecc.). The old way to do this integration was to catch some url change/page load using the classical UIWebView delegate methods. But starting from iOS 8 there's a better way to do this integration using WKWebViews and WKScriptMessageHandler. In this post I will show you how is it possible to use them to call Swift code from Javascript code inside a webpage.

Click on the link above to read the posts.

explore-wkscriptmessagehandler's People

Contributors

chicio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.