I believe Tiktok shut down the app in India in the same way without being "obligated to" either before the order came into effect, albeit without the dramatic messaging.
(The latter part is probably because Tiktok's banning was not particulaly divisive within the population as it is in the US.)