The invention provides a method, device and electronic device for reminding a new message of a web page, which relates to the field of communication technology. The method comprises acquiring the current state of a web page of a browser and judging whether the state of a web page is a reminding state; sending out a first new message reminding if the state of a web page is a reminding state; and if the state of a web page is not a reminding state. Alert status, determine whether the monitored web page in the browser currently receives new messages; if the monitored web page receives new messages, set the status of the web page to alert status, and issue a second new message alert; when the status of the web page is alert status, when the new message confirmation information is received, set the status of the web page to Normal condition. In this way, the function of real-time automatic reminder is realized, which effectively prevents users from missing important messages, stops reminding according to the user's confirmation of new message operation, reduces the interference to the normal use of the user's client, and thus improves the user's experience.
【技术实现步骤摘要】
网页新消息提醒方法、装置及电子设备
本专利技术涉及通信
,尤其是涉及一种网页新消息提醒方法、装置及电子设备。
技术介绍
基于B/S(browser/server,浏览器/服务器)架构的网络应用系统,此处称之为网页系统。在网页系统中,用户通过客户端上的浏览器进行网页浏览和操作,例如在网页版聊天应用的网页上进行聊天或在新闻网站上浏览新闻。以网页版聊天应用为例,通常在聊天过程中,用户客户端的网页上会接收到其他客户端发送的新消息或者聊天应用推送的新消息,然而由于网页系统主要是被动式的,很难做到交互式的网页系统,所以难做到新消息的实时提醒,可能会导致用户错过重要消息。现有技术中,网页系统客户端只能发出固定次数的新消息提醒,当新消息提醒次数设置的较少(如一次)时,可能导致用户错过该次提醒,进而错过重要消息;而新消息提醒次数较多(如五次)时,现有技术中不能根据用户的确认新消息操作而停止提醒,这样给用户客户端的正常使用带来了一定的干扰,影响了用户体验。
技术实现思路
有鉴于此,本专利技术的目的在于提供一种网页新消息提醒方法、装置及电子设备,以实现实时自动提醒功能,有效防止用户错 ...
【技术保护点】
1.一种网页新消息提醒方法,其特征在于,应用于带有浏览器的客户端,所述方法包括:获取所述浏览器当前的网页状态;判断所述网页状态是否为提醒状态;如果所述网页状态为所述提醒状态,发出第一新消息提醒;如果所述网页状态不为所述提醒状态,判断所述浏览器内的被监听网页当前是否接收到新消息;如果所述被监听网页接收到新消息,将所述网页状态设置为所述提醒状态,并发出第二新消息提醒;在所述网页状态为所述提醒状态下,当接收到新消息确认信息时,将所述网页状态设置为正常状态。
【技术特征摘要】
1.一种网页新消息提醒方法,其特征在于,应用于带有浏览器的客户端,所述方法包括:获取所述浏览器当前的网页状态;判断所述网页状态是否为提醒状态;如果所述网页状态为所述提醒状态,发出第一新消息提醒;如果所述网页状态不为所述提醒状态,判断所述浏览器内的被监听网页当前是否接收到新消息;如果所述被监听网页接收到新消息,将所述网页状态设置为所述提醒状态,并发出第二新消息提醒;在所述网页状态为所述提醒状态下,当接收到新消息确认信息时,将所述网页状态设置为正常状态。2.根据权利要求1所述的方法,其特征在于,所述发出第一新消息提醒包括:播放新消息提醒语音和/或弹出显示新消息的弹窗;所述发出第二新消息提醒包括:播放新消息提醒语音和/或弹出显示新消息的弹窗。3.根据权利要求1所述的方法,其特征在于,所述判断所述浏览器内的被监听网页是否接收到新消息,包括:从所述客户端的数据库中获取所述浏览器对应的新消息标志位;判断所述新消息标志位是否为第一数值;其中,所述第一数值用于指示所述浏览器内的被监听网页接收到新消息。4.根据权利要求3所述的方法,其特征在于,所述方法还包括:通过定时器定时扫描新消息;当扫描到新消息时,将所述新消息标志位设置为所述第一数值。5.根据权利要求3所述的方法,其特征在于,当接收到新消息确认信息时,所述方法还包括:将所述新消息标志位设置为第二数值;其中,所述第二数值用于指示所述被监听网页未接收到新消息。6.根据权利要求1所述的方法,其特征在于,所述获取所述浏览器当前的网页状态之前,所述方...
【专利技术属性】
技术研发人员:郑再添,包新宇,王文义,吴国锋,吴超平,张礼德,纪丹霞,黎锦洪,张卫辉,秦立斌,邱晓丽,谢若锋,范勇,赖绍奇,谢昱良,黎其芬,程天宇,赵留义,梁伟权,叶伟文,李丽斌,黎柱民,郑超凡,陈文睿,黄永平,姚俊钦,
申请(专利权)人:广东电网有限责任公司,广东电网有限责任公司东莞供电局,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。