Nativescript with Angular 2 on Android, how to close my app?

落爺英雄遲暮 提交于 2019-12-12 04:31:06

问题


I would like a button. When you tap the button, the application closes, and go to home screen. Not needed to really close the app, just go to home screen.

How can I achieve this?


回答1:


On iOS you're not allowed by the operating system to programmatically close the app.

I'm not sure it's a good practice on Android, but it has been asked and answered many times on StackOverflow.



来源:https://stackoverflow.com/questions/41307447/nativescript-with-angular-2-on-android-how-to-close-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!