mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 06:15:12 +00:00
add logging
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
31f2f40bcf
commit
1bd28f5ef4
@ -279,6 +279,9 @@ public class PushUtils {
|
||||
|
||||
@Override
|
||||
public void onNext(@NonNull PushRegistrationOverall pushRegistrationOverall) {
|
||||
Log.d(TAG,
|
||||
"pushToken successfully registered at nextcloud server. pushToken= " + token.substring(0,5) + "...");
|
||||
|
||||
Map<String, String> proxyMap = new HashMap<>();
|
||||
proxyMap.put("pushToken", token);
|
||||
proxyMap.put("deviceIdentifier", pushRegistrationOverall.getOcs().getData().
|
||||
@ -316,6 +319,9 @@ public class PushUtils {
|
||||
@Override
|
||||
public void onNext(@NonNull Void aVoid) {
|
||||
try {
|
||||
Log.d(TAG,
|
||||
"pushToken successfully registered at pushproxy. pushToken= " + proxyMap.get("pushToken").substring(0,5) +
|
||||
"...");
|
||||
createOrUpdateUser(proxyMap, userEntity);
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "IOException while updating user", e);
|
||||
|
Loading…
Reference in New Issue
Block a user