···11+import { Chrome } from './Chrome';
22+13export function WithFeatureChecks({ children }) {
24 if (!('serviceWorker' in navigator)) {
35 return (
···79810 if (!('PushManager' in window)) {
911 return (
1010- <p>sorry, your browser does not support WebPush for notifications</p>
1212+ <Chrome>
1313+ <p>Sorry, your browser does not support Web Push for notifications</p>
1414+ </Chrome>
1115 );
1216 }
13171418 if (!('Notification' in window)) {
1519 return (
1616- <p>sorry, your browser does not support creating system notifications</p>
2020+ <Chrome>
2121+ <p>Sorry, your browser does not support the Notifications API for creating system notifications</p>
2222+ <p>If you're on iOS, you can try tapping <strong>add to home screen</strong> from the <strong>share</strong> menu, and then opening <strong>Spacedust</strong> from your home screen to unlock notifications support, but note that Web Push in iOS is unreliable.</p>
2323+ </Chrome>
1724 );
1825 }
1926
+2-2
atproto-notifications/src/pages/Early.tsx
···3535 <li>Many features can easily be added! Some others can't! Make a request and let's see :)</li>
3636 <li>It's not a long-term committed part of microcosm <em>(yet)</em></li>
3737 </ol>
3838- <p>Sadly, it doesn't really work on mobile. On iOS you can hit "share" and "add to home screen" to get things eventually mostly set up, but push delivery will stop after a few minutes. Android people might have better luck?</p>
3838+ <p>Sadly, it doesn't really work on mobile. iOS will stop delivering notifications after some minutes. Android people might have better luck?</p>
3939+ <p>With that out of the way, let's cover some basics!</p>
3940 <h3>Hello hello</h3>
4040- <p>With that out of the way, let's cover some basics.</p>
4141 <p>
4242 To see a test notification, <button onClick={localTest}>click on this</button>. This is a local-only test.
4343 </p>