I would like to support emojis for Huawei devices in my app. For all other vendors I use code like this to init EmojiCompat:
val fontRequest = FontRequest(
"com.google.android.gms.fonts",
"com.google.android.gms",
"Noto Color Emoji Compat",
R.array.com_google_android_gms_fonts_certs
)
val config = FontRequestEmojiCompatConfig(context, fontRequest)
EmojiCompat.init(config)
But for Huawei devices, for they do not have access to google resources (my guess), it does not work, and EmojiCompat doesn't get initialized. I know that BundledEmojiCompatConfig
could be used, but I would prefer always to fetch the newest font.
Is there any alternative to Google's providerAuthority/Package for Huawei devices?