正在查看: Kickcash v16.1 应用的 RNPushNotificationBootEventReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 RNPushNotificationBootEventReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.dieam.reactnativepushnotification.modules;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import com.microsoft.clarity.j8.k;
import java.util.Set;
public class RNPushNotificationBootEventReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.i(RNPushNotification.LOG_TAG, "RNPushNotificationBootEventReceiver loading scheduled notifications");
SharedPreferences sharedPreferences = context.getSharedPreferences("rn_push_notification", 0);
Set<String> keySet = sharedPreferences.getAll().keySet();
k kVar = new k((Application) context.getApplicationContext());
for (String str : keySet) {
try {
String string = sharedPreferences.getString(str, null);
if (string != null) {
com.microsoft.clarity.j8.a a = com.microsoft.clarity.j8.a.a(string);
if (a.b() < System.currentTimeMillis()) {
Log.i(RNPushNotification.LOG_TAG, "RNPushNotificationBootEventReceiver: Showing notification for " + a.c());
kVar.x(a.j());
} else {
Log.i(RNPushNotification.LOG_TAG, "RNPushNotificationBootEventReceiver: Scheduling notification for " + a.c());
kVar.w(a.j());
}
}
} catch (Exception e) {
Log.e(RNPushNotification.LOG_TAG, "Problem with boot receiver loading notification " + str, e);
}
}
}
}