File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
AndroidSDKFcm/src/main/java/com/leanplum Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2222package com .leanplum ;
2323
2424import com .leanplum .internal .Constants ;
25+ import com .leanplum .internal .Log ;
2526
2627/**
2728 * Leanplum provider for work with Firebase.
@@ -49,11 +50,19 @@ public PushProviderType getType() {
4950
5051 @ Override
5152 public void updateRegistrationId () {
52- FirebaseUtilKt .updateRegistrationId (this );
53+ try {
54+ FirebaseUtilKt .updateRegistrationId (this );
55+ } catch (Throwable t ) {
56+ Log .e ("Error getting FCM token" , t );
57+ }
5358 }
5459
5560 @ Override
5661 public void unregister () {
57- FirebaseUtilKt .unregister ();
62+ try {
63+ FirebaseUtilKt .unregister ();
64+ } catch (Throwable t ) {
65+ Log .e ("Error unregistering from FCM" , t );
66+ }
5867 }
5968}
You can’t perform that action at this time.
0 commit comments