接电话会触发onhide吗?

小程序 文章 2021-03-24 10:21 368 0 全屏看文

AI助手支持GPT4.0

接电话会触发onhide吗?Will answering the phone trigger onhide?

接电话会触发onhide吗?

谢谢大佬,目前需求是获取到用户是否接电话去了或者切到后台

Thank you, boss. The current demand is to get whether the user has answered the phone or switched to the background

回答:

-y😪:

目前验证了,ios14以下不触发,ios14卡片式接电话也不触发,只有点击卡片进去后才触发,安卓必触发,

拾忆:

会触发 onHide 的 包括 onShareAppmessage 也会触发

铅笔画不出蜡笔的味道:

只要你看不到小程序页面onhide就触发了,具体可以通过真机调试

-y😪:好的 因为害怕机型造成适配问题

-EOF-

AI助手支持GPT4.0