Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 2.33 KB

File metadata and controls

73 lines (50 loc) · 2.33 KB

Breaking Changes

This is a comprehensive list of the breaking changes introduced in the major version releases of Capacitor Firebase Authentication plugin.

Versions

Version 1.x.x

Capacitor 4

This plugin now supports Capacitor 4 only. Please run npx cap sync after updating this package.

If you want to use this plugin with Capacitor 3, please install version 0.5.1:

npm i @capacitor-firebase/[email protected]

providers configuration option

Using the providers configuration option you can select which providers (Google, Facebook, ...) should be loaded by the plugin.
Previously, all providers were loaded by default.
From now on, no providers will be loaded by default.
Please set the providers configuration option and specify all providers you use.

Example (capacitor.config.ts):

/// <reference types="@capacitor/firebase-authentication" />

import { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  plugins: {
    FirebaseAuthentication: {
      skipNativeAuth: false,
      providers: ["apple.com", "facebook.com"],
    },
  },
};

export default config;

Facebook Sign-In

⚠️ You may encounter the following error with Gradle lint: Class referenced in the manifest, com.facebook.FacebookActivity, was not found in the project or the libraries [MissingClass].
Check out this comment in that case: issues/117#issuecomment-1208612107.

Version 0.4.x

Add the following string element to android/app/src/main/res/values/strings.xml after the resources element:

<string name="facebook_app_id">[APP_ID]</string>
<string name="fb_login_protocol_scheme">fb[APP_ID]</string>
+ <string name="facebook_client_token">[CLIENT_TOKEN]</string>

Add the following meta-data element to android/app/src/main/AndroidManifest.xml inside the application element:

<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"/>