简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM