Users facing issues logging into the Ionic APP using Lastpass password manager

Hello Team, when user tried lo login to the app using LastPass password manager, they are encountering security related issues and it doesn’t allow the user to login. It displays a alert message upon clicking login in button saying This site pose a technical security risk because it doesn’t use industry-standard encryption (it uses http, not https). Always stop and think before submitting your credentials to http site. Http://localhost

Below are few things I tried implementing but nothing worked.

  1. Added androidScheme: “https” in capacitor.config.ts file

  2. Added host name and allownavigation in capacitor.congif.ts file
    server: {
    androidScheme: “https”,
    iosScheme: “https”,
    // hostname: “example.com”,
    // allowNavigation: [“https://example.com/”]
    }

  3. Added android:usesCleartextTraffic=“true” in androidmanifest.xml file

  4. Added intent-filter in androidmanifest.xml file

  •            <action android:name="android.intent.action.VIEW" />*
    
  •            <category android:name="android.intent.category.DEFAULT" />*
    
  •            <category android:name="android.intent.category.BROWSABLE" />*
    
  •            <data android:scheme="https" />*
    
  •            <data android:host="example.com" />*
    
  •        </intent-filter>*
    

{
“iosScheme”: “https”,
“androidScheme”: “https”,
“hostname”: “example.com”,
“allowNavigation”: [“*.example.com”]
}

Check out this guide - Autofill Credentials | Capacitor Documentation

@siddhureddy99 were you able to get the LastPass app working with your ionic app?