{"id":376,"date":"2024-06-12T22:22:10","date_gmt":"2024-06-12T22:22:10","guid":{"rendered":"https:\/\/wordpress.org\/playground\/?page_id=376"},"modified":"2024-07-31T13:10:16","modified_gmt":"2024-07-31T13:10:16","slug":"wordpress-for-native-ios-apps","status":"publish","type":"page","link":"https:\/\/wordpress.org\/playground\/wordpress-for-native-ios-apps\/","title":{"rendered":"How to ship a real WordPress site in a native iOS app via Playground?"},"content":{"rendered":"\n

Blocknotes is the first iOS application that ran WordPress natively on iOS devices by leveraging WordPress Playground. Developed by Ella van Durpe, a core committer for WordPress, Blocknotes represents a significant leap in the capabilities of mobile applications by utilizing WebAssembly to run WordPress without the need for a traditional PHP server.<\/p>\n\n\n\n

This case study explores the features, technical implementation, and potential implications of Blocknotes for the future of mobile and web development.<\/p>\n\n\n\n

\n

Important!<\/strong> The current version of Blocknotes isn’t running WordPress Playground anymore. Since the initial release, the app was rewritten to only use the WordPress block editor without the rest of WordPress. This case study covers the early versions of Blocknotes that opened an entire world of new possibilities for WordPress.<\/p>\n<\/div>\n\n\n\n

Blocknotes features<\/h2>\n\n\n\n

Blocknotes allows users to create and edit notes using the WordPress block editor. The notes are automatically saved as HTML files to the user’s iCloud Drive and seamlessly synchronized across devices.<\/p>\n\n\n\n

Technical Implementation<\/h2>\n\n\n\n

Blocknotes operated as a WebView running an HTML page where a WebAssembly version of PHP was running WordPress. That HTML page was packaged as a native iOS via Capacitor<\/u><\/a>. This setup allowed WordPress to function in environments traditionally not supported.<\/p>\n\n\n\n

In Blocknotes GitHub repository<\/a> you can review the last Playground-based release. Here are the most important parts:<\/p>\n\n\n\n