文档

系统报错 android.app.RemoteServiceException 如何解决?

更新时间:

问题详述

Android5.0系统接入Push SDK后,创建通知失败,报错描述如下:

  1. android.app.RemoteServiceException
  2. Bad notification posted from package xxx.xxx.xxx: Couldn't expand RemoteViews for: StatusBarNotification(pkg=xxx.xx.xx user=UserHandle{0} id=707349 tag=null score=10 key=0|xxx.xxx.xxx|707349|null|10307: Notification(pri=1 contentView=home.smart.framework.lock/0x10900fa vibrate=[100,250,100,250,100,250] sound=content://settings/system/notification_sound defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE))

问题原因

上述问题通常是由于通知图标过大导致的,若未进行图标设置则Push SDK会默认使用启动图标作为通知图标,若启动图标过大,在部分设备上可能出现上述问题。

解决方案

将相应图标替换成相对较小的图标,再进行测试。

  • 本页导读 (0)
文档反馈