2012-08-02 287 views
1

我使用INSTALL_REFERRER玩弄了一切,使用adb時一切正常,但當我的應用程序位於Google Play-Store中時並非如此。Android INSTALL_REFERRER和Google Play Store

我的情況是:

1)一個包含我的廣播接收器庫(包com.sm.android) 2)使用庫我的應用程序(包de.sm.android)

在AndroidManifest應用程序的.XML文件,接收器部分看起來像:

<receiver 
     android:name="com.sm.android.helper.ReferralReceiver" 
     android:exported="true" > 
     <intent-filter> 
      <action android:name="com.android.vending.INSTALL_REFERRER" /> 
     </intent-filter> 
    </receiver> 

正如前面所說,使用亞行我得到的安裝事件,但下載從商店應用程序時,我沒有得到事件。我使用https://developers.google.com/analytics/devguides/collection/android/v2/campaigns構建我的網址,它看起來像https://play.google.com/store/apps/details?id=de.sm.riskulator&referrer=utm_source%3Dgoogle%26utm_medium%3Dbanner%26utm_content%3D234124%26utm_campaign%3Dpromo並正確轉發到我的應用程序。

由於提前, 薩沙

回答

1

我可能是錯的,但我認爲它是一個安全漏洞,這是現在禁用。即它允許代碼在用戶啓動之前在電話上運行。

更新:供參考的鏈接。

https://nayaneshguptetechstuff.wordpress.com/2014/06/24/receiver-not-working-know-more-about-stopped-state-of-an-application/

http://developer.android.com/about/versions/android-3.1.html (見啓動控制上停止應用

Intercept INSTALL_REFERRER and then forward on to Google AnalyticsReceiver

+0

哦,那將是一個貝蒂... – 2012-08-02 14:33:23

+0

是通過努力爲你們任何機會? – Gopinath 2012-10-16 13:09:27

+0

@Kuffs你能提供一個確認這個功能已被禁用的鏈接嗎?謝謝 – 2014-12-24 14:35:38