在任何人抱怨Airpush之前,我想知道一种方法,可以在我的应用程序中为Airpush广告添加退出功能。
有人熟悉Airpush SDK吗?他们的文档非常糟糕。任何帮助都是非常感谢的。
我已经搜索了实际的SDK来寻找解决方案,但是找不到一个。
发布于 2012-01-10 12:20:00
我是空中推送的代表。Force的响应作为一种选择是正确的,但是为了让用户留在你的应用程序中,我们还建议你检查一下权限API。权限API允许您创建自定义的选择加入(白名单)和选择退出(黑名单)功能,并完全控制用户体验。
在Airpush开发人员门户中单击Permissions API按钮。出于您的目的,我建议您选择黑名单模式,因为您希望选择退出而不是选择加入。
在门户中启用黑名单模式后,请参阅以下有关相关API方法的文档:
Add Blacklist IMEI
Developer sends an ‘add blacklist IMEI’ request to add an IMEI to blacklist in Airpush database. Note: In blacklist mode, blacklisted IMEIs will NOT qualify to receive push notification ads from Airpush.
URL - http://api.airpush.com/api.php
Supported request methods - GET, POST
Requires Authentication - Yes, API AUTH KEY
Parameters -
Model "app"
Action "add_imei_black"
APIKEY Generated API Key
AppId App id of application give above
IMEI Md5 encrypted IMEI that needs to be added in blacklist
Response Details - Upon successful blacklisting of an IMEI, server responds back with int value 1 along with the HTTP status code 200 (Created). If parameters are invalid, server will return HTTP status code as 400 and in case of any other errors server will respond back with the specific error code.
Sample Code
http://api.airpush.com/api.php?model=app&action=add_imei_black&APIKEY=apikey&appId=appid&imei=UserEncryptedIMEI发布于 2012-01-08 04:09:56
尽管我不推荐使用Airpush,但您可以在应用程序中添加指向此应用程序的链接:https://market.android.com/details?id=com.airpush.optoutapp
这是Airpush的官方应用程序,可以选择退出。我不认为有一种方法可以在应用程序中手动禁用空气推送。
另一种方法是将用户重定向到此表单http://www.airpush.com/optout,但我不建议这样做,因为用户必须自己输入他的IMEI。
还请注意,Airpush仍将处于活动状态(=将IMEI发送到服务器),但不会出现。
https://stackoverflow.com/questions/8772453
复制相似问题