You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each demo's `assets/` directory holds the three 1024x1024 source images that [`@capacitor/assets`](https://capacitorjs.com/docs/guides/splash-screens-and-icons) consumes:
43
+
44
+
```
45
+
assets/
46
+
├── icon-only.png # OneSignal logo on white
47
+
├── icon-foreground.png # OneSignal logo on transparent (Android adaptive foreground)
48
+
└── icon-background.png # solid white (Android adaptive background)
44
49
```
45
50
46
-
After generating, remove the adaptive icon files so Android uses the generated PNGs directly (the adaptive icon XMLs reference the default Capacitor foreground and override them):
51
+
To (re)generate all native icon assets, run from inside a demo:
Then verify both platforms picked up the OneSignal logo and not a default Capacitor icon:
57
-
58
-
- iOS: open `ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png`
59
-
- Android: open `android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png`
60
-
61
-
If either still shows the default Capacitor blue X, re-run the generator. `@capacitor/assets generate` has been observed to silently skip the iOS output on a first run.
57
+
That produces the full Android adaptive icon set (foreground/background mipmaps + `mipmap-anydpi-v26/ic_launcher{,_round}.xml`) and the iOS `AppIcon.appiconset`. No additional steps.
62
58
63
59
### Build & run scripts
64
60
@@ -224,7 +220,9 @@ examples/
224
220
├── package.json
225
221
├── .env.example
226
222
├── assets/
227
-
│ └── icon-only.png # Source for @capacitor/assets generate
0 commit comments