Not Receiving Push Notification on extended Broadcast Receiver

Hi, i was receiving push notification by using backendless default receiver, but i have to open a specific activity when user click on notification, so i created my own receiver, but now it didn’t receive notification here is my code and manifest file,
when i override onMessage method, it shows " overrides deprecated method in 'com.backendless.push.BackendlessBroadcastReceiver"
i think it didn’t goes in onMessage method.

public class PushReceiver extends BackendlessBroadcastReceiver{
private static final int NOTIFICATION_ID = 1;
public boolean onMessage(Context context, Intent intent) {
Toast.makeText(context, “Received in extended class”, Toast.LENGTH_SHORT).show();
String message = intent.getStringExtra(“message”);
NotificationCompat.Builder builder =
new NotificationCompat.Builder(context)
Intent notificationIntent = new Intent(context, singleMessage.class);
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent,

return true;
and manifest file


<category android:name=“com.example.mubtadanaqvi.highayhelp”/>
<service android:name=“com.backendless.push.BackendlessPushService”/>
and the activiy which i want to open


<category android:name=“android.intent.category.DEFAULT”/>


Please see the following section in the docs, specifically the paragraph starting with: “Custom handling of push notifications requires an implementation of two classes”:



when i extend Receiver class it gave this error. and also in manifest file it says it has no default constructor

the error is solved but it is not going in onMessage method. It shows the Toast which is in onRegistered but not which is in onMessage method.

if you would like us to help you with debugging the code you wrote, please make a purchase of the “Single Incident Support”. The instructions are here: