Skip to content

getToken(function(token)... returns undefined #422

@BeRMaNyA

Description

@BeRMaNyA

Hi, I'm having lot of issues trying to make this plugin works in android.

I created an app in Google Firebase, I downloaded the google-services.json and I placed it into the root folder, I installed the plugin, I ran the app (in the simulator) and then when I run this command:

window.FirebasePlugin.getToken(function(token) {
  alert(token);
}, function(error){
  alert('Error!!!');
});

I just got a blank alert.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions