We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a10c3 commit 5e40cffCopy full SHA for 5e40cff
1 file changed
libs/SalesforceSDK/src/com/salesforce/androidsdk/push/PushService.kt
@@ -395,8 +395,9 @@ open class PushService {
395
)
396
397
// Adds community ID to the registration payload to allow scoping of notifications per community.
398
- account.communityUrl?.takeUnless { it.isBlank() }?.let {
399
- fields[NETWORK_ID] = it
+ val communityUrl = account.communityUrl
+ if (!communityUrl.isNullOrBlank()) {
400
+ fields[NETWORK_ID] = communityUrl
401
}
402
403
// Adds an RSA public key to the registration payload if available.
0 commit comments