当前位置: 动力学知识库 > 问答 > 编程问答 >

IBM Bluemix push notification through PHP code

问题描述:

I am new with IBM Bluemix and I want to add PHP code for sending push notifications on both iOS and Android devices.

My app is built with the Xamarin platform for both type of mobile devices.

The backend is created in PHP with the Codeigneter framework.

I see in the Dashboard there is direct user interface for sending a push in Bluemix, but I want to send a Push on run-time for example: some user sending a friend request and the other user automatically receiving a push notification.

网友答案:

There is not a PHP SDK library, but you could accomplish your behavior by checking out the Push Notifications Swagger documentation:

https://mobile.ng.bluemix.net/imfpushrestapidocs/

First you would register your mobile app so it receives push notifications (using the Android or iOS Client SDKs available here). Then you could have your backend send the push notification to a specific device on the event that a friend request is sent by using the REST API (as outlined in the Swagger docs).

分享给朋友:
您可能感兴趣的文章:
随机阅读: