Baidu Cloud Push Blog New Article Alert

Baidu Cloud Push Blog New Article Alert

Algorithm language 5 years ago (2016-01-07) Views: 16 Comments: 0

In the development of Wang Baiyuan's blog client, in order to participate in the new article published to achieve the effect of client notification, extremely guests use Baidu cloud push platform, using Baidu official SDK and demo provided to achieve.When the server sends a notification, the client executes the onNotificationClicked callback function.The formal parameters of the function are Context context: context String title: Notification title String description: notification content String customContentString: custom field, through the json access to the server's value. Android end Server-side code requires the introduction of sdk.php. The key is that the server must support the cUrl module.My Alibaba Cloud Free Host does not support it. Later, my message push code was placed on Jingan's virtual host and the Alibaba Cloud URL was used to execute the PHP files on Jingan's host. This solved the problem. PHP server side    


Forget password?