diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java index d8ae8d5c5b..7bb6185843 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java @@ -1858,7 +1858,7 @@ public void onTransportConnected(final TransportRecord record) { //the developer can use this pendingIntent to start their SdlService from the context of //the active RouterService Intent pending = new Intent(); - PendingIntent pendingIntent = PendingIntent.getForegroundService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT); + PendingIntent pendingIntent = PendingIntent.getService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT); startService.putExtra(TransportConstants.PENDING_INTENT_EXTRA, pendingIntent); } @@ -2981,7 +2981,7 @@ private Intent createPingIntent() { //the developer can use this pendingIntent to start their SdlService from the context of //the active RouterService Intent pending = new Intent(); - PendingIntent pendingIntent = PendingIntent.getForegroundService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT); + PendingIntent pendingIntent = PendingIntent.getService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT); pingIntent.putExtra(TransportConstants.PENDING_INTENT_EXTRA, pendingIntent); }