We are the ones behind
NativeBase (~7100 GitHub Stars)
A mixture of mobile and web app
Chrome uses a set of criteria and visit frequency heuristics to determine when to show the banner
<link rel="manifest" href="/manifest.json">
Push messaging provides a simple and effective way to re-engage with users.
const pushSubscription = {
endpoint: '.....',
keys: {
auth: '.....',
p256dh: '.....',
}
);
webpush.sendNotification(pushSubscription, 'Your Push Payload Text');
What happens to your app when there is no internet connection?
It is up to the developer to display notifications on the web app to inform the user that a new update is available
import React from 'react';
export default class AsyncComponent extends React.Component {
state = {
component: null
}
componentDidMount() {
// load component on mount
import('./LineChart').then((LineChartComponent) => {
this.setState({
component: LineChartComponent
});
}).catch((error) => {
console.warn('Error while loading component');
})
}
render() {
if (this.state.component) {
return <this.state.component />
}
return (<div>Loading</div>);
}
}
A collection of libraries and build tools that makes it easy to store your website's file locally, on your user's devices.
workbox.prechache([
{
"url: "index.html",
"revision": "b3e7893b20c49d0c927050682c99df3"
}
]);
const workboxSW = new WorkboxSW();
const networkFirst = workboxSW.strategies.networkFirst();
workboxSW.router.registerRouter('/schedule', networkFirst);