cuihaoliang / android-smspopup

Automatically exported from code.google.com/p/android-smspopup
0 stars 0 forks source link

Notifications got broken suddenly #317

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send sms to myself

What is the expected output? What do you see instead?

Notification sound and vibration played, icon in status displayed.

What version of the product are you using? On what operating system?

No notification sound is played, only short vibration. Text in status appears 
but as soon as it goes away, there is no icon.

Please provide any additional information below.

I bumped into this bug while filling previous bug report. I only switched 
vibration mode in sound settings from "Only in Silent mode" to "Never" and sent 
another sms, and did not get proper notification. Changing back to "Only in 
Silent mode" did not help. I tried reconfiguring SMS Popup, enbaling/disabling 
it, rebooting phone, but nothing helped.

Original issue reported on code.google.com by burning....@gmail.com on 19 Apr 2012 at 7:00

GoogleCodeExporter commented 9 years ago
Sorry I need clear, step-by-step instructions on how to reproduce on my device, 
otherwise I can't identify and fix the issue.

Original comment by adam.eve...@gmail.com on 21 Apr 2012 at 4:45

GoogleCodeExporter commented 9 years ago
I can't give you step-by-step instruction to trigger a random bug. I explained 
as much as I could. Everything worked fine, then I changed phone's vibration 
settings and it stopped working regardless of any settings I changed since. I 
was only able to fix it by clearing application's data.

Original comment by burning....@gmail.com on 21 Apr 2012 at 4:51

GoogleCodeExporter commented 9 years ago
Ok, this happened again without me changing anything at all. I guess it's 
related to the fact that SMS messages are coming from non-regular numbers, for 
example: sms_web, Taxi, etc. This is happening only with new version of SMS 
Popup. I had old one working fine for almost 5 months with no single issue like 
this. Please take a look at the code and see what could cause that.

I am attaching screenshot of SMS message which I didn't get notification for. 
Check highlighted "number".

Original comment by burning....@gmail.com on 24 Apr 2012 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
Hrm very strange, yes I use a function to make sure the sender has a valid 
number or email and if not it will exit (no popup). what is the sender address 
in this case?

Original comment by adam.eve...@gmail.com on 25 Apr 2012 at 2:51

GoogleCodeExporter commented 9 years ago
The sender address in this case is literally "Taxi", as seen on screenshot. 
It's not an address book entry, it's raw "number". In Russia it's very common. 
A lot of content and service provicers use text instead of numbers as SMS 
source, so people can guess where SMS come from.

The strangest thing is that sometimes I get notification and sometimes I don't. 
For example, I got notification for second SMS from "Taxi" few minutes ago.

Default android notifications are working fine, so I guess there at least 
should be an option to disable these checks.

Original comment by burning....@gmail.com on 25 Apr 2012 at 2:57