Coder Social home page Coder Social logo

Comments (10)

robingenz avatar robingenz commented on May 23, 2024

Hi @mishrasatyam,
I tried to reproduce the problem, but unfortunately I did not get it.
I do not receive any error message after sync.
Can you please provide me a Minimal, Reproducible Example (see here) and the exact steps?

from capacitor-firebase-authentication.

pradeepmdk avatar pradeepmdk commented on May 23, 2024

@mishrasatyam add below in MainActivity.java
public class MainActivity extends BridgeActivity {
@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FacebookSdk.sdkInitialize(getApplicationContext());
}
}

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

This should not be necessary.
If you provide a minimal, reproducible example, I will try to fix the problem.

from capacitor-firebase-authentication.

mishrasatyam avatar mishrasatyam commented on May 23, 2024

Hey , I have created a repo . Please check . Thanks.

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

@mishrasatyam Please follow the installation instructions correctly (see here):

  1. android/app/src/main/res/values/strings.xml does not contain the required configuration values
  2. android/app/src/main/AndroidManifest.xml does not contain the required configuration values

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.

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

Oh sorry, you didn't mean to use Facebook did you? You just installed the plugin. So the setup is correct.
I tried to reproduce the issue with your repo but get the following error messages:

$ 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:

npx ionic start
npx ionic build
npm install @robingenz/capacitor-firebase-authentication firebase
npx ionic cap add android

I get the following output after running npx cap sync:

√ Copying web assets from www to android\app\src\main\assets\public in 1.67s
√ Creating capacitor.config.json in android\app\src\main\assets in 1.66ms
√ copy android in 1.72s
√ Updating Android plugins in 8.56ms
[info] Found 4 Capacitor plugins for android:
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @robingenz/[email protected]
√ update android in 104.04ms
√ copy web in 1.10ms
√ update web in 979.90μp
[info] Sync finished in 1.83s

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?

from capacitor-firebase-authentication.

mishrasatyam avatar mishrasatyam commented on May 23, 2024

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

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

I was able to reproduce it and will take a closer look the next few days. Thank you!

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

As a temporary workaround, the Facebook provider should be disabled (if it is not needed) via the providers configuration option.
I will publish a fix today.

from capacitor-firebase-authentication.

robingenz avatar robingenz commented on May 23, 2024

The message appears because the Facebook SDK does not find the required configurations.
The SDK is required for this plugin to provide Facebook sign-in functionality.
The message now no longer causes the app to crash.
The fix will be included in version 0.3.10.

from capacitor-firebase-authentication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.