app-icon-badge icon indicating copy to clipboard operation
app-icon-badge copied to clipboard

Not working in an expo environment

Open josefelbez opened this issue 10 months ago • 4 comments

Hi i can't make it work with a expo environment, the icon is generated correctly in the .expo/app-icon-badge folder but it doesnt appear when I run android or is not within the android folders correctly.

My icons are presented in app.config.ts as

icon: "./assets/icon.png",

android: {
    package: Env.BUNDLE_ID,
    adaptiveIcon: {
      foregroundImage: "./assets/adaptive-icon.png",
      backgroundColor: "#000000",
    },
  },

And the plugin is specified as"

[
      "app-icon-badge",
      {
        enabled: Env.APP_ENV !== "production", // enable/ disable the plugin based on the environment (usually disabled for production builds)
        badges: [
          {
            text: Env.APP_ENV,
            type: "banner",
          },
          {
            text: Env.VERSION.toString(),
            type: "ribbon",
          },
        ],
      },
    ],

this is the icon that is presented in .expo/app-icon-badge image

but it generates like this in the android res folder image

i tried to delete the android folders and run prebuild again but no changes

josefelbez avatar Apr 12 '24 19:04 josefelbez