Commit fc724a04 authored by chengkun's avatar chengkun

add huawei message service to manifest

parent 3e136bc1
......@@ -108,6 +108,12 @@
android:name="com.vivo.push.sdk.service.CommandClientService"
android:permission="com.push.permission.UPSTAGESERVICE"
android:exported="true"/>
<service android:name=".push.huaweipush.service.HuaweiPushGetDataService" android:exported="false">
<intent-filter>
<action android:name="com.huawei.push.action.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
</manifest>
\ No newline at end of file
......@@ -15,9 +15,9 @@ class HuaWeiPushPolicy: PushPolicy() {
val token = HmsInstanceId.getInstance(BPushApplication.context).getToken(appId, "HCM")
Timber.tag("HuaWeiPushPolicy").i("token is $token")
pushStatus = Constant.pushConnected
//update token to server
}
}).start()
//update token to server
}
override fun pubMessage(message: String) {
......
......@@ -26,7 +26,7 @@ public class HuaweiPushGetDataService extends HmsMessageService {
@Override
public void onMessageReceived(RemoteMessage message) {
Timber.i("onMessageReceived is called");
Timber.tag("HuaweiPush").i("message is " + message);
if (message == null) {
Log.e(TAG, "Received message entity is null!");
return;
......
......@@ -61,7 +61,7 @@ class PushService : ZapService() {
private fun pushMessage(message:String) {
Timber.tag("PushService").i(message)
pushSdkManager?.pushMessage(message)
// pushSdkManager?.pushMessage(message)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment