Move application to background


I would like to call Android’s moveTaskToBack method when user press back button. To do it I’ve created custom plugin that exposes that function. But it seems to be a very common usecase. The problem is that I couldn’t find how to do it. There is exitApp function in the App plugin but that’s not what I look for.

So my question: Is there a simpler/better way than custom plugin?

Best Regards