W WardOperationsLLC Member Licensed User Longtime User Oct 12, 2023 #1 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 Code: 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.
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 Code: 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.
aeric Expert Licensed User Longtime User Oct 12, 2023 #2 From the similar thread below: Force closing application How do I force app closing? www.b4x.com Upvote 1
Filippo Expert Licensed User Longtime User Oct 12, 2023 #3 WardOperationsLLC said: I was wondering if there was an option to force exit an iOS app? Click to expand... No! Short and sweet. Upvote 2
WardOperationsLLC said: I was wondering if there was an option to force exit an iOS app? Click to expand... No! Short and sweet.
W WardOperationsLLC Member Licensed User Longtime User Oct 12, 2023 #4 aeric said: From the similar thread below: Force closing application How do I force app closing? www.b4x.com Click to expand... Filippo said: No! Short and sweet. Click to expand... 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. Upvote 0
aeric said: From the similar thread below: Force closing application How do I force app closing? www.b4x.com Click to expand... Filippo said: No! Short and sweet. Click to expand... 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.
Filippo Expert Licensed User Longtime User Oct 13, 2023 #5 WardOperationsLLC said: 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. Click to expand... 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
WardOperationsLLC said: 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. Click to expand... Here's what I do, instead of closing the app, I disable everything so that the user has to close the apps themselves.