Skip to content

Commit

Permalink
Merge pull request #33 from velocidi/avoid-exception
Browse files Browse the repository at this point in the history
Don't throw exception when ad id is unavailable
  • Loading branch information
duartepinto authored Sep 11, 2020
2 parents b81e54a + 4c1c77c commit 77765e5
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 77765e5

Please sign in to comment.