From f649b0c20c5aa5c7ba7677b8ffc8c9dbe6f8f1f5 Mon Sep 17 00:00:00 2001 From: Pepe Date: Wed, 13 Mar 2019 17:30:28 +0100 Subject: [PATCH 1/2] Foreground indicator fixed for VoIP notifications --- src/ios/PushPlugin.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ios/PushPlugin.m b/src/ios/PushPlugin.m index 0290c8ecc..bd21855b4 100644 --- a/src/ios/PushPlugin.m +++ b/src/ios/PushPlugin.m @@ -621,6 +621,7 @@ - (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayloa { NSLog(@"VoIP Notification received"); self.notificationMessage = payload.dictionaryPayload; + isInline = [UIApplication sharedApplication].applicationState == UIApplicationStateActive; [self notificationReceived]; } From 02f1c0169203a2a29fa909b7b5606bb4d770fc0c Mon Sep 17 00:00:00 2001 From: Jose Lorente Date: Wed, 13 May 2020 14:19:31 +0200 Subject: [PATCH 2/2] * Changed android support libraries to use androidx libraries. --- .../adobe/phonegap/push/BackgroundActionButtonHandler.java | 2 +- src/android/com/adobe/phonegap/push/FCMService.java | 6 +++--- .../com/adobe/phonegap/push/PushHandlerActivity.java | 2 +- src/android/com/adobe/phonegap/push/PushPlugin.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java b/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java index 4456f5255..0de3a9664 100644 --- a/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java +++ b/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java @@ -6,7 +6,7 @@ import android.content.Intent; import android.os.Bundle; import android.util.Log; -import android.support.v4.app.RemoteInput; +import androidx.core.app.RemoteInput; public class BackgroundActionButtonHandler extends BroadcastReceiver implements PushConstants { private static String LOG_TAG = "Push_BGActionButton"; diff --git a/src/android/com/adobe/phonegap/push/FCMService.java b/src/android/com/adobe/phonegap/push/FCMService.java index db1738a72..2735bf54c 100644 --- a/src/android/com/adobe/phonegap/push/FCMService.java +++ b/src/android/com/adobe/phonegap/push/FCMService.java @@ -23,9 +23,9 @@ import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.support.v4.app.NotificationCompat; -import android.support.v4.app.NotificationCompat.WearableExtender; -import android.support.v4.app.RemoteInput; +import androidx.core.app.NotificationCompat; +import androidx.core.app.NotificationCompat.WearableExtender; +import androidx.core.app.RemoteInput; import android.text.Html; import android.text.Spanned; import android.util.Log; diff --git a/src/android/com/adobe/phonegap/push/PushHandlerActivity.java b/src/android/com/adobe/phonegap/push/PushHandlerActivity.java index 0d399a619..a336ba22d 100644 --- a/src/android/com/adobe/phonegap/push/PushHandlerActivity.java +++ b/src/android/com/adobe/phonegap/push/PushHandlerActivity.java @@ -7,7 +7,7 @@ import android.content.pm.PackageManager; import android.os.Bundle; import android.util.Log; -import android.support.v4.app.RemoteInput; +import androidx.core.app.RemoteInput; public class PushHandlerActivity extends Activity implements PushConstants { diff --git a/src/android/com/adobe/phonegap/push/PushPlugin.java b/src/android/com/adobe/phonegap/push/PushPlugin.java index c1f0a10c6..82e945a4e 100644 --- a/src/android/com/adobe/phonegap/push/PushPlugin.java +++ b/src/android/com/adobe/phonegap/push/PushPlugin.java @@ -12,8 +12,8 @@ import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.support.v4.app.NotificationCompat; -import android.support.v4.app.NotificationManagerCompat; +import androidx.core.app.NotificationCompat; +import androidx.core.app.NotificationManagerCompat; import android.util.Log; import com.google.firebase.iid.FirebaseInstanceId;