Giter VIP home page Giter VIP logo

Comments (10)

peterpeterparker avatar peterpeterparker commented on August 14, 2024 2

Thanks a lot @jgw96 and @andreban for your time on both two issues I submitted, really cool and appreciated 👍

from cloudapk.

peterpeterparker avatar peterpeterparker commented on August 14, 2024 2

I have also make some enhancement on our side to be "maskable" compatible and the result is really cool!

Thank you @jgw96 for the fix 👍

2020-04-24 19 18 55

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024 1

No problem at all, the icon is looking really good!

from cloudapk.

msftbot avatar msftbot commented on August 14, 2024

Hello peterpeterparker, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

from cloudapk.

msftbot avatar msftbot commented on August 14, 2024

Hello peterpeterparker, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Hmm we are not doing anything special with icons so this might be an issue in bubblewrap itself. @andreban are you aware of any issues like this?

from cloudapk.

andreban avatar andreban commented on August 14, 2024

The problem is that CloudAPK is setting maskableIconUrl, but the icon is not maskable. Maskable icons need some gaps from their borders, More info on maskable icons here: https://web.dev/maskable-icon/ and Android specifics here: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

Here's what the payload passed to generateSignedApkZip looks like:

{
    "packageId": "com.deckdeckgo.twa",
    "host": "deckdeckgo.com",
    "name": "DeckDeckGo",
    "themeColor": "#ffffff",
    "navigationColor": "#ffffff",
    "backgroundColor": "#ffffff",
    "startUrl": "/",
    "iconUrl": "https://deckdeckgo.com/assets/favicon/android-chrome-192x192.png",
    "maskableIconUrl": "https://deckdeckgo.com/assets/favicon/android-chrome-192x192.png",
    "appVersion": "1.0.0",
    "useBrowserOnChromeOS": true,
    "splashScreenFadeOutDuration": 300,
    "enableNotifications": false,
    "shortcuts": [],
    "signingInfo": {
        "fullName": "John Doe",
        "organization": "Contoso",
        "organizationalUnit": "Engineering Department",
        "countryCode": "US"
    }
}

But there's no maskable icon in the Web Manifest at https://deckdeckgo.com/manifest.json:

{
  "name": "DeckDeckGo",
  "short_name": "DeckDeckGo",
  "display": "standalone",
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "scope": "/",
  "start_url": "/",
  "orientation": "portrait",
  "icons": [
    {
      "src": "/assets/favicon/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "/assets/favicon/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ]
}

So, the solution is to only set maskableIconUrl if there's a maskable icon in the Web Manifest.

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Thanks again @andreban ! @peterpeterparker ill get this fixed up (:

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Fixed pwa-builder/PWABuilder@59d6c89 . @peterpeterparker I am going to deploy this fix and the fix for #19 , let me know if you run into any other issues! Also, thanks @andreban for the help!

from cloudapk.

jgw96 avatar jgw96 commented on August 14, 2024

Fixes deployed, Thanks again @peterpeterparker (:

from cloudapk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.