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 · 10 comments
Open

[BUG] #4849

CreatorYo opened this issue Dec 6, 2024 · 10 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?

@jgw96
Copy link
Contributor

jgw96 commented Jan 6, 2025

@CreatorYo That would work too, but I really just need the URL to the app, so like https://bing.com for example. Thanks!

@CreatorYo
Copy link
Author

Alright, no worries at all!

https://blog.creatoryogames.com

@jgw96
Copy link
Contributor

jgw96 commented Jan 10, 2025

Thanks! So looking at it, I do see the shortcuts on my side
image

Maybe there is a caching issue going on on your end?

@CreatorYo
Copy link
Author

Did you download it from the Microsoft Store? On the app, it does not show the shortcuts.

I’m positively sure that it’s not cached, and in addition to that I’ve cleared my cache several times.

@jgw96
Copy link
Contributor

jgw96 commented Jan 13, 2025

Ahhh! You may need to generate a new package with PWABuilder and submit an update to the Microsoft Store. Sorry, I had missed the fact that it was only missing when installed from the MSFT Store.

@CreatorYo
Copy link
Author

CreatorYo commented Jan 13, 2025

No worries at all.

I've tried to package it again, but it still doesn't show the shortcuts for some reason.

@jgw96
Copy link
Contributor

jgw96 commented Jan 15, 2025

Hmmm, and im guessing you are testing it by sideloading? Could you share the link to the app in the MSFT store please? (my bad, I know you said above you could share it but I said you didnt need too)

@CreatorYo
Copy link
Author

No worries. Here's the link:
https://apps.microsoft.com/detail/9PMQZ59J9LPP

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