-
Notifications
You must be signed in to change notification settings - Fork 18
The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first. #64
Comments
Hi @mishrasatyam, |
@mishrasatyam add below in MainActivity.java |
This should not be necessary. |
Hey , I have created a repo . Please check . Thanks. |
@mishrasatyam Please follow the installation instructions correctly (see here):
Also see Before you begin and follow the instructions to configure sign-in with Facebook correctly. Please update your example and check if the problem still exists. |
Oh sorry, you didn't mean to use Facebook did you? You just installed the plugin. So the setup is correct. $ npx cap sync android
[error] Could not find installation of TypeScript.
To use capacitor.config.ts files, you must install TypeScript in your project, e.g. w/ npm install -D typescript
$ npm install -D typescript
added 1 package, and audited 209 packages in 2s
13 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
$ npx cap sync android
[error] Could not find the web assets directory: .\build.
Please create it and make sure it has an index.html file. You can change the path of this directory in
capacitor.config.ts (webDir option). You may need to compile the web assets for your app (typically npm run
build). More info: https://capacitorjs.com/docs/basics/workflow#sync-your-project It seems that the project is not yet configured correctly. I have created my own test project:
I get the following output after running
So everything is fine. I still can't reproduce it. Do you have any more information for me? What are the exact steps you take? |
Hey, just do npm install and npm run android in the repo i linked. It will build and open android studio. You can see error when you try to run on a Device |
I was able to reproduce it and will take a closer look the next few days. Thank you! |
As a temporary workaround, the Facebook provider should be disabled (if it is not needed) via the |
The message appears because the Facebook SDK does not find the required configurations. |
Current behavior:
I just installed @robingenz/capacitor-firebase-authentication@0.3.6 . I did not use it in the code and after sync with capacitor I get "The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first. "
Expected behavior:
Above behaviour should not happen . This is happening when I haven't even imported anything from the package yet.
Capacitor doctor:
The text was updated successfully, but these errors were encountered: