Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 


What I have tried:

i tried but nothing is
happened
Posted
Updated 23-Apr-20 0:01am

Try navigator.app.exitApp instead
 
Share this answer
 
Comments
Member 14170167 5-Mar-19 0:53am    
Thank You for your response.
but got some error when i write 'navigator.app.exitApp'. the error is "Property 'app' does not exist on type 'Navigator'".
I have the same problem, when I add navigator.['app'].exitApp(); I get error also when I use this.platform.exitApp(); I also get an error. Please anyone help
 
Share this answer
 
Comments
CHill60 23-Apr-20 6:26am    
If you have a question then use the red "Ask a Question" link at the top of the page. Be sure to read the posting guidelines there

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900