2012-02-02 59 views
3

我想在我的android應用中集成kiip。我已經從https://kiip.me/開發者網站下載了最新的sdk和示例示例。另外,我在kiip.me網站上創建了一個新的應用程序。kiip在android中的集成

一切都很好,但問題是,我得到KPResource空,因此沒有顯示出促銷。 這裏是我使用在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); 
     } 

這裏的響應總是空,所以得到消息:啓動會話後沒有促銷。如果任何人有類似的問題,那麼請分享您的意見。

在此先感謝。

回答

1

最後,這個問題已經解決了。我認爲問題出在我的設備上,當我第二天使用其他設備進行測試時,它對我有用。

1

是否啓用測試設備茂德在儀表盤上https://kiip.me

這聽起來像它可能是在服務器端設置一個問題。嘗試登錄並切換促銷頻率並添加您的測試設備。