I develop a new Android application using appcelerator. I use ti.cloudpush to use push notifications from firebase like this example; the notification is sent successfully and shown in the notification bar of the device if the application is in background, but not received when the application is in foreground or closed although the result of sending process is "successful".
I need to make it like facebook messenger, shown in the device screen if the application is closed. I tried several other modules like "ti.goosh" and "nl.vanvianen.android.gcm", I found out that in the Android world I should write "START_STICKY" somewhere in the application to enforce the service to keep processing even if the application been closed.
I tried to develop separate service and call it in the tiapp.xml, but the service also been killed if the application is closed.
Edit is there any sdk tools must be installed which appcelerator need to use in the build process