摘要:
On Android and in Chrome (but not on iOS), it's possible to send push notifications with a PWA. We'll start by asking the user for permission to send 阅读全文
摘要:
Let's say we have two strings: str1 = 'ACDEB' str2 = 'AEBC' We need to find the longest common subsequence, which in this case should be 'AEB'. Using 阅读全文
摘要:
It's possible to access some, but not all, of the native device features from a PWA. One that we canaccess, is the camera and camera roll. We'll use t 阅读全文
摘要:
Because an installed PWA is really just a web app running in a browser, there are some browser behaviors that we may not want in our app, if we're goi 阅读全文
摘要:
Android displays a splash screen for PWAs based on the icons and names you provide, but iOS just displays a solid color splash screen for installed PW 阅读全文
摘要:
We're storing JSON data in the cache - but that only applies to HTTP GET requests - and not to POST or DELETE requests. We'll add a fetch event listen 阅读全文
摘要:
We can view the PWA offline because we are caching the static and CDN assets for the app - but the list of todo items won't display, because those API 阅读全文
摘要:
Our service worker caches our static assets - but only those assets that are included in our React App. This means that assets like Bootstrap, which w 阅读全文
摘要:
The default service worker that comes with create-react-app doesn't allow for very much configuration. We'll replace that default service worker in tw 阅读全文
摘要:
The k-nearest neighbors algorithm is used for classification of unknown items and involves calculating the distance of the unknown item's neighbors. W 阅读全文