Skip to content Skip to sidebar Skip to footer

"com.android.vending.INSTALL_REFERRER" Fetching Referrer Parameters On Broadcast Has Up To 15 Seconds Delays On Some Devices

My server creates a link that redirects and passes parameters to google play store; The sms I receive by my Server; https://goo.gl/{UNIQUE_ID} when I click, I actually click on thi

Solution 1:

Because the INSTALL_REFERRER is sent as a broadcast (documentation) it uses the publish subscribe model. There is no guarantee about timing.

Because of this you shouldn't design your app startup flow to rely on receiving the broadcast within a certain length of time. Android is open source, and changes made my different phone manufacturers will cause different promptness in the delivery of broadcasts.

I'd have a different design for your app:

  • take the user always to the normal setup flow
  • if the broadcast arrives later, allow the user to skip login

Post a Comment for ""com.android.vending.INSTALL_REFERRER" Fetching Referrer Parameters On Broadcast Has Up To 15 Seconds Delays On Some Devices"