iOS Question Closing the app

WardOperationsLLC

Member
Licensed User
Longtime User
Hopefully my last question of you guys this week. I'm porting some B4A code and I have a very horrible work around for anytime an error occurs or when I need to force an update that closes out the activity. I'm not 100% sure why I had to implement it this way in B4A, but it's there none the less. I was wondering if there was an option to force exit an iOS app? The code I used in B4A was

B4X:
    Dim jo As JavaObject
    jo.InitializeContext
    jo.RunMethod("finishAffinity", Null)

but naturally that doesn't work for iOS. I just need someway to exit the application and preferably have the OS get rid of it.
 

Filippo

Expert
Licensed User
Longtime User
Fun, fun, fun. Thanks for the answers, guess it's time to go through the code and add some more conditional handling as well as remove an exit button on this version.
Here's what I do, instead of closing the app, I disable everything so that the user has to close the apps themselves.
 
Upvote 0
Top