正在查看: MedEd v5.3.6 应用的 MyFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MedEd v5.3.6 应用的 MyFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.penpencil.physicswallah.fcm;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import com.freshchat.consumer.sdk.Freshchat;
import com.penpencil.physicswallah.feature.batch.presentation.activity.BatchOverviewActivity;
import com.penpencil.physicswallah.feature.home.presentation.ui.AppNavigationContainerActivity;
import defpackage.C0421jl3;
import defpackage.InterfaceC0390iT;
import defpackage.PC1;
import defpackage.bp1;
import defpackage.jV1;
import defpackage.mV;
import defpackage.pQ0;
import defpackage.yb0;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.f;
@Metadata
public final class MyFirebaseMessagingService extends pQ0 {
public static final int j = 0;
public jV1 d;
public C0421jl3 e;
public String f;
public String g;
public String h;
public String i;
public final void c(Bitmap bitmap) {
Intent intent;
tX1 tx1;
String str = this.g;
if (str == null || str.length() == 0) {
return;
}
String str2 = this.h;
if (str2 != null) {
u40.b.getClass();
if (a.a(str2) == u40.i) {
intent = new Intent(this, (Class<?>) BatchOverviewActivity.class);
intent.putExtra("batchId", this.i);
intent.putExtra("From ANNOUNCEMENT", true);
} else {
intent = new Intent(this, (Class<?>) AppNavigationContainerActivity.class);
}
} else {
intent = new Intent(this, (Class<?>) AppNavigationContainerActivity.class);
}
intent.addFlags(603979776);
PendingIntent activity = PendingIntent.getActivity(this, 0, intent, db2.a);
if (bitmap != null) {
tx1 = new tX1();
tx1.e(bitmap);
} else {
tx1 = null;
}
String string = getString(2132017947);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
Uri defaultUri = RingtoneManager.getDefaultUri(2);
vX1 vx1 = new vX1(this, string);
vx1.j();
vx1.f(this.g);
vx1.e(this.f);
vx1.i();
vx1.c(true);
vx1.k(defaultUri);
vx1.d(activity);
Intrinsics.checkNotNullExpressionValue(vx1, "setContentIntent(...)");
if (tx1 != null) {
vx1.l(tx1);
vx1.h(bitmap);
}
Object systemService = getSystemService("notification");
Intrinsics.e(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
NotificationManager notificationManager = (NotificationManager) systemService;
if (Build.VERSION.SDK_INT >= 26) {
EJ.d();
CJ.e(notificationManager, DJ.a(string));
}
notificationManager.notify(0, vx1.a());
}
@Override
public final void onNewToken(String token) {
Intrinsics.checkNotNullParameter(token, "token");
Freshchat.getInstance(this).setPushRegistrationToken(token);
jV1 jv1 = this.d;
if (jv1 == null) {
Intrinsics.n("networkManager");
throw null;
}
if (TextUtils.isEmpty(jv1.c().z())) {
return;
}
Lx.q(f.a(yb0.c), (CoroutineContext) null, (mV) null, new rI1(token, this, (InterfaceC0390iT) null), 3);
jV1 jv12 = this.d;
if (jv12 == null) {
Intrinsics.n("networkManager");
throw null;
}
bp1 c = jv12.c();
c.a.u(a.a, token);
PC1 a = PC1.a.a();
Context applicationContext = getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
a.b(applicationContext, token);
}
@Override
public final void onMessageReceived(com.google.firebase.messaging.RemoteMessage r6) {
throw new UnsupportedOperationException("Method not decompiled: com.penpencil.physicswallah.fcm.MyFirebaseMessagingService.onMessageReceived(com.google.firebase.messaging.RemoteMessage):void");
}
}