按钮单击离子4时关闭应用程序 [英] Close app when button click ionic 4

查看:91
本文介绍了按钮单击离子4时关闭应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,
I am developing an ioinc 4 app. Now i am trying to exit the app when user click the button.
I am trying to write the logic 
" this.plateform.exitApp() "
the error is 
" Property 'exitApp' does not  exist on type 'plateform'  " .
any one who have idea about ionic 4?
 
help will be appreciated
Thank you 





我尝试过:



i尝试了但没有任何东西



What I have tried:

i tried but nothing is

happened

推荐答案

尝试使用navigator.app.exitApp
Try navigator.app.exitApp instead


这篇关于按钮单击离子4时关闭应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆