Uniting Web And Native Apps With 4 Unknown JavaScript APIs<\/h1>\nJuan Diego Rodr\u00edguez<\/address>\n 2024-06-20T18:00:00+00:00
\n 2024-10-15T23:05:45+00:00
\n <\/header>\n
A couple of years ago, four JavaScript APIs that landed at the bottom of awareness in the State of JavaScript survey<\/a>. I took an interest in those APIs because they have so much potential to be useful but don\u2019t get the credit they deserve. Even after a quick search, I was amazed at how many new web APIs have been added to the ECMAScript specification that aren\u2019t getting their dues and with a lack of awareness and browser support in browsers.<\/p>\nThat situation can be a \u201ccatch-22\u201d:<\/p>\n
\n\n <\/p>\nAn API is interesting but lacks awareness due to incomplete support, and there is no immediate need to support it due to low awareness.<\/p>\n
<\/a>\n <\/p>\n
\n\n \u201c<\/span><\/div>\n<\/p><\/div>\n<\/blockquote>\nMost of these APIs are designed to power progressive web apps (PWA) and close the gap between web and native apps. Bear in mind that creating a PWA involves more than just adding a manifest file<\/a>. Sure, it\u2019s a PWA by definition, but it functions like a bookmark on your home screen in practice. In reality, we need several APIs to achieve a fully native app experience on the web. And the four APIs I\u2019d like to shed light on are part of that PWA puzzle that brings to the web what we once thought was only possible in native apps.<\/p>\nYou can see all these APIs in action in this demo<\/a> as we go along.<\/p>\n1. Screen Orientation API<\/h2>\n
\n 2024-10-15T23:05:45+00:00
\n <\/header>\n
That situation can be a \u201ccatch-22\u201d:<\/p>\n
\n\n <\/p>\n
An API is interesting but lacks awareness due to incomplete support, and there is no immediate need to support it due to low awareness.<\/p>\n
<\/a>\n <\/p>\n
\n\n \u201c<\/span><\/div>\n<\/p><\/div>\n<\/blockquote>\nMost of these APIs are designed to power progressive web apps (PWA) and close the gap between web and native apps. Bear in mind that creating a PWA involves more than just adding a manifest file<\/a>. Sure, it\u2019s a PWA by definition, but it functions like a bookmark on your home screen in practice. In reality, we need several APIs to achieve a fully native app experience on the web. And the four APIs I\u2019d like to shed light on are part of that PWA puzzle that brings to the web what we once thought was only possible in native apps.<\/p>\n
You can see all these APIs in action in this demo<\/a> as we go along.<\/p>\n
1. Screen Orientation API<\/h2>\n