iOS/iPadOS safari push api support

后端 未结 3 1900
终归单人心
终归单人心 2020-12-08 19:17

Does the iOS/iPadOS version of safari support push api standard with service worker?

相关标签:
3条回答
  • 2020-12-08 19:45

    iOS 12, 13, and now iOS/iPadOS 14 still doesn't support these features:

    • Web Push Notification
    • Background Sync
    • Page Lifecycle
    • Service Workers on WebViews
    • Universal Links / Link Capturing

    So many requests from the community for these features but Apple don't want to hear it. Maybe they think these features have a bigger chance to be unnecessary exploited(spam, etc). And also maybe they want to force developers to create the native application rather than the progressive web application.

    0 讨论(0)
  • 2020-12-08 19:45

    I tested iOS 12 in beta last week and as Anand said, there is no change about this functionnality and more globally for Progressive Web App because the Web Manifest, in developpement at this moment is not implemented yet.

    0 讨论(0)
  • 2020-12-08 19:54

    iOS don't support the W3C Spec web push notifications yet. But there is a Safari specific API for web notifications. Refer to this answer on multiple options you have.

    https://stackoverflow.com/a/49803408/1057093

    Update: Corrected the Answer in the above link to clarify proprietary solution is only for OS X - Safari and no solution for iOS Safari yet. Custom in app notification is the best we can do today for iOS Safari.

    0 讨论(0)
提交回复
热议问题