I ran the sample on a couple devices with Android 7 and the downloaded font sometimes doesn't show the correct emoji.
If I use the bundled version, everything is fine.
I noticed this when trying to display flags, like πΊπΈ \uD83C\uDDFA\uD83C\uDDF8
, and all I got was a flag with a question mark on it, like this:
Downloaded on the left, bundled on the right.
Tried on 3 different Android 7 devices, with Google Play Services 11.7.45 or 11.9.51 and one Android 6 with both Google Play Services versions.
Eventually I figured that not doing setReplaceAll(true)
on the FontRequestEmojiCompatConfig()
seems "help" since Android knows how to display most countries.
I made an example with all flags copy&pasted from http://emojiflags.com and placed the yoga emoji on the second field (it's from the latest Emoji version so, the Android shouldn't be able to display it without EmojiCompat).
[ Download+setReplaceAll(false)
| Download+setReplaceAll(true)
| Bundled+setReplaceAll(true)
]
What's wrong with the downloaded version?