Baidu Cloud Push Send click Notification after entering the desired page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.