Home > Mobile >  Excuse me,
Excuse me,

Time:09-17

A push offline after receiving the notification message, click on the notification bar to jump to a certain activity of the app (not the homepage) how to solve?

CodePudding user response:

Background to you notice, you can with a custom message, you parse the content, do different actions

CodePudding user response:

Now how do I change all jump just home page

CodePudding user response:

refer to the second floor weixin_45835679 response:
how do I change currently only jump page
redirect users intention when adding intent. SetFlags (intent. FLAG_ACTIVITY_NEW_TASK | intent. FLAG_ACTIVITY_CLEAR_TOP); Give it a try

CodePudding user response:

refer to the second floor weixin_45835679 response:
how do I change currently only jump page
but I suggest that you do not jump directly related pages, but the additional information to the home page, but the first to jump to the home page, in the home page in according to the additional information to jump the other interface, (because app closed cases, jump directly related page, page is closed related directly to launch the app, first to jump to the home page, in the home page at the interface, according to the additional information to jump the other pages will shut down in the app) home page

CodePudding user response:

Open the home page problem, pass in the past, through newIntent receiving, parsing, jump

CodePudding user response:

But I don't know how to judge whether the point of offline notification bar into the app, and then on the front page for a second jump

CodePudding user response:

refer to 6th floor weixin_45835679 response:
but I don't know how to judge whether the offline notification bar into the app, and then on the front page for a second jump
is offline notification bar into the app? What's the meaning of

CodePudding user response:

Demand is offline, after receipt of the notification from the notification bar point into an activity of app, if from the desktop click appicon into home page popup window

CodePudding user response:

refer to the eighth floor weixin_45835679 response:
demand is offline, after receipt of the notification from the notification bar point into an activity of app, if from the desktop click appicon window is into home page
do you want to avoid the modal window? You some notification bar information jump first page in the page jump to jump, want to avoid the popup window to distinguish the notice-board it came from, when passing data to define an identifier, one is from the notification bar to the front page of a, is from the desktop to open is empty

CodePudding user response:

references 9 f Write_BUG small expert replies:
Quote: refer to the eighth floor weixin_45835679 response:

Demand is offline, after receipt of the notification from the notification bar point into an activity of app, if from the desktop click appicon window is into home page
do you want to avoid the modal window? You some notification bar information jump first page in the page jump to jump, want to avoid the popup window to distinguish the notice-board it came from, when passing data to define an identifier, one is from the notification bar to the front page of a, is empty is opened from desktop

Then how do I know I came in from the notification bar or desktop come in

CodePudding user response:

references 9 f Write_BUG small expert replies:
Quote: refer to the eighth floor weixin_45835679 response:

Demand is offline, after receipt of the notification from the notification bar point into an activity of app, if from the desktop click appicon window is into home page
do you want to avoid the modal window? You some notification bar information jump first page in the page jump to jump, want to avoid the popup window to distinguish the notice-board it came from, when passing data to define an identifier, one is from the notification bar to the front page of a, is empty is opened from desktop

Now I just don't know how to judge is to click on the notification bar into the app, or click on the desktop into the app

CodePudding user response:

11 references weixin_45835679 response:
Quote: references 9 f Write_BUG small expert replies:
Quote: refer to the eighth floor weixin_45835679 response:

Demand is offline, after receipt of the notification from the notification bar point into an activity of app, if from the desktop click appicon window is into home page
do you want to avoid the modal window? You some notification bar information jump first page in the page jump to jump, want to avoid the popup window to distinguish the notice-board it came from, when passing data to define an identifier, one is from the notification bar to the front page of a, is empty is opened from desktop

Now I just don't know how to judge is to click on the notification bar into the app, or click on the desktop into the app
wow I didn't mean the iron juice, click on the notification bar into the app when you jump no intent to add a logo parameters, without this identity is desktop, there is in notification bar