Extension with Rush. Keep the app running. Doze mode. Service. Notification. Source code

Thanks @SteveJG for testing it.

It seems the problem is...
https://stackoverflow.com/questions/70889493/android-12-pending-intent

I have changed these lines in the source code...

///////////////////////////////////////////// NOTIFY /////////////////////////////
@SimpleFunction(description  = "Notify in status bar.")
public void Notify(String title, String text){
final Intent intentNotification = new Intent("action_call_method");
// PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intentNotification, PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent pendingIntent;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
	   pendingIntent = PendingIntent.getBroadcast(context, 0, intentNotification, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
    }else {
        pendingIntent = PendingIntent.getBroadcast(context, 0, intentNotification, PendingIntent.FLAG_UPDATE_CURRENT);
    }

I have updated the extension, but have not tested it.
Can someone try it? Thanks.

Servicio_v2.aia (106.5 KB)

com.kio4.servicio.aix (102.2 KB)