This is a comprehensive list of the breaking changes introduced in the major version releases of Capacitor Firebase Authentication plugin.
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]
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;
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.
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"/>