Skip to content

PWA Schematic: generate Artifacts / link and meta for iOS #23504

@d-koppenhagen

Description

@d-koppenhagen

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

Adding PWA functionality using the provided schematic will already generate an example manifest file and icons linked in it.
Using a PWA on iOS will evaluate special <link>/<meta> tags for things such as Splashscreen or Statusbar customization.

Some details can be found here:
https://appsco.pe/developer/splash-screens

This necessary tags should be generated by the schematic by default or at least by providing an option like --ios.

Describe the solution you'd like

Generate example spalshscreen for iOS and link it in index.html when an option --ios is set:

ng add @angular/pwa --ios

This will cause:

  • Add Default Splashscreen in src/assets/splashscreen-ios.png
  • Modify index.html:
<!doctype html>
<html lang="en">
<head>
  ...
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="default">
  <link rel="apple-touch-startup-image" href="assets/splashscreen-ios.png">
  <link rel="apple-touch-icon" href="assets/icons/icon-512x512.png">
</head>
...
</html>

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular/pwafeatureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authors

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions