How to close ios app in Delphi-XE5 Firemonkey application?

I do not manage to find how to end an application iOS in Delphi XE5 Firemonkey.

Application.terminate does not work.

Thank you for your help

Firemonkey + iOS: How to activate In-App Purchase?

To enable In-App Purchases in Xcode we going to Targets -> Capabilities and switch this property on. How to activate In-App Purchases for an Firemonkey iOS-App? Many thanks in advance!



Consuming SOAP web services in iOS application in Firemonkey

I am new to iOS development with Delphi XE2 and Firemonkey and have a question how to consume SOAP web services from iOS application? Is there any example for possible set of components involved to ge

how to close application in ios? [duplicate]

Possible Duplicate: How to close an application programmatically when the user taps on a button I haven’t seen any close option in IOS application, Users have to close it from the home button. I wan

How to debug a Delphi iOS FireMonkey application in Xcode?

I am trying to debug a FireMonkey application compiled with Delphi XE2 with Update 1 using Xcode v3.2.6 on Apple Snow Leopard 10.6.8. I am able to load the project in Xcode, compile it and run it in t

Minimize form in Firemonkey application

I use this: Application.Minimize; in Vcl delphi application, but in Firemonkey I’ve got Undeclared identifire error. How can I minimize my firemonkey form?

How can I change background image file dynamically depending on device in a FireMonkey Mobile Application?

How can I change background image file dynamically depending on device’s screen resolution in a FireMonkey Mobile Application (iOS, android)? There is an option in IDE for icons and splash screens but

How can I get a phone’s contact list in a Firemonkey mobile application?

How can I get a phone’s contact list in a FireMonkey mobile application?

How can I execute a console/terminal app with Delphi XE5 FireMonkey and capture the output in OSX and Windows

How can I execute a console/terminal app with Delphi XE5 FireMonkey and capture the output in OSX and Windows. I would love to share the same code for both windows based apps.

Using native C static libraries in Delphi Firemonkey iOS development

I am interested in using Firemonkey for producing an iOS app. There are several native C libraries I would like to use in this application. I know that iOS does not allow for dynamic link libraries, b

New Firemonkey iOS application – File not found unit1.lfm

I started my first iOS application in Firemonkey, and the compiler immediately started complaining File not found unit1.lfm. There is no such file in my project, and my application has no main form,

Answers

In iOS it is not allowed to close an App. You can only force a crash. Apple will not allow Apps with this behavior in their AppStore. An alternative an be to set UIApplicationExitsOnSuspend to Yes (in the info.plist file). => When the user presses the home button your application will be ended.

Two ways:

“Home” button:

First of all you need to create another "custom.plist" instead of
".../iOSDevice/Release/myapp.info.plist".
Copy text from native plist to yours. Then deploy it in deployments.
Rename it "Info.plist" at destination. Uncheck native *.plist".
Need in "custom.plist" below "<string>ResourceRules.plist</string>" add
"<key>UIApplicationExitsOnSuspend</key><true/>".

Button in application:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Halt(0); //force crash
end;