Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8952277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:50:28+00:00 2026-06-15T13:50:28+00:00

I am using push notification in our apps, when i receive push notification in

  • 0

I am using push notification in our apps, when i receive push notification in notification center, then if i click that notification its redirecting correctly to that particular html page. But when i receive more than one push notification, if i click any other than first notification it will not redirecting, only the message first appear in the notification center list only redirecting. How to redirect every message in notification center android. Below is the code which is used to redirect in android.

public void onCreate(Bundle savedInstanceState) {       
    super.onCreate(savedInstanceState);             
    Bundle extras = getIntent().getExtras();        
    if (extras != null) {                                   
        super.loadUrl("file:///android_asset/www/homePage.html");       
        NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.cancelAll();
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:50:30+00:00Added an answer on June 15, 2026 at 1:50 pm

    The problem is that your activity is already created after the first notification is clicked, so onCreate() is not called when the second notification is clicked.

    You need to set android:launchMode="singleTop" for your activity in AndroidManifest.xml, and override onNewIntent.

    See Activity#onNewIntent for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing a Push Notification server for our iPhone application. I am using
I am using push notifications in Android. When I receive a push notification, I
Iam using push notification to show notification. Its working fine by Alternate Entry point.
I am implementing Push Notification using Urban Airship library. I am able to receive
I am doing push notification for android using C2DM. it works well. but while
I am trying to send push notification to iPhone using Java-pns but I am
Guyz facing problems with creating a push notification service (for android) using Google C2DM
while i'm using push notification in iphone with local server(used php), not able to
I have implemented Apple Push Notification service using Urban Airship and successfully received the
Currently I am using APNS PHP for push notification. The problem is I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.