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; diff --git a/src/ios/PushPlugin.m b/src/ios/PushPlugin.m index 9aca1d0d9..bed976e81 100644 --- a/src/ios/PushPlugin.m +++ b/src/ios/PushPlugin.m @@ -643,6 +643,7 @@ - (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayloa { NSLog(@"VoIP Notification received"); self.notificationMessage = payload.dictionaryPayload; + isInline = [UIApplication sharedApplication].applicationState == UIApplicationStateActive; [self notificationReceived]; }