Firebase invites says invitation sent but has not been received

早过忘川 提交于 2019-12-03 22:11:05

I had the same problem and I managed to fix it, although I am not pretty sure what step actually helped.

It's worth specifying that in my case the email was perfectly sent when I removed the method call:

.setOtherPlatformsTargetApplication(...)

The following steps were applied:

  1. All fields were filled on Firebase console for Android and iOS project settings (including App ID Prefix and App Store ID).
  2. SHA-256 hashes (from debug and release keystore) were added for Firebase Android project settings:

    keytool -exportcert -keystore path-to-debug-or-production-keystore -list -v
    
  3. Updated google-services.json was downloaded from Firebase Android project settings and added to the application root (with GoogleServicesJson Build Action for Xamarin). So the file among others contains the following:

    ...
    "appinvite_service": {
      "status": 2,
      "other_platform_oauth_client": [
        {
          "client_id": "1234567890-specified_ios_client_id.apps.googleusercontent.com",
          "client_type": 2,
          "ios_info": {
            "bundle_id": "ios.app.bundle.id",
            "app_store_id": "9876543210"
          }
        },
        ...
      ]
    }
    ...
    

The specified client_id is the same in .setOtherPlatformsTargetApplication(...) method call and in google-services.json

Also Firebase Invites had been previously adjusted for the iOS project, but I don't see if it could help for the Android anyhow.

Removing .setOtherPlatformsTargetApplication(...) allowed Android to send invitations again.

When invitations are received on iOS though, they work correctly opening link with:

  • Gmail or Mail with app installed (opens app correctly)

They do not work properly:

  • Link reading email in Safari with app not installed, goes to google play store
    • Link in Gmail or Mail app, with app not installed, goes to google play store
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!