Before looking at the declaration cycle, found that after entering a specific interface directly onpause (), and then entered the portal interface, and then destory, do not know what the reason. At first thought is called two times method, but checked again, changed again is useless, thought is the framework problem, found not conflict. Later found that when using the Baidu platform to send can enter the desired interface, with their own service-side code to send a click can not enter.
Later look at the server-side code, found inside there is a open_type, the official explanation is as follows:
Open_type: Behavior after clicking the notification (1: open URL; 2: Custom behavior; 3: Open app by default;);
URL: Need to open the URL address, Open_type is 1 o'clock only valid;
Pkg_content:open_type is only valid for 2 o'clock, the Android SDK will convert the Pkg_content string to Android Intent, which opens the corresponding app component via the Intent, so Pkg_ The content string format must follow the intent URI format, and the simplest method can be obtained through the intent Method Touri ()
After testing, it was found that:
When Open_type is 1, click on the notification to open a specific interface, and open the URL, if not specified URL, then jump to the Baidu developer website
When Open_type is 2, click on the notification to open a specific interface, but then immediately open the app package under the portal page, jump to the portal page
When Open_type is 3, click on the notification to open the page you want to enter
Baidu Cloud Push Send click Notification after entering the desired page