Skip to content

Commit

Permalink
Merge pull request #431 from tchapgouv/feature/fre/fix_fis_auth_error
Browse files Browse the repository at this point in the history
Fix the FCM token error
  • Loading branch information
Florian14 authored Feb 16, 2022
2 parents 240ac15 + c120368 commit a3cccaf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
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 @@ -6,7 +6,7 @@
<!-- 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>
</network-security-config>
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)
mgr.addTest(testNotification)
return mgr
}
Expand Down
20 changes: 20 additions & 0 deletions vector/src/gplay/withpinning/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<!-- Do not allow clearText traffic -->
<base-config cleartextTrafficPermitted="false">
<trust-anchors>
<!-- Do not allow system and user certificates by default -->

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

<!-- Allow system certificates for firebase -->
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="false">firebaseinstallations.googleapis.com</domain>
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</domain-config>
</network-security-config>

0 comments on commit a3cccaf

Please sign in to comment.