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

FIRMessaging.requestPermissions undefined #5

Closed
OFranke opened this issue Jun 4, 2016 · 6 comments
Closed

FIRMessaging.requestPermissions undefined #5

OFranke opened this issue Jun 4, 2016 · 6 comments

Comments

@OFranke
Copy link

OFranke commented Jun 4, 2016

Hi,
I'm getting some errors when I included your sample code. What am I missing here?

screenshot_20160604-142918

@evollu
Copy link
Owner

evollu commented Jun 4, 2016

looks like the native module is not linked properly. Did you do rnpm link? Can you see if native module package is called?

@OFranke
Copy link
Author

OFranke commented Jun 4, 2016

do you mean npm link? is "r" a typo?
If so, I've run it, yes. How can I check if the package is getting called? Do I need to add the package to the package list here?

@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
        new RNSimpleAlertDialogPackage(),
        new ReactNativeMapboxGLPackage()
    );

@evollu
Copy link
Owner

evollu commented Jun 4, 2016

it is not a typo. https://www.npmjs.com/package/rnpm
install globally and run rnpm link react-native-fcm. It will link native code into your android/ios solutions

@OFranke
Copy link
Author

OFranke commented Jun 4, 2016

Got it to work + you teached me that there is such a cool thing like rnpm! thanks a lot! :)

@OFranke OFranke closed this as completed Jun 4, 2016
@evollu
Copy link
Owner

evollu commented Jun 4, 2016

👍

evollu pushed a commit that referenced this issue Mar 21, 2018
@nasir03082409229
Copy link

'requestPermissions' of undefined I m getting same error , i already link react-native-fcm

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