Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
94ea343d
Commit
94ea343d
authored
Aug 09, 2021
by
chengkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config the vivo meta_data
parent
bc165da9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
AndroidManifest.xml
Components/BPush/src/main/AndroidManifest.xml
+11
-15
ViVoPushPolicy.kt
...yidian/shenghuoquan/bpush/push/vivopush/ViVoPushPolicy.kt
+3
-2
No files found.
Components/BPush/src/main/AndroidManifest.xml
View file @
94ea343d
...
...
@@ -9,34 +9,30 @@
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<!-- oppo 推送权限 -->
<uses-permission
android:name=
"com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE"
/>
<uses-permission
android:name=
"com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE"
/>
<permission
android:name=
"com.shenghuoquan.business.permission.MIPUSH_RECEIVE"
android:protectionLevel=
"signature"
/>
<uses-permission
android:name=
"com.shenghuoquan.business.permission.MIPUSH_RECEIVE"
/>
<queries>
<intent>
<action
android:name=
"com.huawei.hms.core.aidlservice"
/>
</intent>
</queries>
<meta-data
android:name=
"com.vivo.push.api_key"
android:value=
"xxxxxxxx"
/>
<meta-data
android:name=
"com.vivo.push.app_id"
android:value=
"xxxx"
/>
<application>
<receiver
android:name=
".push.vivopush.receiver.VivoPushMessageReiceiver"
android:enabled=
"true"
android:exported=
"true"
>
android:exported=
"false"
>
<intent-filter>
<!--接收push消息-->
<action
android:name=
"com.vivo.pushclient.action.RECEIVE"
/>
</intent-filter>
</receiver>
<meta-data
android:name=
"com.vivo.push.api_key"
android:value=
"5523ffaccf96b17bf2ce726cca337243"
/>
<meta-data
android:name=
"com.vivo.push.app_id"
android:value=
"105495865"
/>
<meta-data
android:name=
"com.huawei.hms.client.channel.androidMarket"
android:value=
"false"
/>
<!-- 小米推送服务 -->
...
...
Components/BPush/src/main/java/com/yidian/shenghuoquan/bpush/push/vivopush/ViVoPushPolicy.kt
View file @
94ea343d
...
...
@@ -15,11 +15,12 @@ class ViVoPushPolicy: PushPolicy() {
}
var
token
:
String
=
""
override
fun
initPushSdk
()
{
Timber
.
tag
(
"VivoPushPolicy"
).
i
(
"initPushSdk"
)
PushClient
.
getInstance
(
BPushApplication
.
context
).
initialize
()
PushClient
.
getInstance
(
BPushApplication
.
context
).
turnOnPush
(
IPushActionListener
{
Timber
.
tag
(
"ViVoPushPolicy"
).
i
(
"state is $it"
)
token
=
PushClient
.
getInstance
(
BPushApplication
.
context
).
regId
Timber
.
tag
(
"ViVoPushPolicy"
).
i
(
"regId is $token"
)
//
token = PushClient.getInstance(BPushApplication.context).regId
//
Timber.tag("ViVoPushPolicy").i("regId is $token")
//更新vivo手机token信息
})
}
...
...
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