Changes deviceDisplayName on pusher to use device model name

This commit is contained in:
ericdecanini 2022-09-23 09:36:53 -04:00
parent 65c89638ab
commit 52171ef748
1 changed files with 5 additions and 5 deletions

View File

@ -66,14 +66,14 @@ class PushersManager @Inject constructor(
pushKey, pushKey,
stringProvider.getString(R.string.pusher_app_id), stringProvider.getString(R.string.pusher_app_id),
profileTag = DEFAULT_PUSHER_FILE_TAG + "_" + abs(activeSessionHolder.getActiveSession().myUserId.hashCode()), profileTag = DEFAULT_PUSHER_FILE_TAG + "_" + abs(activeSessionHolder.getActiveSession().myUserId.hashCode()),
localeProvider.current().language, lang = localeProvider.current().language,
appNameProvider.getAppName(), appDisplayName = appNameProvider.getAppName(),
activeSessionHolder.getActiveSession().sessionParams.deviceId ?: "MOBILE", deviceDisplayName = android.os.Build.MODEL,
gateway, url = gateway,
enabled = true, enabled = true,
deviceId = activeSessionHolder.getActiveSession().sessionParams.deviceId ?: "MOBILE", deviceId = activeSessionHolder.getActiveSession().sessionParams.deviceId ?: "MOBILE",
append = false, append = false,
withEventIdOnly = true withEventIdOnly = true,
) )
suspend fun registerEmailForPush(email: String) { suspend fun registerEmailForPush(email: String) {