【发布时间】:2021-03-15 10:06:56
【问题描述】:
我正在寻找一种对我有帮助的解决方案,以编程方式重新启动本机应用程序。
我只用安卓平台
【问题讨论】:
标签: nativescript restart angular2-nativescript nativescript-angular nativescript-plugin
我正在寻找一种对我有帮助的解决方案,以编程方式重新启动本机应用程序。
我只用安卓平台
【问题讨论】:
标签: nativescript restart angular2-nativescript nativescript-angular nativescript-plugin
最后我用过 android.os.Process.killProcess(android.os.Process.myPid()); 在大多数情况下工作的 setTimeout 女巫内部...... 对于我使用的 iphone 退出(0)或退出();
我的代码是这样的:
【讨论】: