Describe the bug
When opening a PDF invoice on android (and probably also iOS), the app crashes as the ".cmap" extension is unknown.
".cmap" files are used to allow special font rendering inside the PDF invoices.
To Reproduce
Steps to reproduce the behavior:
Go to 'payment'
Click on 'show'
Click on 'download'
See that app crashes
Expected behavior
Downloading a PDF invoice is successful.
Smartphone (please complete the following information):
OS: Android 14
Version 234.20240627.0
Additional context
type: crash
osVersion: google/cheetah/cheetah:14/AP2A.240605.024/2024062700:user/release-keys
package: de.tutao.tutanota:396356
process: de.tutao.tutanota
processUptime: 14054 + 371 ms
installer: com.android.packageinstaller
java.lang.IllegalStateException: Unknown extension cmap for url https://assets.tutanota.com/pdf/identity_h.cmap
at de.tutao.tutanota.MainActivity.getMimeTypeForUrl(Unknown Source:142)
at de.tutao.tutanota.MainActivity.access$getMimeTypeForUrl(Unknown Source:0)
at de.tutao.tutanota.MainActivity$onCreate$2.shouldInterceptRequest(Unknown Source:216)
at WV.r5.a(chromium-TrichromeWebView6432.apk-stable-647812433:83)
at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(chromium-TrichromeWebView6432.apk-stable-647812433:15)
Bug in mobile app
Describe the bug When opening a PDF invoice on android (and probably also iOS), the app crashes as the ".cmap" extension is unknown. ".cmap" files are used to allow special font rendering inside the PDF invoices.
To Reproduce Steps to reproduce the behavior:
Expected behavior Downloading a PDF invoice is successful.
Smartphone (please complete the following information):
Additional context