All Emoji Tweets Break URL Range Detection


When I post a tweet with all emojis and a link the URL range is calculated incorrectly, which leads to a gibberish push notification (i.e., the hash overlaps part of the correct push text). I have observed this on iOS by posting a tweet manually as below or sending one via the REST API.

Here is an example:

.@TheBealDeal šŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆšŸ’ÆšŸˆ #FIREFIRE



Screenshot of issue


I suspect the underlying twitter-text library may need to be updated, but Iā€™m not sure. Worth checking to see whether there are any known issues with that code.