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
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/402.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the FCM token error breaking the push notifications
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class NotificationTroubleshootTestManagerFactory @Inject constructor(
mgr.addTest(testPlayServices)
mgr.addTest(testFirebaseToken)
mgr.addTest(testTokenRegistration)
mgr.addTest(testPushFromPushGateway)
// Tchap: Hide this verification, we can't call tchap server.
// mgr.addTest(testPushFromPushGateway)
Florian14 marked this conversation as resolved.
Show resolved Hide resolved
mgr.addTest(testNotification)
return mgr
}
Expand Down
10 changes: 9 additions & 1 deletion vector/src/withpinning/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
<!-- Do not allow system and user certificates -->

<!-- Allow only Tchap intermediate certificate authority -->
<certificates src="@raw/certignaservicesrootca"/>
<certificates src="@raw/certignaservicesrootca" />
</trust-anchors>
</base-config>

<!-- 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

<trust-anchors>
<certificates src="system" />
</trust-anchors>
</domain-config>
</network-security-config>