Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PushPlatformDemo
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengjunjing
PushPlatformDemo
Commits
df1882da
Commit
df1882da
authored
May 18, 2021
by
pengjunjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集成OPPO推送功能
parent
1d4cc8d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
build.gradle
app/build.gradle
+1
-1
MyApplication.kt
...src/main/java/com/laihua/pushtestproject/MyApplication.kt
+10
-1
push
push
+1
-1
No files found.
app/build.gradle
View file @
df1882da
...
@@ -23,7 +23,7 @@ android {
...
@@ -23,7 +23,7 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"com.laihua.pushtestproject"
applicationId
"com.laihua.pushtestproject"
minSdkVersion
2
3
minSdkVersion
2
1
targetSdkVersion
30
targetSdkVersion
30
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
...
...
app/src/main/java/com/laihua/pushtestproject/MyApplication.kt
View file @
df1882da
...
@@ -14,7 +14,16 @@ class MyApplication : Application() {
...
@@ -14,7 +14,16 @@ class MyApplication : Application() {
override
fun
onCreate
()
{
override
fun
onCreate
()
{
super
.
onCreate
()
super
.
onCreate
()
PushManager
.
instance
.
initContext
(
this
)
PushManager
.
instance
.
initContext
(
this
)
PushManager
.
instance
.
initMiPush
(
initParam
=
InitParam
(
"2882303761519924093"
,
"5121992433093"
))
PushManager
.
instance
.
initMiPush
(
InitParam
(
"2882303761519924093"
,
"5121992433093"
))
PushManager
.
instance
.
initHmsPush
()
PushManager
.
instance
.
initHmsPush
()
//OPPO APPID 30532383
PushManager
.
instance
.
initOppoPush
(
InitParam
(
"220c8dc643ce4a709b116a0aa26e6bf4"
,
"0305238c1c6949c38caa1fdd8070b4aa"
)
)
PushManager
.
instance
.
initFlyMe
(
InitParam
(
"141361"
,
"f3e78d580c7d46c295263b3dde94ca72"
))
}
}
}
}
\ No newline at end of file
push
@
9999cfe4
Subproject commit
67230ba365669b46d69dcc126b970e2853f7f6b4
Subproject commit
9999cfe489aff7002c9ece97dd3f1beca744be9c
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