Jump to content
at3s

EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'

Recommended Posts

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
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

  • Like 1

Share this post


Link to post
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.

image.thumb.png.2f2f706b6df8f3c14026e177c15f6773.png

Share this post


Link to post
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
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.

  • Like 2

Share this post


Link to post
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

  • Like 2

Share this post


Link to post

I will do as you mentioned, it sounds correct.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×