{"id":20721682,"url":"https://github.com/chicio/explore-wkscriptmessagehandler","last_synced_at":"2025-04-23T15:20:32.636Z","repository":{"id":83568166,"uuid":"187028778","full_name":"chicio/Explore-WKScriptMessageHandler","owner":"chicio","description":":iphone: An example project created for my blog post \"Web to native communication on iOS using WKScriptMessageHandler\" :iphone:","archived":false,"fork":false,"pushed_at":"2021-12-28T08:27:05.000Z","size":83,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T00:51:12.682Z","etag":null,"topics":["app","apple","communication","ios","ipad","iphone","javascript","mobile-app","mobile-development","native","sample-app","swift","web","webki","wkscriptmessagehandler","wkwebview"],"latest_commit_sha":null,"homepage":"https://fabrizioduroni.it/blog/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chicio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-16T12:59:47.000Z","updated_at":"2024-12-17T08:44:17.000Z","dependencies_parsed_at":"2023-07-07T19:33:22.391Z","dependency_job_id":null,"html_url":"https://github.com/chicio/Explore-WKScriptMessageHandler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FExplore-WKScriptMessageHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FExplore-WKScriptMessageHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FExplore-WKScriptMessageHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FExplore-WKScriptMessageHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chicio","download_url":"https://codeload.github.com/chicio/Explore-WKScriptMessageHandler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250457778,"owners_count":21433734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app","apple","communication","ios","ipad","iphone","javascript","mobile-app","mobile-development","native","sample-app","swift","web","webki","wkscriptmessagehandler","wkwebview"],"created_at":"2024-11-17T03:28:59.309Z","updated_at":"2025-04-23T15:20:32.629Z","avatar_url":"https://github.com/chicio.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Explore WKScriptMessageHandler\n\n[![Build Status](https://travis-ci.org/chicio/Explore-WKScriptMessageHandler.svg?branch=master)](https://travis-ci.org/chicio/Explore-WKScriptMessageHandler)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/chicio/React-Native-Native-Modules-Communication/master/LICENSE.md)\n[![Supported platform](https://img.shields.io/badge/platforms-iOS-orange.svg)](https://img.shields.io/badge/platforms-iOS-orange.svg)\n\n\nAn example project in which I explore how it is possible to use `WKScriptMessageHandler` to make some `WKWebView` web page to native communication.  \nThis is a project for my blog posts [Web to native communication on iOS using WKScriptMessageHandler](https://www.fabrizioduroni.it/2019/08/03/html-javascript-to-native-communication-ios/ \"Web to native communication on iOS using WKScriptMessageHandler\") \n\n### Description\n\nThis is a quote from the post:\n\n\u003e 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 `WKWebView`s 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. \n\nClick on the link above to read the posts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicio%2Fexplore-wkscriptmessagehandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchicio%2Fexplore-wkscriptmessagehandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicio%2Fexplore-wkscriptmessagehandler/lists"}