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;
@Override
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)
.setContentTitle(“Hello”).setContentText(message).setSmallIcon(R.mipmap.ic_launcher);
Intent notificationIntent = new Intent(context, singleMessage.class);
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(contentIntent);

return true;
}
}
and manifest file

<intent-filter>


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

<intent-filter>

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

Hello,

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

https://backendless.com/documentation/messaging/android/messaging_push_notification_setup_androi.htm

Regards,
Mark

http://support.backendless.com/public/attachments/46a56279659fce7931e0555c92e9a537.JPG</img>

46a56279659fce7931e0555c92e9a537.JPG

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:
https://backendless.com/support-policy/

Regards,
Mark