Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 2 Issues #208

Open
Zensynthium opened this issue Jan 28, 2022 · 1 comment
Open

Step 2 Issues #208

Zensynthium opened this issue Jan 28, 2022 · 1 comment

Comments

@Zensynthium
Copy link

Zensynthium commented Jan 28, 2022

I'm having issues with Step 2:

In file android/app/src/main/java/.../MainActivity.java add the reference to the Capacitor Firebase Auth plugin inside the Bridge initialization.

[...] import com.baumblatt.capacitor.firebase.auth.CapacitorFirebaseAuth; // Initializes the Bridge this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{ // Additional plugins you've installed go here // Ex: add(TotallyAwesomePlugin.class); add(CapacitorFirebaseAuth.class); }}); [...]

I put the code in the MainActivity.java but it throws errors. My MainActivity.java looks like this after I've added it.

`
package io.ionic.goal_tracker;

import com.getcapacitor.BridgeActivity;

import com.baumblatt.capacitor.firebase.auth.CapacitorFirebaseAuth;
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(CapacitorFirebaseAuth.class);
}});

public class MainActivity extends BridgeActivity {}
`

Any clarification would be much appreciated, thank you!

@LynearIngression
Copy link

I think they changed it so that you don't have to initialize this anymore. It will do it automatically.

package com.mypackage.app
import com.getcapacitor.BridgeActivity;
public class MainActivity extends BridgeActivity {

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants