Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #4849

Open
CreatorYo opened this issue Dec 6, 2024 · 2 comments
Open

[BUG] #4849

CreatorYo opened this issue Dec 6, 2024 · 2 comments

Comments

@CreatorYo
Copy link

What happened?

Basically, I recently added shortcuts onto my manifest.json. Here is the complete code for reference:

{
  "name": "CYC Blog",
  "short_name": "CYC Blog",
  "start_url": "/",
  "theme_color": "#000000",
  "background_color": "#000000",
  "dir": "ltr",
  "orientation": "any",
  "description": "Your go-to platform for sharing and connecting through blogs and ideas.",
  "lang": "en-GB",
  "scope": "/",
  "display": "minimal-ui",
  "launch_handler": {
    "client_mode": "navigate-existing"
  },
  "icons": [
    {
      "src": "/images/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "/images/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "content_security_policy": {
    "default-src": [
      "'self'"
    ],
    "script-src": [
      "'self'",
      "https://cdnjs.cloudflare.com"
    ]
  },
  "shortcuts": [
    {
      "name": "Home",
      "short_name": "Home",
      "description": "Go to the homepage",
      "url": "/",
      "icons": [
        {
          "src": "/images/android-chrome-192x192.png",
          "sizes": "192x192",
          "type": "image/png"
        },
        {
          "src": "/images/android-chrome-512x512.png",
          "sizes": "512x512",
          "type": "image/png"
        }
      ]
    },
    {
      "name": "Create Blog",
      "short_name": "Create Blog",
      "description": "Create a new blog post",
      "url": "/create_blog",
      "icons": [
        {
          "src": "/images/android-chrome-192x192.png",
          "sizes": "192x192",
          "type": "image/png"
        },
        {
          "src": "/images/android-chrome-512x512.png",
          "sizes": "512x512",
          "type": "image/png"
        }
      ]
    }
  ],
  "edge_side_panel": {
    "enabled": true,
    "preferred_width": 400
  },
  "categories": [
    "social",
    "blogs",
    "community"
  ]

}

However though when I've published the changes on my website itself I don't see the changes applying. I have tried to repackage, but that doesn't help either and nothing is cached.

How do we reproduce the behavior?

Maybe try to investigate the problem to see why this is encountering.

What do you expect to happen?

What I expect is for the shortcuts to show.

What environment were you using?

Windows 11 Pro

Additional context

No response

@jgw96
Copy link
Contributor

jgw96 commented Dec 9, 2024

@CreatorYo do you have a URL to this app so that I can test myself? Also, if you open the app in Edge or Chrome, open devtools and then check the application tab, does it show any warnings? https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/progressive-web-apps/

@CreatorYo
Copy link
Author

It's on the Microsoft Store. Would you like me to send you the link?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants