Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
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
Data Recovery White
Commits
e890ce51
Commit
e890ce51
authored
Jul 12, 2024
by
leichao.gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调fcm
parent
5c7cb3f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
google-services.json
app/google-services.json
+9
-7
FCMManager.java
app/src/main/java/com/base/datarecovery/fcm/FCMManager.java
+3
-1
No files found.
app/google-services.json
View file @
e890ce51
{
"project_info"
:
{
"project_number"
:
"
993178188325
"
,
"project_id"
:
"
testcleanmast
er"
,
"storage_bucket"
:
"
testcleanmast
er.appspot.com"
"project_number"
:
"
461367088257
"
,
"project_id"
:
"
eaybatteryclean
er"
,
"storage_bucket"
:
"
eaybatteryclean
er.appspot.com"
},
"client"
:
[
{
"client_info"
:
{
"mobilesdk_app_id"
:
"1:
993178188325:android:a7986c2607f23024825dcc
"
,
"mobilesdk_app_id"
:
"1:
461367088257:android:7dde78d34b987724a6a980
"
,
"android_client_info"
:
{
"package_name"
:
"com.test.
basd.cleanmast
er"
"package_name"
:
"com.test.
laskea.eaybatteryclean
er"
}
},
"oauth_client"
:
[],
"api_key"
:
[
{
"current_key"
:
"AIzaSyC
Y5uqNx8qS5ZPvSIknbh2nH2v5vjzCmPI
"
"current_key"
:
"AIzaSyC
hfyqmj4ubna4IY5QSHdR3tQ9P-NkZiiA
"
}
],
"services"
:
{
...
...
@@ -26,4 +26,6 @@
}
],
"configuration_version"
:
"1"
}
\ No newline at end of file
}
\ No newline at end of file
app/src/main/java/com/base/datarecovery/fcm/FCMManager.java
View file @
e890ce51
...
...
@@ -5,6 +5,7 @@ import android.util.Log;
import
androidx.annotation.NonNull
;
import
com.base.datarecovery.utils.EventUtils
;
import
com.google.android.gms.tasks.OnCompleteListener
;
import
com.google.android.gms.tasks.Task
;
import
com.google.firebase.FirebaseApp
;
...
...
@@ -22,7 +23,8 @@ public class FCMManager {
@Override
public
void
onComplete
(
@NonNull
Task
<
Void
>
task
)
{
if
(
task
.
isSuccessful
())
{
Log
.
d
(
"FCMUtil"
,
"suc"
);
Log
.
d
(
"FCMUtil"
,
"suc:"
+
topic
);
EventUtils
.
INSTANCE
.
event
(
"FCM_Topic_"
+
topic
,
null
,
null
,
false
);
}
else
{
Log
.
d
(
"FCMUtil"
,
"fail"
);
}
...
...
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