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 8766235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:30:01+00:00 2026-06-13T16:30:01+00:00

I have a fairly basic android app that is a tabhost of 4 tabs,

  • 0

I have a fairly basic android app that is a tabhost of 4 tabs, each one opens a webview. The app also has GCM all setup and currently can receive messages fine. When a message is received though, you click on it and it simply opens the app the same way clicking on the App icon would open the app. What I am trying to do though is open a particular tab inside the app when someone clicks on message and what would be even better is if I could open any tab depending on what the message is. Is this possible? If so, how would I go about doing this?

From what I have found so far, I think this involves something with adding an additional item in the payload of the message such as

{
  "registration_id" : "APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx...",
  "data" : {
    "message" : "Text notification goes here",
    "tab" : "2"
  },
}

and then possibly doing something with the intents which I am not sure how to do. Am I on the right track and can anyone help me with this?

  • 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-13T16:30:02+00:00Added an answer on June 13, 2026 at 4:30 pm

    You can add an extra to the pending intent that you pass to the notification that will indicate which tab to open.

    And when the activity starts check for that extra and open the tab accordingly.

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

Sidebar

Related Questions

I have a fairly basic app that only has two Activities, the splash screen
I have a fairly basic set of models where a 'Project' has one 'Owner'.
I have a parent-child relationship setup that is fairly basic. The end result is
I have a fairly basic SQL Server Reporting Services report that is using nested
I have a fairly basic dialog maker for jquery that works in 2 out
So right now I have a fairly basic Executor service that I use to
I have an ASP.NET application that is fairly basic. It queries some data and
I have a login page that has several textboxes on the page, one of
I have a fairly basic program that is intended to sort a list of
I have a Visual C# Project that is fairly basic (no more than 100

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.