正在查看: imToken v3.28.8 应用的 BeaconFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: imToken v3.28.8 应用的 BeaconFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.helpscout.beacon.internal.presentation.push.fcm;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.helpscout.beacon.Beacon;
import com.helpscout.beacon.ui.BeaconPushNotificationsProcessor;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import timber.log.Timber;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0015\u0010\u0004J\u000f\u0010\u0003\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0003\u0010\u0004J\u0017\u0010\u0007\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\u000b\u001a\u00020\u00022\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\u000b\u0010\fR\"\u0010\u0014\u001a\u00020\r8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013¨\u0006\u0016"}, d2 = {"Lcom/helpscout/beacon/internal/presentation/push/fcm/BeaconFirebaseMessagingService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "", "onCreate", "()V", "Lcom/google/firebase/messaging/RemoteMessage;", "remoteMessage", "onMessageReceived", "(Lcom/google/firebase/messaging/RemoteMessage;)V", "", "refreshedToken", "onNewToken", "(Ljava/lang/String;)V", "Lcom/helpscout/beacon/ui/BeaconPushNotificationsProcessor;", "a", "Lcom/helpscout/beacon/ui/BeaconPushNotificationsProcessor;", "getProcessor", "()Lcom/helpscout/beacon/ui/BeaconPushNotificationsProcessor;", "setProcessor", "(Lcom/helpscout/beacon/ui/BeaconPushNotificationsProcessor;)V", "processor", "<init>", "beacon_release"}, k = 1, mv = {1, 4, 2})
public final class BeaconFirebaseMessagingService extends FirebaseMessagingService {
public BeaconPushNotificationsProcessor processor;
public void onCreate() {
super.onCreate();
this.processor = new BeaconPushNotificationsProcessor();
}
public void onMessageReceived(RemoteMessage remoteMessage) {
Intrinsics.checkNotNullParameter(remoteMessage, "remoteMessage");
Map<String, String> data = remoteMessage.getData();
Beacon.logsEnabled();
Timber.i("Push Payload: " + remoteMessage.getData(), new Object[0]);
Boolean isBeaconNotification = BeaconPushNotificationsProcessor.isBeaconNotification(data);
Intrinsics.checkNotNullExpressionValue(isBeaconNotification, "BeaconPushNotificationsP….isBeaconNotification(it)");
if (isBeaconNotification.booleanValue()) {
BeaconPushNotificationsProcessor beaconPushNotificationsProcessor = this.processor;
if (beaconPushNotificationsProcessor == null) {
Intrinsics.throwUninitializedPropertyAccessException("processor");
}
beaconPushNotificationsProcessor.process(getApplicationContext(), data);
}
}
public void onNewToken(String refreshedToken) {
Intrinsics.checkNotNullParameter(refreshedToken, "refreshedToken");
super.onNewToken(refreshedToken);
Beacon.setFirebaseCloudMessagingToken(refreshedToken);
}
}