Browser-tab plugin does not work on android

I have been developing an app with ios only but now that I am trying to implem,ent openID authentication to my app after adding @ionic-native/browser-tab to implement the authentication flow , in Android simple does nnot build , missing package.

/mymachinepath/android/capacitor-cordova-android-plugins/src/main/java/com/google/cordova/plugin/browsertab/BrowserTab.java:21: error: cannot find symbol
import android.support.customtabs.CustomTabsIntent;
^
symbol: class CustomTabsIntent
location: package android.support.customtabs

Im using ionic v5 angular.

This works fine under ios platform but I do not seem to be able to run android .

Surely there is a solution for this ?

Thank you in advance for any help provided.

Paulo

Made some progress on this, using Browser plugin from @capacitor/core does indeed open browser to load the login page in both ios and android.

I have managed to setup custom url scheme so redirects to myCusltomScheme://somepage

but its asking for permission to open back the app and as a result it opens the back with a link above to go back to safari , not what I’m after.

Can anyone point me to the best practice on this please?

I’m having the same issue now with Android. Did you manage to find a solution?