SpellChucker / capacitor-plugin-facebook-analytics

5 stars 25 forks source link

The SDK has not been initialized #12

Closed betocantu93 closed 2 years ago

betocantu93 commented 2 years ago

Hello I'm trying to get Android working but I'm getting this error when running the application

The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.

Any clues?

Also, I don't know if this is still needed in Capacitor 3? can someone show provide a full code example?

this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
    [...]
+   add(com.vrba.plugins.facebookanalytics.FacebookAnalytics.class);
    [...]
  }});

Thanks in advance

betocantu93 commented 2 years ago

I think its no longer needed, and also my error was the meta-data tag was not under <application> on AndroidManifest.xml