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

fix(messaging): typo in isRegisteredForRemoteNotifications #2645

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

ckknight
Copy link
Contributor

This changes the access of native.isRegisteredForRemoteNotifcations (missing i) to native.isRegisteredForRemoteNotifications, which matches the string defined in https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m#L58

This also fixes the coercion of falsy values to true, which would have occurred if native.isAutoInitEnabled or native.isRegisteredForRemoteNotifications were initially false.

Summary

Checklist

  • Supports Android
  • Supports iOS
  • e2e tests added or updated in /tests/e2e/*
  • Updated the documentation in the docs repo
    • LINK TO DOCS PR HERE
  • Flow types updated
  • Typescript types updated

Test Plan

Release Plan

[JS][BUGFIX] [Messaging] - Fix typo of isRegisteredForRemoteNotifications


Think react-native-firebase is great? Please consider supporting the project with any of the below:

This changes the access of `native.isRegisteredForRemoteNotifcations` (missing `i`) to `native.isRegisteredForRemoteNotifications`, which matches the string defined in https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m#L58

This also fixes the coercion of falsy values to `true`, which would have occurred if `native.isAutoInitEnabled` or `native.isRegisteredForRemoteNotifications` were initially `false`.
@CLAassistant
Copy link

CLAassistant commented Sep 26, 2019

CLA assistant check
All committers have signed the CLA.

@Salakar Salakar self-assigned this Sep 26, 2019
@Salakar Salakar added this to the v6.1.0 milestone Nov 23, 2019
@Salakar Salakar added platform: javascript plugin: messaging FCM only - ( messaging() ) - do not use for Notifications Version: 6.x.x labels Nov 23, 2019
@Salakar Salakar changed the title [v6] Messaging: Fix typo of isRegisteredForRemoteNotifications fix(messaging): typo in isRegisteredForRemoteNotifications Nov 23, 2019
@Salakar Salakar merged commit f0e614f into invertase:master Nov 23, 2019
hmhm2292 pushed a commit to hmhm2292/react-native-firebase that referenced this pull request Jul 13, 2021
…#2645)

This changes the access of `native.isRegisteredForRemoteNotifcations` (missing `i`) to `native.isRegisteredForRemoteNotifications`, which matches the string defined in https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m#L58

This also fixes the coercion of falsy values to `true`, which would have occurred if `native.isAutoInitEnabled` or `native.isRegisteredForRemoteNotifications` were initially `false`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: javascript plugin: messaging FCM only - ( messaging() ) - do not use for Notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants