dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
539 stars 361 forks source link

App listed as 'webIntentFilter' under Android settings for Location permissions #469

Closed rolinger closed 2 years ago

rolinger commented 2 years ago

As the subject says, when a user goes to Android Location Permissions in the phone Settings, my app is listed as webIntentFilter and displays the correct app icon. In fact, anywhere my app is listed in the Android Settings it now appears as webIntentFilter (with correct icon). It used to display my apps name correctly, and I have no idea when this became an issue. I searched my entire project root folder for webIntentFilter and got 17 hits across 12 files - but none of those hits were in sections that seem related to Location Services.

But in the regular apps listings, where users select an app to launch, it shows my app icon and correct app name.

In my config.xml:

<widget id="com.myAppName" ... >
      <name>myAppName</name>

So, obviously some android:label: 'webIntentFilter' is overriding my config.xml app name.

I am baffled by this. A google search on this issue turned up nothing. Since I enable Location, and other permission based services, from this plugin, I figured I could ask here to see if anyone knew what might be causing this.

rolinger commented 2 years ago

I found it....but I still have no idea how it happened.

In projectFolder\platforms\android\app\src\main\AndroidManifest.xml the main <application> section xml tag had the following:

<application
      android:allowBackup="false"
      android:fullBackupContent="false"
      android:fullBackupOnly="false"
      android:hardwareAccelerated="true"   
      android:icon="@mipmap/ic_launcher"
      android:label="webIntentFilter"          <----------------------------- here
      android: name="androidx.multidex.MultiDexApplication"
      .....
  >

Changing it to: android:label="myAppName" fixed it.