Anderson Dev
Anderson Dev

Reputation: 275

Delphi XE7 + FireMonkey + Android. The application is not in the background to display notifications to the user

I am developing an APP on FireMonkey for Android that need to show notifications to the user during the day (Example: Skype, WatsAPP, facebook). But I am not able to keep this background application, when the person not using this directly. Android closes it after a few minutes my notifications are no longer shown on the phone. How to keep this application open in the background on your mobile?

Upvotes: 0

Views: 1558

Answers (1)

SmeTheWiz
SmeTheWiz

Reputation: 220

What you will need to do is write a background service that handles your notifications. Brian Long posted two blog entries that I've read over before about the process. Below is a link describing it: http://www.fmxexpress.com/create-an-android-service-with-delphi-xe5-firemonkey/

Also, here is another SO post that may prove helpful: Android background service in Delphi XE5

Upvotes: 1

Related Questions