消息提醒的bug

By geeksun at 2015-07-01 • 1人收藏 • 4059人看过

当话题有回复时,右上角的提示按钮处有红色信息数字的提示,页面右下角也有网页弹出的提示,但当把提示信息看完之后,网页右下角的提示依然没有消失,还在网页显示着。需要手动关掉才行。

20 个回复 | 最后更新于 2016-10-26
2015-07-01   #1

右下角弹窗与红点30秒后自动关闭。

2015-07-01   #2

回复#1 @lincanbin :30秒是定时关闭,我觉得再加上判断机制比较好。

比如如果用户不查看消息提示,30秒自动关闭,如果查看了消息提示,就立即关闭。

2015-07-01   #3

回复#2 @geeksun :现在消息提示是实时的,红点和弹窗则是保留30秒,为了保证用户一定能看到。

消息实时推送功能目前还在开发中,并未完全实现,这些也在之后的开发日程中。

2015-07-01   #4

回复#3 @lincanbin :我觉得消息提醒3秒或5秒后消失就行,30秒太长了,因为如果用户是不擅长操作电脑的话,会对这么长的网页弹窗比较反感,因为如果在处理文件的话,有可能会遮住一部分网页,影响用户的工作。

2015-07-01   #5

回复#4 @geeksun :主要是防止用户看不到,然后后面会设计成点开后所有弹窗马上消失。

2015-07-01   #6

回复#3 @lincanbin :或不弹窗,只在小红点提示就行,因为看论坛毕竟不是刚需,弹窗出来对正常工作有一定影响。

2015-07-01   #7

回复#6 @geeksun :主要还是提升消息的曝光率,这对提升论坛活跃度很有好处。

像你我现在,可以跟QQ实时聊天一样地回帖,就是得益于实时的消息推送。

2015-07-01   #8

回复#7 @lincanbin :如果是网上论坛的话,确实有助于提升曝光率,但如果是公司内的论坛的话,有弹窗就会影响工作了。

2015-07-01   #9

回复#7 @lincanbin :那我把消息推送这个功能设置成可关闭的就是,可以让站长自由设定。

目前微博、QQ空间、知乎等等网站,都有实时的消息推送,不过只有Carbon Forum做到了即使这个网页最小化了也可以推送,这个我觉得是未来的趋势。

2015-07-01   #10

回复#8 @geeksun :公司内部论坛活跃度不会太高吧?

并且有消息我觉得就应该马上处理,特别是该公司内部论坛是用来交流公司事务的情况。

2015-07-01   #11

回复#8 @geeksun :

blob.png

说起来用户本身本来就可以在浏览器上禁用全部或者某个站点的通知的吧?

只要点通知中心的关闭通知按钮或者设置。

2015-07-01   #12

回复#9 @lincanbin :微博、知乎是有提示,但他们的提示是非侵入式的,carbon是网页弹窗,而且是叠加式的网页弹窗,会分散用户工作时的注意力。

2015-07-01   #13

回复#12 @geeksun :那行,下个版本发布的时候会给消息实时推送功能加入一些开关,设置推送频率和弹窗开闭。

叠加的问题等我有空的时候就解决掉。(目前是每个页面都有独立的推送进程)

2015-07-01   #14

回复#13 @lincanbin :增加开关设置比较好,叠加的问题确实比较严重 

2015-07-01   #15

回复#14 @geeksun :

如果只开一个Carbon Forum页面就没有叠加问题,开越多页面叠加越多,这个之后我会解决。(最近比较忙没时间更新)

目前发布的Carbon Forum 3.3.0版本中并没有推送功能,这个推送功能是我前几天有空那会儿才写的,所以问题还比较多,能收到用户的反馈我也是挺高兴的。

下个版本会参考这些建议。

2015-07-01   #16

回复#15 @lincanbin :网页弹窗还是默认不要有的好,因为用户太反感这种形式了,像很多弹窗广告就影响阅读,虽然提高了广告转化率,但对用户还是有干扰,必须去点击才能关掉弹窗。

2015-07-01   #17

回复#16 @geeksun :现在支持这种弹窗的浏览器不多,起码IE就全线不支持,其他也得前两年推出的新版本才支持。

然后就是弹窗,应该跟手机的通知栏推送差不多了吧,大部分人都是接受通知栏推送的消息的。

默认我觉得还是应该打开。

2015-07-01   #18

回复#17 @lincanbin :好吧,继续尝试改进吧 

2016-10-26   #19

回复#17 @lincanbin :


android客户端中消息提醒无数据,提示网络错误。其它数据都正常。下面是调试数据

 26143-26143/com.lincanbin.carbonforum I/View: Touch down dispatch to android.support.v7.widget.AppCompatTextView{42ca7450 V.ED.... ........ 0,43-648,100 #7f0d00b3 app:id/material_drawer_name}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=102.704895, y[0]=26.502869, Xw[0]=0.0, Yw[0]=0.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=13837468, downTime=13837468, deviceId=3, source=0x1002 }
10-26 16:15:39.686 26143-26143/com.lincanbin.carbonforum I/View: Touch down dispatch to android.widget.LinearLayout{42ca7148 V.E..... ........ 216,0-864,144}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=102.704895, y[0]=69.50287, Xw[0]=0.0, Yw[0]=0.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=13837468, downTime=13837468, deviceId=3, source=0x1002 }
10-26 16:15:39.687 26143-26143/com.lincanbin.carbonforum W/ResourceType: No package identifier when getting name for resource number 0x00000005
10-26 16:15:39.687 26143-26143/com.lincanbin.carbonforum I/View: Touch down dispatch to android.widget.LinearLayout{42ca6ab8 V.E...CL ........ 0,885-912,1029 #5}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=318.7049, y[0]=69.50287, Xw[0]=0.0, Yw[0]=0.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=13837468, downTime=13837468, deviceId=3, source=0x1002 }
10-26 16:15:39.730 26143-26143/com.lincanbin.carbonforum W/ResourceType: No package identifier when getting name for resource number 0x00000005
10-26 16:15:39.731 26143-26143/com.lincanbin.carbonforum I/View: Touch up dispatch to android.widget.LinearLayout{42ca6ab8 V.E...CL ...p.... 0,885-912,1029 #5}, event = MotionEvent { action=ACTION_UP, id[0]=0, x[0]=318.7049, y[0]=69.50287, Xw[0]=0.0, Yw[0]=0.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=13837518, downTime=13837468, deviceId=3, source=0x1002 }
10-26 16:15:39.741 26143-26143/com.lincanbin.carbonforum V/SettingsProviderInterface:  from settings cache , name = sound_effects_enabled , value = 0
10-26 16:15:39.748 26143-26143/com.lincanbin.carbonforum D/ActivityThread: ACT-AM_ON_PAUSE_CALLED ActivityRecord{41db6738 token=android.os.BinderProxy@41db5cc8 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.IndexActivity}}
10-26 16:15:39.754 26143-26143/com.lincanbin.carbonforum D/ActivityThread: ACT-PAUSE_ACTIVITY handled : 1 / android.os.BinderProxy@41db5cc8
10-26 16:15:39.757 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Handling launch of ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}}
10-26 16:15:39.758 26143-26143/com.lincanbin.carbonforum V/ActivityThread: ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}}: app=com.lincanbin.carbonforum.application.CarbonForumApplication@41dbc498, appName=com.lincanbin.carbonforum, pkg=com.lincanbin.carbonforum, comp={com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}, dir=/data/app/com.lincanbin.carbonforum-1.apk
                                                                           
                                                                           [ 10-26 16:15:39.761 26143:0x661f W/         ]
                                                                           [lenovotheme] getIdMapString()..pszRet:(null)
                                                                           
                                                                           [ 10-26 16:15:39.767 26143:0x661f W/         ]
                                                                           [lenovotheme] getIdMapString()..pszRet:(null)
                                                                           
                                                                           [ 10-26 16:15:39.769 26143:0x661f W/         ]
                                                                           [lenovotheme] getIdMapString()..pszRet:(null)
                                                                           
                                                                           [ 10-26 16:15:39.770 26143:0x661f W/         ]
                                                                           [lenovotheme] getIdMapString()..pszRet:(null)
10-26 16:15:39.779 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Performing resume of ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}} finished=false
10-26 16:15:39.779 26143-26143/com.lincanbin.carbonforum D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}}
10-26 16:15:39.779 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Resume ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}} started activity: false, hideForNow: false, finished: false
10-26 16:15:39.779 26143-26143/com.lincanbin.carbonforum V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =null, this =com.android.internal.policy.impl.PhoneWindow$DecorView{42cfa290 I.E..... R.....ID 0,0-0,0}
10-26 16:15:39.782 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Resuming ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}} with isForward=true
10-26 16:15:39.782 26143-26143/com.lincanbin.carbonforum V/PhoneWindow: DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{41ea5a88 com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity,ident = 15}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{42cfa290 V.E..... R.....ID 0,0-0,0}
10-26 16:15:39.782 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Scheduling idle handler for ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}}
10-26 16:15:39.783 26143-26143/com.lincanbin.carbonforum D/ActivityThread: ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{41f83ff8 token=android.os.BinderProxy@42d11308 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.NotificationsActivity}}
10-26 16:15:39.800 26143-26143/com.lincanbin.carbonforum W/FragmentManager: moveToState: Fragment state for PlaceholderFragment{42d18970 #1 id=0x7f0d0087 android:switcher:2131558535:1} not updated inline; expected state 3 found 2
10-26 16:15:39.824 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: create handle(0x6feb7bb8) (w:1088, h:1920, f:1)
10-26 16:15:39.827 26143-26143/com.lincanbin.carbonforum D/OpenGLRenderer: setViewport 1080x1920 <0x71bca328>
                                                                           
                                                                           [ 10-26 16:15:39.833 26143:0x661f W/         ]
                                                                           [lenovotheme] getIdMapString()..pszRet:(null)
10-26 16:15:39.841 26143-26143/com.lincanbin.carbonforum D/Status :: ReplyArray1
10-26 16:15:39.850 26143-26765/com.lincanbin.carbonforum D/POST URL :: http://1566356e0f.iok.la/notifications
10-26 16:15:39.850 26143-26143/com.lincanbin.carbonforum D/Status :: MentionArray1
10-26 16:15:39.850 26143-26765/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1477469739&SValue=9925450dcad76088122970fcbd5bf5a1&AuthUserID=5&AuthUserExpirationTime=1480061855&AuthUserCode=e347555bd7b35e32c91ea579e4b0ced7&
10-26 16:15:39.851 26143-26765/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:1
10-26 16:15:39.851 26143-26765/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:360000
10-26 16:15:39.852 26143-26765/com.lincanbin.carbonforum I/System.out: [CDS]close[37189]
10-26 16:15:39.852 26143-26765/com.lincanbin.carbonforum I/System.out: close [socket][/0.0.0.0:37189]
10-26 16:15:39.856 26143-26143/com.lincanbin.carbonforum V/InputMethodManager: onWindowFocus: android.support.v7.widget.RecyclerView{42d1a6c0 VFED.V.. .F....I. 0,0-1080,1701 #7f0d009d app:id/notifications_list} softInputMode=272 first=true flags=#1810100
10-26 16:15:39.856 26143-26143/com.lincanbin.carbonforum V/InputMethodManager: START INPUT: android.support.v7.widget.RecyclerView{42d1a6c0 VFED.V.. .F....I. 0,0-1080,1701 #7f0d009d app:id/notifications_list} ic=null tba=android.view.inputmethod.EditorInfo@41eb0678 controlFlags=#105
10-26 16:15:39.885 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: create handle(0x6fe47a78) (w:1088, h:1920, f:1)
10-26 16:15:39.891 26143-26765/com.lincanbin.carbonforum D/libc-netbsd: getaddrinfo: 1566356e0f.iok.la get result from proxy >>
10-26 16:15:39.891 26143-26765/com.lincanbin.carbonforum I/System.out: propertyValue:true
10-26 16:15:39.892 26143-26765/com.lincanbin.carbonforum I/System.out: [socket][21] connection 1566356e0f.iok.la/122.228.19.59:80;LocalPort=38372(15000)
10-26 16:15:39.892 26143-26765/com.lincanbin.carbonforum I/System.out: [CDS]connect[1566356e0f.iok.la/122.228.19.59:80] tm:15
10-26 16:15:39.892 26143-26765/com.lincanbin.carbonforum D/Posix: [Posix_connect Debug]Process com.lincanbin.carbonforum :80 
10-26 16:15:39.905 26143-26143/com.lincanbin.carbonforum D/OpenGLRenderer: Flushing caches (mode 0)
10-26 16:15:39.921 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: close handle(0x6d08df90) (w:1088 h:1920 f:1)
10-26 16:15:39.922 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: close handle(0x6feb78a8) (w:1088 h:1920 f:1)
10-26 16:15:39.923 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: close handle(0x6dcb2048) (w:1088 h:1920 f:1)
10-26 16:15:39.923 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: close handle(0x71a9d870) (w:1088 h:1920 f:1)
10-26 16:15:39.985 26143-26765/com.lincanbin.carbonforum I/System.out: [socket][/192.168.1.12:38372] connected
10-26 16:15:39.985 26143-26765/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:25000
10-26 16:15:40.243 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: create handle(0x71a9d870) (w:1088, h:1920, f:1)
10-26 16:15:40.253 26143-26143/com.lincanbin.carbonforum V/ActivityThread: Finishing stop of ActivityRecord{41db6738 token=android.os.BinderProxy@41db5cc8 {com.lincanbin.carbonforum/com.lincanbin.carbonforum.IndexActivity}}: show=false win=com.android.internal.policy.impl.PhoneWindow@41dc8038
10-26 16:15:40.254 26143-26143/com.lincanbin.carbonforum V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{41e68980 com.lincanbin.carbonforum/com.lincanbin.carbonforum.IndexActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{41dd6ef0 I.E..... R......D 0,0-1080,1920}
10-26 16:15:40.254 26143-26143/com.lincanbin.carbonforum D/ActivityThread: ACT-STOP_ACTIVITY_HIDE handled : 0 / android.os.BinderProxy@41db5cc8
10-26 16:15:40.264 26143-26143/com.lincanbin.carbonforum D/GraphicBuffer: create handle(0x6dcb2048) (w:1088, h:1920, f:1)
10-26 16:15:41.648 26143-26765/com.lincanbin.carbonforum D/Post Error: No Network
10-26 16:15:41.649 26143-26765/com.lincanbin.carbonforum W/System.err: java.io.FileNotFoundException: http://1566356e0f.iok.la/notifications
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at com.lincanbin.carbonforum.util.HttpUtil.postRequest(HttpUtil.java:216)
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at com.lincanbin.carbonforum.NotificationsActivity$PlaceholderFragment$GetNotificationsTask.doInBackground(NotificationsActivity.java:284)
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at com.lincanbin.carbonforum.NotificationsActivity$PlaceholderFragment$GetNotificationsTask.doInBackground(NotificationsActivity.java:195)
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:288)
10-26 16:15:41.650 26143-26765/com.lincanbin.carbonforum W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-26 16:15:41.651 26143-26765/com.lincanbin.carbonforum W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
10-26 16:15:41.651 26143-26765/com.lincanbin.carbonforum W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-26 16:15:41.651 26143-26765/com.lincanbin.carbonforum W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-26 16:15:41.651 26143-26765/com.lincanbin.carbonforum W/System.err:     at java.lang.Thread.run(Thread.java:841)
10-26 16:15:41.664 26143-26143/com.lincanbin.carbonforum D/Status :: ReplyArray0
                                                                     
                                                                     [ 10-26 16:15:41.674 26143:0x661f W/         ]
                                                                     [lenovotheme] getIdMapString()..pszRet:(null)
10-26 16:15:57.985 26143-26143/com.lincanbin.carbonforum D/ActivityThread: SVC-Calling onStartCommand: com.lincanbin.carbonforum.service.PushService@42cad130, flags=0, startId=10
10-26 16:15:57.985 26143-26143/com.lincanbin.carbonforum D/ActivityThread: SVC-SERVICE_ARGS handled : 0 / ServiceArgsData{token=android.os.BinderProxy@420e0568 startId=10 args=Intent { cmp=com.lincanbin.carbonforum/.service.PushService }}
10-26 16:15:57.986 26143-26978/com.lincanbin.carbonforum D/POST URL :: http://1566356e0f.iok.la/json/get_notifications
10-26 16:15:57.987 26143-26978/com.lincanbin.carbonforum D/POST parameter: SKey=12450&STime=1477469757&SValue=0b29022d79f04ca597019bd612de0eb6&AuthUserID=5&AuthUserExpirationTime=1480061855&AuthUserCode=e347555bd7b35e32c91ea579e4b0ced7&
10-26 16:15:58.039 26143-26978/com.lincanbin.carbonforum D/libc-netbsd: getaddrinfo: 1566356e0f.iok.la get result from proxy >>
10-26 16:15:58.039 26143-26978/com.lincanbin.carbonforum I/System.out: propertyValue:true
10-26 16:15:58.040 26143-26978/com.lincanbin.carbonforum I/System.out: [socket][22] connection 1566356e0f.iok.la/122.228.19.59:80;LocalPort=43403(15000)
10-26 16:15:58.040 26143-26978/com.lincanbin.carbonforum I/System.out: [CDS]connect[1566356e0f.iok.la/122.228.19.59:80] tm:15
10-26 16:15:58.041 26143-26978/com.lincanbin.carbonforum D/Posix: [Posix_connect Debug]Process com.lincanbin.carbonforum :80 
10-26 16:15:58.124 26143-26978/com.lincanbin.carbonforum I/System.out: [socket][/192.168.1.12:43403] connected
10-26 16:15:58.124 26143-26978/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:360000
10-26 16:15:59.815 26143-26978/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:100
10-26 16:15:59.816 26143-26978/com.lincanbin.carbonforum I/System.out: [CDS]rx timeout:360000
10-26 16:15:59.818 26143-26978/com.lincanbin.carbonforum D/Post Result: {"Status":1,"NewMessage":3}


登录后方可回帖

登 录
信息栏

Carbon Forum是一个基于话题的高性能轻型PHP论坛

下载地址:Carbon Forum v5.9.0
QQ群:12607708(QQ我不常上)

donate

手机支付宝扫描上方二维码可向本项目捐款

粤公网安备 44030602003677号
粤ICP备17135490号

Loading...