Skip to content

Set installation to fcm now. #820

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

Merged
merged 1 commit into from
May 5, 2018
Merged

Conversation

rogerhu
Copy link
Contributor

@rogerhu rogerhu commented May 5, 2018

The push adapter actually ignores the push type and falls back to the device type. It should be OK to classify these pushes as FCM.

i.e. this line falls back to using the android deviceMap:

https://github.com/parse-community/parse-server-push-adapter/blob/master/src/PushAdapterUtils.js#L20

The only accepted types are actually android and fcm:

https://github.com/parse-community/parse-server-push-adapter/blob/master/src/ParsePushAdapter.js#L35

We should move off the parse-server GCM module because the FCM sending needs a service account and database URL instead of a GCM sender ID.

@rogerhu rogerhu requested review from Jawnnypoo and flovilmart May 5, 2018 06:08
The push adapter actually ignores the push type and falls back to the device type.  It should be OK to classify these pushes as FCM.

https://github.com/parse-community/parse-server-push-adapter/blob/master/src/PushAdapterUtils.js#L20
https://github.com/parse-community/parse-server-push-adapter/blob/master/src/ParsePushAdapter.js#L35

We should move off the parse-server GCM module because the FCM send only needs the GCloud project instead of sender ID.
@coveralls
Copy link

coveralls commented May 5, 2018

Coverage Status

Coverage remained the same at 58.515% when pulling 627b219 on rogerhu:fcm into ffea69f on parse-community:master.

@codecov
Copy link

codecov bot commented May 5, 2018

Codecov Report

Merging #820 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #820   +/-   ##
=========================================
  Coverage     54.09%   54.09%           
  Complexity     1682     1682           
=========================================
  Files           123      123           
  Lines          9736     9736           
  Branches       1361     1361           
=========================================
  Hits           5267     5267           
  Misses         4040     4040           
  Partials        429      429

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffea69f...627b219. Read the comment docs.

@Jawnnypoo
Copy link
Member

Oh, nice! That is good to know!

@Jawnnypoo Jawnnypoo merged commit f3d47f6 into parse-community:master May 5, 2018
rogerhu added a commit to rogerhu/Parse-SDK-Android that referenced this pull request May 6, 2018
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

Successfully merging this pull request may close these issues.

3 participants