我正在尝试在我的安卓应用中集成kiip。我已经从https://kiip.me/开发者网站下载了最新的SDK和示例。同时,我在kiip.me网站上创建了一个新应用程序。
一切都很好,但问题是,我得到了KPResource null,所以显示没有促销活动。这是我在onStart()方法中使用的监听器:
public void onStart() {
super.onStart();
// The Activity context has been created by now, so start a new session.
KPManager.getInstance().startSession(mStartSessionListener);
}
private KPRequestListener<KPResource> mStartSessionListener = new KPRequestListener<KPResource>() {
public void onFinished(KPManager manager, KPResource response) {
if (response != null) {
toast("Start Session Finished w/ Promo");
} else {
toast("Start Session Finished No Promo");
}
manager.showResource(response);
// Start retrieving user's location
new LocationHelper(ExampleApplication.this).requestLocationUpdates(mLocationListener);
}
这里的响应始终为空,因此会得到消息:开始会话已完成,没有促销。如果有人遇到类似的问题,请分享您的看法。
提前致谢。