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 the FCM token error #431

Merged
merged 5 commits into from
Feb 16, 2022
Merged

Fix the FCM token error #431

merged 5 commits into from
Feb 16, 2022

Conversation

Florian14
Copy link
Contributor

@Florian14 Florian14 commented Feb 15, 2022

#402

The FCM token could not be retrieved because of the pinning restriction which does not allow the system certificates. These certificates are required to request the FCM token through the firebase API. This PR allows the use of the system certificates for the firebase domain only.

This PR also hide the "Test push" step from the "Troubleshoot Notifications" screen. This step was triggering a notification using the push server notify endpoint. The push server has been moved to a new internal sygnal server which is only accessible from the Synapse. This step will be hidden while there is no equivalent public API to trigger a notification.

@github-actions
Copy link

github-actions bot commented Feb 15, 2022

Unit Test Results

11 files  ±0  11 suites  ±0   6s ⏱️ -1s
83 tests ±0  83 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit c120368. ± Comparison against base commit 240ac15.

♻️ This comment has been updated with latest results.


<!-- Allow system certificates for firebase -->
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="false">firebaseinstallations.googleapis.com</domain>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider the store dimension gplay vs fdroid before adding this domain config?
We may ignore this remark because fdroid variant is built without pinning, but I prefer mention it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's possible to have a specific network security config for gplay + withpinning variant

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I just updated the PR and split the config file for both variants

@Florian14 Florian14 force-pushed the feature/fre/fix_fis_auth_error branch from d26e79b to c120368 Compare February 16, 2022 12:45
@Florian14 Florian14 merged commit a3cccaf into develop Feb 16, 2022
@Florian14 Florian14 deleted the feature/fre/fix_fis_auth_error branch February 16, 2022 13:05
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.

4 participants