Skip to content

Commit

Permalink
Don't throw exception when ad id is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
dimamo5 committed Sep 11, 2020
1 parent a21b3ce commit 4c1c77c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ internal open class GetAdvertisingIdTask(val listener: (AdvertisingInfo) -> Unit
return try {
getAdvertisingId(context)
} catch (e: Exception) {
throw Exception("Unable to collect advertising ID from Google Play Services.")
Log.w(Constants.LOG_TAG, "Unable to collect advertising ID from Google Play Services.")
AdvertisingInfo("", false)
}
}

Expand Down

0 comments on commit 4c1c77c

Please sign in to comment.