Onclick Push Notification

I have problem with my push notification.
When i receive push and i click on it in the app bar it automaticaly redirect to the login activity even if the user were logged in.

I want redirect to the right activity when i click on the push.

I’d like to know how to do this as well. Is your problem with Android?

Hi! Similar Q&A you can find on stackoverflow

Thanks, it works!

I’m trying to do the same thing but the suggested solution doesn’t work!

I added the following lines in the AndroidMainfest file in the activity (ShowMessage) that I want to display when the push notification is clicked but it does not work.

(com.example.user.notificationfromc) is my package name

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