user1455310
user1455310

Reputation:

is it possible to hide the APP icon on home screen (Cordova - AngularApp)

I have a requirement as: There are two Apps APP "A" and APP "B". Here, APP B should open by any event triggered from APP A. For doing the same, I need to install both the apps on the device and is working fine. Here, I want to restrict the APP B from opening directly (from APP Launchpad/ Home Screen) so that it should open only from APP A. APP B is an hybrid APP built using Cordova.

Could you please suggest any possibility of handling the scenario.

Thanks in advance!

Upvotes: 0

Views: 1174

Answers (3)

hiren panchal
hiren panchal

Reputation: 59

If you want to remove launcher then replace this in AndroidManifest.xml file

category android:name="android.intent.category.LAUNCHER"

replace to :

category android:name="android.intent.category.DEFAULT"

Upvotes: 0

SystemParadox
SystemParadox

Reputation: 8656

With cordova-custom-config, you should be able to add something like this to your config.xml:

<preference name="android-manifest/application/activity[@android:name='MainActivity']/intent-filter" delete="true" />

You will probably have to delete platforms/android and run cordova prepare after making any changes.

Check the platforms/android/AndroidManifest.xml to see if it has worked.

Make sure you have cordova-custom-config >= 3.0.0.

Upvotes: 0

Naresh Kumar
Naresh Kumar

Reputation: 938

If you want to remove an app from default launcher then remove the following line in AndroidManifest.xml file

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

Hope this helps.

Upvotes: 1

Related Questions