persistOnAppClose property

bool persistOnAppClose
final

Whether the chathead overlay survives after the main app process is killed.

When true, the foreground service uses START_STICKY and persists its configuration so the overlay is recreated automatically if the system restarts the service. When false, the service uses START_NOT_STICKY and stops itself when the main app disconnects. Defaults to false.

Implementation

final bool persistOnAppClose;