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

[messaging] getToken/deleteToken/onTokenRefresh improvements #1805

Merged
merged 7 commits into from
Jan 3, 2019

Conversation

Salakar
Copy link
Member

@Salakar Salakar commented Jan 2, 2019

Summary

Closes #1510, #1754

Checklist

Test Plan

Release Plan

  • [IOS] [BUGFIX] [MESSAGING] fix getToken() always returning initialToken (Messaging getToken() always returns initialToken #1510)
  • [ANDROID] [NOTICE] [MESSAGING] deprecate RNFirebaseInstanceIdService in favour of FirebaseMessagingServices onNewToken event. Remove this service from your AndroidManifest.xml
  • [IOS] [ANDROID] [INTERNAL] [MESSAGING] getToken & deleteToken now use Firebase InstanceID token management apis (with an FCM scope).

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

@Salakar Salakar added platform: android platform: ios plugin: messaging FCM only - ( messaging() ) - do not use for Notifications labels Jan 2, 2019
@Salakar Salakar added this to the v5.2.0 milestone Jan 2, 2019
@Salakar Salakar self-assigned this Jan 2, 2019
@codecov
Copy link

codecov bot commented Jan 2, 2019

Codecov Report

Merging #1805 into master will decrease coverage by 0.96%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1805      +/-   ##
==========================================
- Coverage   76.11%   75.15%   -0.97%     
==========================================
  Files          72       75       +3     
  Lines        1838     1932      +94     
==========================================
+ Hits         1399     1452      +53     
- Misses        439      480      +41

@codecov
Copy link

codecov bot commented Jan 2, 2019

Codecov Report

Merging #1805 into master will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1805      +/-   ##
==========================================
+ Coverage   76.11%   76.16%   +0.05%     
==========================================
  Files          72       72              
  Lines        1838     1838              
==========================================
+ Hits         1399     1400       +1     
+ Misses        439      438       -1

@Salakar Salakar changed the title [wip][messaging] get/delete tokens using correct native Firebase APIs [messaging] get/delete tokens using correct native Firebase APIs Jan 3, 2019
@Salakar Salakar changed the title [messaging] get/delete tokens using correct native Firebase APIs [messaging] getToken/deleteToken/onTokenRefresh improvements Jan 3, 2019
@Salakar Salakar merged commit 1d83962 into master Jan 3, 2019
blankg pushed a commit to blankg/react-native-firebase that referenced this pull request Jan 15, 2019
…se#1805)

[IOS] [BUGFIX] [MESSAGING] fix getToken() always returning initialToken (invertase#1510)

[ANDROID] [NOTICE] [MESSAGING] deprecate RNFirebaseInstanceIdService in favour of FirebaseMessagingService's onNewToken event. Remove this service from your AndroidManifest.xml

[IOS] [ANDROID] [INTERNAL] [MESSAGING] getToken & deleteToken now use Firebase InstanceID token management apis (with an FCM scope).
@Salakar Salakar deleted the messaging-token branch February 25, 2019 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android platform: ios plugin: messaging FCM only - ( messaging() ) - do not use for Notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messaging getToken() always returns initialToken
1 participant