at3s 4 Posted March 22, 2023 Delphi 11.2 patch 2. iOS application raises "EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'" error upon Application.Terminate; or MainForm.Close; There is no problem with Android application. Actually it's [Exit] button functionality in the application. Can someone help? Share this post Link to post
Dalija Prasnikar 1399 Posted March 22, 2023 43 minutes ago, at3s said: Actually it's [Exit] button functionality in the application. iOS does not support terminating application, so Delphi does not have that support either. If Delphi previously implemented Terminate on iOS it was most likely removed as such functionality would cause rejection on the AppStore. See https://stackoverflow.com/questions/355168/proper-way-to-exit-iphone-application 1 Share this post Link to post
at3s 4 Posted March 22, 2023 22 minutes ago, Dalija Prasnikar said: iOS does not support terminating application, so Delphi does not have that support either. If Delphi previously implemented Terminate on iOS it was most likely removed as such functionality would cause rejection on the AppStore. See https://stackoverflow.com/questions/355168/proper-way-to-exit-iphone-application Yup, I already found the source where it raises. So how close\hide iOS application using Delphi? I'm new with it. Share this post Link to post
Dave Nottage 559 Posted March 22, 2023 13 minutes ago, at3s said: So how close\hide iOS application using Delphi? Did you read this? 37 minutes ago, Dalija Prasnikar said: iOS does not support terminating application Did you also read this? 38 minutes ago, Dalija Prasnikar said: https://stackoverflow.com/questions/355168/proper-way-to-exit-iphone-application Share this post Link to post
at3s 4 Posted March 22, 2023 23 minutes ago, Dave Nottage said: Did you read this? Did you also read this? Yes. Yes. But is there a way to move an application at least in background mode like [Home] iPhone hardware button does? Sure, the easest way will be to hide those [Exit] button from the application in case it doesn't work in iOS. Share this post Link to post
Dalija Prasnikar 1399 Posted March 23, 2023 9 hours ago, at3s said: But is there a way to move an application at least in background mode like [Home] iPhone hardware button does? Sure, the easest way will be to hide those [Exit] button from the application in case it doesn't work in iOS. Why? iOS users know how to move application to the background using Home button. Such functionality does not belong in the iOS application. Just remove the Exit button or hide it on the iOS and avoid calling problematic code on iOS with compiler directives. 2 Share this post Link to post
Dave Nottage 559 Posted March 24, 2023 On 3/23/2023 at 8:26 AM, at3s said: But is there a way to move an application at least in background mode like [Home] iPhone hardware button does? The question is: why do you want your app to be able to do this? As Dalija mentioned, users can easily go to the home screen anyway. Even if you were able to achieve it, if you submit it to the App Store it's highly likely that the app will be rejected. I suggest reading this: https://developer.apple.com/library/archive/qa/qa1561/_index.html 2 Share this post Link to post
at3s 4 Posted March 24, 2023 I will do as you mentioned, it sounds correct. Share this post Link to post