[SOLVED] Android App auto uninstalling itself issue

Hi,

we have strange behaviour with Cocos2d-x 3.81 + SDKBOX, when we do testing -> we installing app on android device from console everything works… and when we closing app it disappear from phone. How it can happen that app is unninstaled automatically?

Installing using android-studio flag

no one had such issue?

Will add there some keywords and solution:

intent-filter in manifest file to enable the open button on install

android - “Open” button disable after installing apk file.

So issue was with Android manifest file:

    <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sharesample" />
   </intent-filter>

We added here functionality to launch app from link and seems it conflicted with original settings, so when app was installed there was no option to open it and it was unvisible on mobile device.

What we changed, we splitted intent-filter:

<intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />


        </intent-filter>
        <intent-filter>

           <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:scheme="sharesample" />
        </intent-filter>