- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
44 lines
1.6 KiB
Java
44 lines
1.6 KiB
Java
package csdk.glucustomersupport.push;
|
|
|
|
import android.content.Context;
|
|
import android.util.Log;
|
|
import com.google.firebase.messaging.FirebaseMessagingService;
|
|
import com.google.firebase.messaging.RemoteMessage;
|
|
import com.helpshift.Helpshift;
|
|
import csdk.glucustomersupport.impl.GluHelpshift;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class GluCSFirebaseMessagingService extends FirebaseMessagingService {
|
|
@Override // com.google.firebase.messaging.FirebaseMessagingService
|
|
public void onNewToken(String str) {
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
GluHelpshift.internal_Install(getApplication());
|
|
}
|
|
|
|
@Override // com.google.firebase.messaging.FirebaseMessagingService
|
|
public void onMessageReceived(RemoteMessage remoteMessage) {
|
|
super.onMessageReceived(remoteMessage);
|
|
if (remoteMessage != null) {
|
|
Map data = remoteMessage.getData();
|
|
String str = (String) data.get("origin");
|
|
if (str != null && str.equals("helpshift")) {
|
|
Helpshift.handlePush(data);
|
|
}
|
|
try {
|
|
Class.forName("csdk.glumarketing.GluMKTFirebaseMessagingService").getMethod("handleMessage", Context.class, RemoteMessage.class).invoke(null, this, remoteMessage);
|
|
} catch (ClassNotFoundException unused) {
|
|
Log.e("CS", "GluMKTFirebaseMessagingService not found");
|
|
} catch (NoSuchMethodException unused2) {
|
|
Log.e("CS", "handleMessage not found");
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|