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

TypeError: Cannot read property 'subscribeTo' of undefined #53

Closed
tolutronics opened this issue Sep 22, 2020 · 3 comments
Closed

TypeError: Cannot read property 'subscribeTo' of undefined #53

tolutronics opened this issue Sep 22, 2020 · 3 comments

Comments

@tolutronics
Copy link

Describe the bug
Whenever i tried to subscribe to a topic or get Token, i get the error
TypeError: Cannot read property 'subscribeTo' of undefined
i am using ionic framework

@grallc
Copy link

grallc commented Sep 22, 2020

Same here :/

@stewones
Copy link
Member

that information is not enough. how to reproduce the problem? have you tried the example included in this repo? have you searched for this kind of issue? please open a new issue with more info

@tolutronics
Copy link
Author

grallc , please check your set up...in my case i ignore this part

on your MainActivity.java file add import com.getcapacitor.community.fcm.FCMPlugin; and then inside the init callback add(FCMPlugin.class);

but after following this, it worked perfectly

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

3 participants