@@ -158,9 +158,7 @@ public class SdlRouterService extends Service {
158158 public static final String SDL_NOTIFICATION_FAQS_PAGE = "https://smartdevicelink.com/en/guides/android/frequently-asked-questions/sdl-notifications/" ;
159159
160160 public static final String REGISTER_WITH_ROUTER_ACTION = "com.sdl.android.register" ;
161-
162- public static final String SDL_PACKAGE = "com.smartdevicelink" ;
163-
161+
164162 /**
165163 * Message types sent from the BluetoothReadService Handler
166164 */
@@ -1860,7 +1858,7 @@ public void onTransportConnected(final TransportRecord record) {
18601858 //the developer can use this pendingIntent to start their SdlService from the context of
18611859 //the active RouterService
18621860 Intent pending = new Intent ();
1863- pending .setPackage (SDL_PACKAGE );
1861+ pending .setPackage (getPackageName () );
18641862 PendingIntent pendingIntent = PendingIntent .getForegroundService (this , (int ) System .currentTimeMillis (), pending , PendingIntent .FLAG_MUTABLE | Intent .FILL_IN_COMPONENT );
18651863 startService .putExtra (TransportConstants .PENDING_INTENT_EXTRA , pendingIntent );
18661864 }
@@ -2984,7 +2982,7 @@ private Intent createPingIntent() {
29842982 //the developer can use this pendingIntent to start their SdlService from the context of
29852983 //the active RouterService
29862984 Intent pending = new Intent ();
2987- pending .setPackage (SDL_PACKAGE );
2985+ pending .setPackage (getPackageName () );
29882986 PendingIntent pendingIntent = PendingIntent .getForegroundService (this , (int ) System .currentTimeMillis (), pending , PendingIntent .FLAG_MUTABLE | Intent .FILL_IN_COMPONENT );
29892987 pingIntent .putExtra (TransportConstants .PENDING_INTENT_EXTRA , pendingIntent );
29902988 }
0 commit comments