Oyen333第一次提交

This commit is contained in:
xuhuixiang
2025-02-07 16:42:45 +08:00
parent d8b719d3a9
commit 9140640807
17 changed files with 40 additions and 283 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.web.mk88">
package="com.web.mk88aud">
<uses-feature
android:name="android.hardware.camera"

View File

@@ -1,4 +1,4 @@
package com.web.mk88;
package com.web.mk88aud;
import android.content.pm.PackageInfo;

View File

@@ -1,4 +1,4 @@
package com.web.mk88;
package com.web.mk88aud;
import android.app.NotificationChannel;
import android.app.NotificationManager;
@@ -83,14 +83,14 @@ public class MyFirebaseMessageingService extends FirebaseMessagingService {
channelwinway.enableVibration(true);
notificationManager.createNotificationChannel(channelwinway);
notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
.setSmallIcon(com.web.base.R.mipmap.app_logo)
.setSmallIcon(R.mipmap.app_logo)
.setContentTitle(messageInfo.getTitle())
.setContentText(messageInfo.getContent())
.setAutoCancel(true)
.setContentIntent(pendingIntent);
} else {
notificationBuilder = new NotificationCompat.Builder(this, getString(com.web.base.R.string.app_name))
.setSmallIcon(com.web.base.R.mipmap.app_logo)
.setSmallIcon(R.mipmap.app_logo)
.setContentTitle(messageInfo.getTitle())
.setContentText(messageInfo.getContent())
.setAutoCancel(true)
@@ -129,14 +129,14 @@ public class MyFirebaseMessageingService extends FirebaseMessagingService {
channelwinway.enableVibration(true);
notificationManager.createNotificationChannel(channelwinway);
notificationBuilder = new NotificationCompat.Builder(this, channelwinway.getId())
.setSmallIcon(com.web.base.R.mipmap.app_logo)
.setSmallIcon(R.mipmap.app_logo)
.setContentTitle(title)
.setContentText(body)
.setAutoCancel(true)
.setContentIntent(pendingIntent);
} else {
notificationBuilder = new NotificationCompat.Builder(this, getString(com.web.base.R.string.app_name))
.setSmallIcon(com.web.base.R.mipmap.app_logo)
.setSmallIcon(R.mipmap.app_logo)
.setContentTitle(title)
.setContentText(body)
.setAutoCancel(true)

View File

@@ -1,4 +1,4 @@
package com.web.mk88;
package com.web.mk88aud;
import android.app.Application;
import android.content.Context;