Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
File Recovery RecycleBin
Commits
ef462a71
Commit
ef462a71
authored
Nov 09, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
ba942042
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
build.gradle
app/build.gradle
+1
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-1
StayJobService.kt
...com/base/filerecoveryrecyclebin/service/StayJobService.kt
+1
-1
No files found.
app/build.gradle
View file @
ef462a71
...
...
@@ -114,6 +114,7 @@ dependencies {
implementation
(
"com.google.firebase:firebase-messaging"
)
implementation
'com.google.firebase:firebase-crashlytics'
implementation
'com.google.firebase:firebase-analytics:21.6.2'
implementation
(
"com.google.firebase:firebase-messaging-directboot"
)
//google 内购订阅
...
...
app/src/main/AndroidManifest.xml
View file @
ef462a71
...
...
@@ -260,8 +260,9 @@
android:permission=
"android.permission.BIND_JOB_SERVICE"
/>
<service
android:directBootAware=
"true"
android:name=
".fcm.MessagingService"
android:exported=
"
tru
e"
>
android:exported=
"
fals
e"
>
<intent-filter>
<action
android:name=
"com.google.firebase.MESSAGING_EVENT"
/>
</intent-filter>
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/service/StayJobService.kt
View file @
ef462a71
...
...
@@ -98,7 +98,7 @@ class StayJobService : JobService() {
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
val
channel
=
NotificationChannel
(
channelId
,
channelName
,
NotificationManager
.
IMPORTANCE_
LOW
)
NotificationChannel
(
channelId
,
channelName
,
NotificationManager
.
IMPORTANCE_
HIGH
)
channel
.
lockscreenVisibility
=
1
val
notificationManager
=
context
.
getSystemService
(
Context
.
NOTIFICATION_SERVICE
)
as
NotificationManager
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment