Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vivo推送广播接收方式被弃用了 #59

Open
ansen666 opened this issue Jun 23, 2022 · 1 comment
Open

vivo推送广播接收方式被弃用了 #59

ansen666 opened this issue Jun 23, 2022 · 1 comment

Comments

@ansen666
Copy link

您好,vIvo推送payload也必须要传uri才行了,跟oppo发送消息一样。

等于vivo的skipContent值跟oppo的clickActionUrl字段值类似。vivo也需要用Activity接收通知栏点击,不然推送的时候就会提示:被拉起的Activity 未找到

@ansen666
Copy link
Author

首先感谢作者的无私奉献哈,让我接入厂商推送方便了很多。集成很快。请问后台java代码有开源吗?

还有一个问题,就是如果VIVO推送,MixPushResult对象的taskId没有值,需要从extra对象里面取taskId。

以下是我的代码,希望您在框架里面封装一下:
if(result.isSucceed()){ String taskId=result.getTaskId(); Object extra=result.getExtra(); if(Utils.equals(pfName,Constants.PushMan.VIVO) && extra !=null && extra instanceof Result){//vivo手机要单独取task id taskId=((Result) extra).getTaskId(); } System.out.println("发送成功 任务id:"+taskId+" json:"+result.toJSON().toString()); }else{ System.out.println("发送失败 错误说明:"+result.getReason()+" json:"+result.toJSON().toString()); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant