因为没有设置qq允许通知的权限。
以小米手机为例,设置步骤如下:
1、首先打开手机桌面,点击设置图标。
/iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf495f80b657b094b36acaf9924"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf495f80b657b094b36acaf9924?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf495f80b657b094b36acaf9924"/>
2、进入页面后,选择“全部设置”页面下的“系统”中的“应用”选项。
/iknow-pic.cdn.bcebos.com/8694a4c27d1ed21b0894db5fa06eddc451da3f2e"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/8694a4c27d1ed21b0894db5fa06eddc451da3f2e?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/8694a4c27d1ed21b0894db5fa06eddc451da3f2e"/>
3、点击进入“应用”之后,在“全部”页面下找到“QQ”这个软件。
/iknow-pic.cdn.bcebos.com/29381f30e924b899e6ae8c8263061d950b7bf6fe"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/29381f30e924b899e6ae8c8263061d950b7bf6fe?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/29381f30e924b899e6ae8c8263061d950b7bf6fe"/>
4、这时会跳转出“QQ”的页面选项,然后对QQ权限进行管理,打开并显示悬浮窗功能。
/iknow-pic.cdn.bcebos.com/37d12f2eb9389b50f87615e88835e5dde6116efb"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/37d12f2eb9389b50f87615e88835e5dde6116efb?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/37d12f2eb9389b50f87615e88835e5dde6116efb"/>
5、然后,在点击自定义功能,打开显示通知栏通知和显示状态通知这两个选项。
/iknow-pic.cdn.bcebos.com/c83d70cf3bc79f3d0bcc108ab7a1cd11728b295f"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/c83d70cf3bc79f3d0bcc108ab7a1cd11728b295f?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/c83d70cf3bc79f3d0bcc108ab7a1cd11728b295f"/>
6、设置完毕,就可以在锁屏或者桌面中收到消息并提醒成功。
/iknow-pic.cdn.bcebos.com/58ee3d6d55fbb2fb2b15aca8424a20a44623dc4a"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/58ee3d6d55fbb2fb2b15aca8424a20a44623dc4a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="
https://iknow-pic.cdn.bcebos.com/58ee3d6d55fbb2fb2b15aca8424a20a44623dc4a"/>