Fix FCM error always showing, even when it works
Change-Id: Ic9ed2bf74c252ee8b923f996642285681f504420
This commit is contained in:
parent
f167a00921
commit
a7f41e88f3
@ -217,6 +217,9 @@ object UPHelper {
|
|||||||
fun getPrivacyFriendlyUpEndpoint(context: Context): String? {
|
fun getPrivacyFriendlyUpEndpoint(context: Context): String? {
|
||||||
val endpoint = getUpEndpoint(context)
|
val endpoint = getUpEndpoint(context)
|
||||||
if (endpoint.isNullOrEmpty()) return endpoint
|
if (endpoint.isNullOrEmpty()) return endpoint
|
||||||
|
if (isEmbeddedDistributor(context)) {
|
||||||
|
return endpoint
|
||||||
|
}
|
||||||
return try {
|
return try {
|
||||||
val parsed = URL(endpoint)
|
val parsed = URL(endpoint)
|
||||||
"${parsed.protocol}://${parsed.host}"
|
"${parsed.protocol}://${parsed.host}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user