Skip to content

With seamless integration and minimal setup, it provides a flexible solution for customizing your app's icon based on specific in-game events.

Notifications You must be signed in to change notification settings

dreamcodestudio/com.dreamcode.mobile.dynamic-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 What is Dynamic Mobile Icon package?

The best way to dynamically changing app icon.

d-i

πŸ’» Usage

using DreamCode.DynamicIcon;

string[] icons =
    {
        "UnityPlayerActivity",
        "AlternativeIcon1",
        "AlternativeIcon2",
        "AlternativeIcon3",
    };

IconChangerService.Setup(icons);
// Set alternative icon
IconChangerService.ApplyAlternateIcon("AlternativeIcon3");
// Reset to default icon
IconChangerService.ApplyAlternateIcon("UnityPlayerActivity");

Android Setup

Define a activity-alias with custom icons in your AndroidManifest.xml file by path:

Assets > Plugins > Android

Here's an example:

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
    xmlns:tools="http://schemas.android.com/tools">
    <application>
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:theme="@style/UnityThemeSelector">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        </activity>

        <activity-alias
                android:exported="true"
                android:icon="@mipmap/ic_launcher_1"
                android:name=".AlternativeIcon1"
                android:enabled="false"
                android:targetActivity="com.unity3d.player.UnityPlayerActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>
        <activity-alias
                android:exported="true"
                android:icon="@mipmap/ic_launcher_2"
                android:name=".AlternativeIcon2"
                android:enabled="false"
                android:targetActivity="com.unity3d.player.UnityPlayerActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>
        <activity-alias
                android:exported="true"
                android:icon="@mipmap/ic_launcher_3"
                android:name=".AlternativeIcon3"
                android:enabled="false"
                android:targetActivity="com.unity3d.player.UnityPlayerActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>
    </application>
</manifest>

Add DynamicIcon.androidlib in Assets > Plugins > Android:

explorer_3gBZbWaVpR explorer_g2KYTgleza

iOS Setup

Setup Info.plist: Add Icon files (iOS 5) to the Information Property List Add CFBundleAlternateIcons as a dictionary, it is used for alternative icons

Here's an example:

Screenshot 2024-11-10 at 21 12 54 Screenshot 2024-11-10 at 21 13 28

✨ Showcase

dynamic-icon.mp4

βœ‰οΈ Contact

Telegram

Email

πŸ”‘ License

Unity Asset Store EULA

About

With seamless integration and minimal setup, it provides a flexible solution for customizing your app's icon based on specific in-game events.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy