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
6c6c1bed
Commit
6c6c1bed
authored
Feb 12, 2025
by
guest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改fcmtoken上报需求
parent
71525fb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
FCMManager.kt
...in/java/com/base/filerecoveryrecyclebin/fcm/FCMManager.kt
+6
-4
EventUtils.kt
.../java/com/base/filerecoveryrecyclebin/utils/EventUtils.kt
+0
-1
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/fcm/FCMManager.kt
View file @
6c6c1bed
...
...
@@ -51,11 +51,13 @@ object FCMManager {
// Get new FCM registration token
val
token
:
String
=
task
.
result
LogEx
.
logDebug
(
"FCM"
,
"token=$token"
)
val
json
=
JSONObject
()
json
.
put
(
"token"
,
token
)
event
(
"fcm_message_received"
,
ext
=
json
)
if
(
token
!=
AppPreferences
.
getInstance
().
getString
(
"token"
,
""
)){
val
json
=
JSONObject
()
json
.
put
(
"token"
,
token
)
event
(
"fcm_message_received"
,
ext
=
json
)
AppPreferences
.
getInstance
().
put
(
"token"
,
token
)
}
AppPreferences
.
getInstance
().
put
(
"token"
,
token
)
// Handle new token
Log
.
d
(
"FCM"
,
"FCM Registration Token: $token"
)
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/utils/EventUtils.kt
View file @
6c6c1bed
...
...
@@ -14,7 +14,6 @@ object EventUtils {
private
val
TAG
=
"EventUtils"
private
val
push_limit
by
lazy
{
listOf
(
"fcm_message_received"
,
"showNotification"
,
"Notification_Popup"
,
"alarm_push"
,
...
...
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