capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 52 forks source link

Plugin is opening webview instead of a library (Android) #90

Open jammin197 opened 2 years ago

jammin197 commented 2 years ago

Describe the bug Hello, clicking the FB login button, which triggers a function FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS }) is opening something which looks like inapp browser instead of a native facebook library. I triple checked the guide how to use this plugin and made the same for my app. I did not find anything different but embedded browser is always opened. I also tried to completely reinstall the plugin but issue still remains. FB approval team, which sometimes test the applications with FB login send me a request to fix a FB login in my app. It is completely not working on their testing devices! I tried to ask them about OS version or device type, but unfortunately they are not allowed to share this kind of information :( For me the FB login works correctly on all of my testing devices and also the emulators but it is using some embedded browser or something like that... so maybe this could indicate a problem.

To Reproduce Steps to reproduce the behavior:

  1. Click on a FB button
  2. Call FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS })

Code

import { FacebookLogin, FacebookLoginResponse } from '@capacitor-community/facebook-login';

fbLoginClick() {
    const FACEBOOK_PERMISSIONS = ['email', 'public_profile'];
    FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS }).then((result) => {
          ....
    }).catch((error) => {
          // SEE! **this error is thrown on FB team testing device!!!**
          this.utils.log('ERROR', 'FacebookLogin.login()', 'error catched', error);
          this.utils.presentToast(this.configService.getApplicationText('fb.login.error', { code: -3 }), 'info-toast', 15000);
    });
}

Expected behavior Native FB library should be opened.

Screenshots image

Desktop (please complete the following information): On desktop OK

Smartphone (please complete the following information):

Additional context Biggest problem is, that FB approval team want to suspend my application, because it is completely not working on their testing devices. This statement I cannot reproduce, because for me the login works correctly on all android devices, but maybe there is generally something bad with this plugin, because it looks like it is using some web view or embedded browser. Maybe something (some library) is missing? Or there is some conflict with another plugin? Attached is Logcat, package.json and Android.manifest.

It would be really helpful to find an issue, because FB team gave me a deadline to suspend my app. :/ I spend 4 days on investigating this issue but with no successs... I am really lost what can be wrong. Thank you in advance to look on this issue.

Logcat

2022-03-23 19:36:05.140 1779-1792/? D/hwcomposer: hw_composer sent 114 syncs in 63s
2022-03-23 19:36:05.146 11255-11362/xx.xxxxxxx.xxxxxxxxxxx V/Capacitor/Plugin: To native (Capacitor plugin): callbackId: 72931006, pluginId: FacebookLogin, methodName: login
2022-03-23 19:36:05.146 11255-11362/xx.xxxxxxx.xxxxxxxxxxx V/Capacitor: callback: 72931006, pluginId: FacebookLogin, methodName: login, methodData: {"permissions":["email","public_profile"]}
2022-03-23 19:36:05.146 11255-11332/xx.xxxxxxx.xxxxxxxxxxx D/Capacitor/FacebookLogin: Entering login()

    --------- beginning of system
2022-03-23 19:36:05.234 6890-10574/? I/ActivityManager: START u0 {act=NATIVE_WITH_FALLBACK cmp=xx.xxxxxxx.xxxxxxxxxxx/com.facebook.FacebookActivity (has extras)} from uid 10086
2022-03-23 19:36:05.260 11255-11255/xx.xxxxxxx.xxxxxxxxxxx D/Capacitor: App paused
2022-03-23 19:36:05.294 11255-11255/xx.xxxxxxx.xxxxxxxxxxx W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@d839f79
2022-03-23 19:36:05.463 11255-11458/xx.xxxxxxx.xxxxxxxxxxx E/FA: Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
2022-03-23 19:36:05.492 7453-7453/? D/BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
2022-03-23 19:36:05.493 7453-7453/? D/BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
2022-03-23 19:36:05.591 6890-10574/? I/ActivityManager: START u0 {cmp=com.facebook.katana/.ProxyAuth (has extras)} from uid 10086
2022-03-23 19:36:05.595 6890-7472/? I/ActivityManager: START u0 {cmp=com.facebook.wakizashi/com.facebook.katana.ProxyAuth (has extras)} from uid 10086
2022-03-23 19:36:05.642 6890-7483/? I/ActivityManager: START u0 {cmp=xx.xxxxxxx.xxxxxxxxxxx/com.facebook.CustomTabMainActivity (has extras)} from uid 10086
2022-03-23 19:36:05.801 11255-11255/xx.xxxxxxx.xxxxxxxxxxx W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c9271b6
2022-03-23 19:36:05.830 6890-7486/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://m.facebook.com/... pkg=com.android.chrome cmp=com.android.chrome/com.google.android.apps.chrome.IntentDispatcher (has extras)} from uid 10086
2022-03-23 19:36:05.957 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2022-03-23 19:36:05.968 1587-1628/? I/chatty: uid=1000(system) HwBinder:1587_1 identical 1 line
2022-03-23 19:36:05.975 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2022-03-23 19:36:06.089 11099-11099/? W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@87b1f27
2022-03-23 19:36:06.153 11255-11346/xx.xxxxxxx.xxxxxxxxxxx D/EGL_emulation: eglMakeCurrent: 0x7e60b669a880: ver 3 0 (tinfo 0x7e60b66d4120)
2022-03-23 19:36:06.314 11255-11346/xx.xxxxxxx.xxxxxxxxxxx I/chatty: uid=10086(xx.xxxxxxx.xxxxxxxxxxx) RenderThread identical 2 lines
2022-03-23 19:36:06.350 11255-11346/xx.xxxxxxx.xxxxxxxxxxx D/EGL_emulation: eglMakeCurrent: 0x7e60b669a880: ver 3 0 (tinfo 0x7e60b66d4120)
2022-03-23 19:36:06.386 6890-6991/? I/GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@6d1999b)
2022-03-23 19:36:06.386 6890-6903/? I/GnssLocationProvider: WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@6d1999b)
2022-03-23 19:36:06.537 6890-6939/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://m.facebook.com/... flg=0x800000 pkg=com.android.chrome cmp=com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity (has extras)} from uid 10053
2022-03-23 19:36:06.634 11099-11099/? W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@3faaa79
2022-03-23 19:36:06.746 11099-11469/? I/cr_tabmodel: Starting to fetch tab list for tab_state7
2022-03-23 19:36:06.746 11099-11469/? I/cr_tabmodel: State file does not exist.
2022-03-23 19:36:06.796 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2022-03-23 19:36:06.865 11099-11129/? D/EGL_emulation: eglMakeCurrent: 0xe7b13180: ver 3 0 (tinfo 0xe7b03310)
2022-03-23 19:36:06.879 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2022-03-23 19:36:06.922 6890-6912/? I/ActivityManager: Displayed com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity: +283ms (total +50s723ms)
2022-03-23 19:36:06.938 1684-1717/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:06.940 1684-1717/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:06.948 1684-1717/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:06.949 1684-1717/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:06.962 6996-6996/? I/GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
2022-03-23 19:36:06.963 6996-6996/? I/GoogleInputMethod: onStartInput() : Dummy InputConnection bound
2022-03-23 19:36:06.969 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496
2022-03-23 19:36:07.054 11099-11099/? I/cr_ContextualSearch: Tap suppression enabled: false
2022-03-23 19:36:07.054 11099-11099/? I/cr_ContextualSearch: Consructing ContextualSearchRankerLoggerImpl, enabled: true
2022-03-23 19:36:07.157 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 7479296
2022-03-23 19:36:07.168 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.206 7005-7210/? I/chatty: uid=10022(com.android.systemui) RenderThread identical 1 line
2022-03-23 19:36:07.234 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.242 11158-11178/? D/EGL_emulation: eglCreateContext: 0xe7ad83a0: maj 3 min 0 rcv 3
2022-03-23 19:36:07.259 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:07.279 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.312 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.372 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.374 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.375 11255-11346/xx.xxxxxxx.xxxxxxxxxxx D/EGL_emulation: eglMakeCurrent: 0x7e60b669a880: ver 3 0 (tinfo 0x7e60b66d4120)
2022-03-23 19:36:07.382 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.387 6890-6991/? I/GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@9643314)
2022-03-23 19:36:07.388 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.389 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.390 1779-1779/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.392 6890-6903/? I/GnssLocationProvider: WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@9643314)
2022-03-23 19:36:07.399 1684-1718/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.402 1684-1718/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.407 1684-1718/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.409 1684-1718/? D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
2022-03-23 19:36:07.411 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.418 7005-7210/? D/EGL_emulation: eglMakeCurrent: 0x7e60b8552600: ver 3 0 (tinfo 0x7e60c813d3e0)
2022-03-23 19:36:07.540 11099-11109/? I/.android.chrom: Background concurrent copying GC freed 7589(499KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 2MB/5MB, paused 56.877ms total 299.346ms
2022-03-23 19:36:07.584 6996-6996/? I/GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
2022-03-23 19:36:07.585 6996-6996/? I/GoogleInputMethod: onStartInput() : Dummy InputConnection bound
2022-03-23 19:36:07.596 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 7479296
2022-03-23 19:36:07.907 1587-1628/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 7479296
2022-03-23 19:36:07.924 11255-11255/xx.xxxxxxx.xxxxxxxxxxx D/Capacitor/AppPlugin: Firing change: false
2022-03-23 19:36:07.924 11255-11255/xx.xxxxxxx.xxxxxxxxxxx V/Capacitor/AppPlugin: Notifying listeners for event appStateChange
2022-03-23 19:36:07.926 11255-11255/xx.xxxxxxx.xxxxxxxxxxx D/Capacitor: App stopped
2022-03-23 19:36:07.957 11255-11255/xx.xxxxxxx.xxxxxxxxxxx D/Capacitor: Saving instance state!
2022-03-23 19:36:08.027 11255-11255/xx.xxxxxxx.xxxxxxxxxxx I/Capacitor/Console: File: http://localhost/main.js - Line 11790 - Msg: DEBUG: App.appStateChange> Is active?
2022-03-23 19:36:08.511 11255-11458/xx.xxxxxxx.xxxxxxxxxxx E/FA: Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
2022-03-23 19:36:08.655 7453-7466/? I/gle.android.gm: Background concurrent copying GC freed 84891(3MB) AllocSpace objects, 26(1352KB) LOS objects, 35% free, 11MB/17MB, paused 717us total 128.195ms
2022-03-23 19:36:09.095 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7b13a20: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.104 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad8b80: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.665 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.720 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7b13a20: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.733 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.738 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7b13a20: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.747 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad8b80: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:09.817 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.186 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad8b80: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.193 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.203 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad8b80: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.263 11099-11099/? I/chromium: [INFO:CONSOLE(58)] "ErrorUtils caught an error:

    Tried to get element with id of "m_login_auto_search_form_contactpoint_hidden_input" but it is not present on the page

    Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.", source: https://static.xx.fbcdn.net/rsrc.php/v3/y0/r/DLCuXT3rbtU.js?_nc_x=Ij3Wp8lg5Kz (58)
2022-03-23 19:36:10.458 1776-1776/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2022-03-23 19:36:10.458 1776-1776/? E/netmgr: WifiForwarder unable to open QEMU pipe: Invalid argument
2022-03-23 19:36:10.822 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7b13a20: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.847 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad8b80: ver 3 0 (tinfo 0xe7b03700)
2022-03-23 19:36:10.977 11158-11178/? D/EGL_emulation: eglMakeCurrent: 0xe7ad83a0: ver 3 0 (tinfo 0xe7b03700)

All plugins

{
  "name": "xxxxxxx-xxxx",
  "version": "1.0.0",
  "author": "Xxxxxxx",
  "homepage": "https://www.xxxxxxx.xx",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "browser": {
    "crypto": false
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^12.2.15",
    "@angular/core": "^12.2.15",
    "@angular/forms": "^12.2.15",
    "@angular/localize": "^12.2.15",
    "@angular/platform-browser": "^12.2.15",
    "@angular/platform-browser-dynamic": "^12.2.15",
    "@angular/router": "^12.2.15",
    "@angular/service-worker": "^12.2.15",
    "@capacitor-community/apple-sign-in": "^1.0.1",
    "@capacitor-community/facebook-login": "^3.3.0",
    "@capacitor-community/firebase-analytics": "^1.0.1",
    "@capacitor/android": "^3.4.3",
    "@capacitor/app": "^1.1.1",
    "@capacitor/camera": "^1.3.1",
    "@capacitor/clipboard": "^1.0.8",
    "@capacitor/core": "^3.4.3",
    "@capacitor/geolocation": "^1.3.1",
    "@capacitor/haptics": "^1.1.4",
    "@capacitor/ios": "^3.4.3",
    "@capacitor/keyboard": "^1.2.2",
    "@capacitor/local-notifications": "^1.1.0",
    "@capacitor/push-notifications": "^1.0.9",
    "@capacitor/splash-screen": "^1.2.2",
    "@capacitor/status-bar": "^1.0.8",
    "@capacitor/storage": "^1.2.5",
    "@codetrix-studio/capacitor-google-auth": "^3.1.0",
    "@googlemaps/js-api-loader": "^1.13.8",
    "@ionic-native/call-number": "^5.36.0",
    "@ionic-native/core": "^5.36.0",
    "@ionic-native/http": "^5.36.0",
    "@ionic-native/in-app-browser": "^5.36.0",
    "@ionic-native/native-geocoder": "^5.36.0",
    "@ionic/angular": "^5.9.3",
    "@ng-bootstrap/ng-bootstrap": "^10.0.0",
    "@types/crypto-js": "^4.1.1",
    "bootstrap": "4.5.3",
    "call-number": "^1.0.1",
    "cordova-plugin-advanced-http": "^3.2.2",
    "cordova-plugin-file": "^6.0.2",
    "cordova-plugin-inappbrowser": "^5.0.0",
    "cordova-plugin-nativegeocoder": "^3.4.1",
    "crypto-js": "^4.1.1",
    "moment": "^2.29.1",
    "ngx-image-compress": "^11.0.3",
    "rxjs": "^6.6.7",
    "tslib": "^2.3.1",
    "uuid": "^8.3.2",
    "zone.js": "^0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^12.2.14",
    "@angular/cli": "^12.2.14",
    "@angular/compiler": "^12.2.15",
    "@angular/compiler-cli": "^12.2.15",
    "@angular/language-service": "^12.2.15",
    "@capacitor/cli": "^3.3.4",
    "@ionic/angular-toolkit": "^5.0.3",
    "@types/google.maps": "^3.47.2",
    "@types/jasmine": "^3.9.1",
    "@types/jasminewd2": "^2.0.10",
    "@types/node": "^16.9.4",
    "codelyzer": "^6.0.2",
    "jasmine-core": "^3.9.0",
    "jasmine-spec-reporter": "^7.0.0",
    "karma": "^6.3.4",
    "karma-chrome-launcher": "^3.1.0",
    "karma-coverage": "^2.0.3",
    "karma-coverage-istanbul-reporter": "^3.0.3",
    "karma-jasmine": "^4.0.1",
    "karma-jasmine-html-reporter": "^1.7.0",
    "protractor": "^7.0.0",
    "ts-node": "^10.2.1",
    "tslint": "^6.1.3",
    "typescript": "^4.3.5"
  },
  "description": "Application for Xxxxxxx customers"
}

Android manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="xx.xxxxxxx.xxxxxxxxxxx">

  <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:usesCleartextTraffic="true">

    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
    <meta-data android:name="com.facebook.sdk.ClientToken" android:value="@string/facebook_client_token"/>
    <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_launcher" />

    <activity
      android:name="xx.xxxxxxx.xxxxxxxxxxx.MainActivity"
      android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
      android:label="@string/title_activity_main"
      android:launchMode="singleTask"
      android:screenOrientation="portrait"
      android:theme="@style/AppTheme.NoActionBarLaunch">

      <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" />
        <category android:name="android.intent.category.BROWSABLE" />

        <data android:scheme="@string/custom_url_scheme" />
      </intent-filter>

    </activity>

    <provider
      android:name="androidx.core.content.FileProvider"
      android:authorities="${applicationId}.fileprovider"
      android:exported="false"
      android:grantUriPermissions="true">
      <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/file_paths"></meta-data>
    </provider>
  </application>

  <!-- Permissions -->

  <uses-permission android:name="android.permission.INTERNET" />
  <!-- Camera, Photos, input file -->
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <!-- Geolocation API -->
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <uses-feature android:name="android.hardware.location.gps" />

  <!-- Navigator.getUserMedia -->
  <!-- Video -->
  <uses-permission android:name="android.permission.CAMERA" />
  <!-- Audio -->
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
</manifest>
miraboh commented 2 years ago

Having same issue,

filipRisteski commented 2 years ago

Same issue here, we tested mainly with iphones, and it's the first time I notice this behavior on Androids. Anybody any idea why is this happening?

andrewl94 commented 1 year ago

Same is happening here. Capacitor 3, plugin version 3.4.0, 3.3.0 I completely reinstalled the plugin, purged cache, downgraded versions, etc. It is only happening in Android.

Have anyone found out what is happening?

gkielwasser commented 1 year ago

I'm using the v4 version of the plugin

Here is the same issue on facebook android sdk https://github.com/facebook/facebook-android-sdk/issues/1156

It seems intimately linked to the state of the profile page in Facebook app. Here I have detailed how I can reproduce this behavior: https://github.com/facebook/facebook-android-sdk/issues/1156#issuecomment-1488895459

Is anyone experiencing the same issue on android, or, having a working implementation on android ?

cuvant commented 9 months ago

Hi @gkielwasser did you have any luck finding a solution?