[Q] Question about push notifications and testing on device - Android Software Development

I have push notifications working on two emulated devices within eclipse (android 2.2 phone and a 3.1 table). I am sending notifications to the two devices from my linux server in another state so its not even coming from within my lan. The notifications work perfect on both devices.
Problem is, when I plug in my tablet and launch the app on the tablet to test, push notifications do not work. I can see "something" is happening in eclipse when i send the notification from my server with curl, however its not triggering/launching my app. The app phones home to my server and registers the devices, but when i send a push notification i get some green text in the log (forgive me I dont have the logs with me, im at work they are at home)
Why is this?

Related

Android 1.0 bugs and glitches

Has anybody else found annoying bugs so far? Here's the ones that I've run into:
- Address Book server sync overwrites changes that you've made from the phone (haven't confirmed this one, might be my fault somehow)
- Multimedia volume slider plays your ringtone once you adjust the volume, but plays it at the volume set in the ringtone slider (not the volume that you're actually adjusting)
- Browser bookmarks list has a lot of trouble keeping site icons straight, it just kind of randomly shuffles them around to the wrong site as you load different bookmarks
- AOL Instant Messenger app shows weird behavior, not sure if it's a bug but it is definitely difficult to use in its current state. Locking the phone prevents messages from showing up, then on unlock they stream in all at once, and if you go too long without checking in on it the program will be terminated but your screen name will not be signed out of AOL's server
- There doesn't appear to be any way to set a vibration for notifications like Text Messages or IMs
- Some apps (MySpace Mobile, specifically) do not account for their process being interrupted when the screen rotates and the current action will be cancelled or the program will freeze.
Overall great phone, I'm really extremely impressed with it as a whole so far. I'm amazed at how fast my internet connection is on EDGE, my old Dash was technically on the exact same connection but took 5 or 10 times longer to load a full web page. Even without 3G the web browsing experience is comparable to using my desktop at home.
chefgon said:
- There doesn't appear to be any way to set a vibration for notifications like Text Messages or IMs
Click to expand...
Click to collapse
ya there is. for example, go to the main Messaging page where it shows all of your threads. Click on Menu > Settings > Vibrate (put a check mark)
same thing with IMs or EMail
snofrandy said:
ya there is. for example, go to the main Messaging page where it shows all of your threads. Click on Menu > Settings > Vibrate (put a check mark)
same thing with IMs or EMail
Click to expand...
Click to collapse
Awesome, thank you! Weird that the option isn't available in the same place as setting the vibration function for the phone. Has anybody found solutions to any of these other problems?
Thanks
That fixed it for me. Thanks..its so Funny because Ive been messing around with my phone for 2 days and Just found this answer...Thanks
Android will get it wrong sometimes on sms threads when the sender is not in your contacts.
I noticed yesterday I received an sms from [email protected] and deleted it. Later an sms from +1913XXXXXXX. When I pulled up the my sms folders later, the newer, undeleted sms from the 913 number said it was from @domain.com.
(and the two are in no way related.) I did a reboot and it still displayed the same.
chefgon said:
Has anybody else found annoying bugs so far?
Click to expand...
Click to collapse
When I plug my G1 into my iMac the computer freezes and I need to do a hard restart. Is anyone else having this issue? My updates are current on my iMac and all of my other phones work without any problems.
when i play music and i turn of the screen, there is a jump every 15 seconds
here's an email bug...
Go to craigslist.org. I wanted to ask a seller a question. When I email from there, it gives me 2 options, to use my pop 3 email account or gmail. If I use gmail, it takes off the craigslist.org extension and replaces it with gmail.com. If i choose to send with my pop 3, it just opens a blank email without the email address. I try to copy and paste the address into the sending field, but it won't let me. I use craigslist a lot, so this is a bit of a pain...
Otherwise, lovin the G1
scottslc said:
Go to craigslist.org. I wanted to ask a seller a question. When I email from there, it gives me 2 options, to use my pop 3 email account or gmail. If I use gmail, it takes off the craigslist.org extension and replaces it with gmail.com. If i choose to send with my pop 3, it just opens a blank email without the email address. I try to copy and paste the address into the sending field, but it won't let me. I use craigslist a lot, so this is a bit of a pain...
Otherwise, lovin the G1
Click to expand...
Click to collapse
When it switches you over to gmail. Is the body filled out or the sender in the field?
no, just replaces the extention
Give it a try see what you find. www.craigslist.org
Actually i did try it and it worked for me.
But, i used the mobile version of Craigslist.
Mobile version of Craigs

GChat on desktop with phone nearby

Has anyone cracked the code on when Google chat on the phone ignores desktop chat and when it doesn't? I have seen that sometimes when I chat with my friends on my desktop, sometimes my phone beeps for every line entered by the other party and sometimes it doesn't. I think in a perfect world, the phone should beep for the "first" line of text, and if I answer on the desktop, it should ignore the rest (but still record them for posterity). And if I answer on the phone, perhaps it should just haptic vibrate for each line of text received after the "first". I say "first" in quotes because I imagine that would be difficult to manage pragmatically. When is it the first chat of a new "session", and when is it just a delay in between chat lines of the same session? Maybe a customizable interval, like say five minutes. If no text is received within five minutes then it is a new session, so beep on the first line?
Lat night I was chatting with a friend (I was on the desktop) and every time he sent something, my phone would beep. Not the best solution in my opinion.
From what I can tell, your phone will receive the message when you do not have the gchat window active on your desktop.
If you click in on the area like you were going to type a message and leave your cursor there, when your friends send messages they don't seem to get sent to the phone. On the other hand, even if you have gchat open on your desktop and you say use a different program or are on a different tab in your browser, then your phone will receive the messages.
At least this is my experience. I think this is the correct behavior as you don't need to get messages in two places when you are actively chatting.
From my experience I use Gchat on my pc everyday when i am at work and I have my phone on my desk near by. When a friend of mine messages me it hits both for the first message, but if i answer on my desktop, it does not hit my phone ever until I sign off of gchat on my pc. Even if it is not focused on the gchat window. I am however using Trillian for my gchat, not sure what you all are using.
DLarva said:
From what I can tell, your phone will receive the message when you do not have the gchat window active on your desktop.
If you click in on the area like you were going to type a message and leave your cursor there, when your friends send messages they don't seem to get sent to the phone. On the other hand, even if you have gchat open on your desktop and you say use a different program or are on a different tab in your browser, then your phone will receive the messages.
At least this is my experience. I think this is the correct behavior as you don't need to get messages in two places when you are actively chatting.
Click to expand...
Click to collapse
This is what happens for me as well. Messages go to my phone on the first IM or if I don't have that window active on my desktop.
I am using the built-into-gmail-dot-com google chat. This has definitely happened to me several times before. Last night it happened again. The entire conversation I had with my friend, every time I received a message on my desktop, my phone also beeped. Other times it worked like it was supposed to (beeped the first time and that was it.)
I will see if I can get my wife to help me troubleshoot tonight.
perhaps a topic for a different thread...
I found the chat behavior to be exactly the way DLarva stated:
DLarva said:
From what I can tell, your phone will receive the message when you do not have the gchat window active on your desktop....
Click to expand...
Click to collapse
My question (perhaps a dumb one ) is how/where to turn off the notification that you got a chat all together?
I don't want any notification of a chat receipt while I am on the phone.
Any help?
Maybe:
Try (within setting of google talk) turn off notification bar, no vibrate, and set ringtone to silent.
That might approximate no notification.
etaChase said:
I found the chat behavior to be exactly the way DLarva stated:
My question (perhaps a dumb one ) is how/where to turn off the notification that you got a chat all together?
I don't want any notification of a chat receipt while I am on the phone.
Any help?
Click to expand...
Click to collapse
thanks for that - have tried to "approximate" no notification, and that's all well and good. . . but not the same as turning it off.
I have looked around in my mobile settings in the google account but can't find it (thought it might be similar to turning on/off notification of appointments in the calendar)...
might just be missing it, but this seems like fairly simple feature. I am nearing feeling ready to root my phone and thought maybe this would be a feature that was only available after doing that. It would have been the final encouragement I need to take that (admittedly not very big) plunge!
I have a rooted Nexus One (CM6 with KOR) and that is as close as I can get to turning them off (that I can find anyway).
This was happening to me, too (when I used Gtalk on the PC, the phone sitting on my desk would sound the alert, with every chat message I rec'd) -- so I just manually signed out of Gtalk on the phone, and it stopped happening. I mostly use Gtalk on desktop anyway. (Though when I check "running processes" on the Vibrant, I see Gtalk always seems to be running -- must start up automatically -- even though I'm signed out...)
exactly Pevvy -
but signing out of Gmail kinda defeats the purpose of having the phone constantly synched. Guess the same argument could be made as to why you want chats saved/synched... anyhoo - I just don't want chat on my vibrant, period. I don't want them saved (so transcription is turned off in gChat on the desktop) and I would never chat from the phone. OK, never say never, but I would rather have to enable that, rather than always having it running using resources.
When I root that would a fun thing to explore to see if it can be deactivated through some custom start-up (so it doesn't show as a running service - I see the same thing) and only starts if I manually start it.
That said, if it is server side associated with the google account (its a hosted domain and that may further change things...) it may not be able to adjust even with root. Interest how this shows the blending/blurring between the net and the synch to the phone - and should data and synch be more push or pull.
Oh, I didn't sign out of Gmail on my phone -- just Gtalk (the chat service)... seems it was keeping me signed in automatically before, and I had to go into the app, and manually sign out.

EB01 Change Log! Enjoy :)

As found on Android Cental for those that are curious.
Here is the changelog for EB01:
1. Updated to support the Google Froyo 2.2 software
2. Added support for SMS Delivery acknowledgement
3. Addressed an issue seen in some cases were users would lose their data connection and have to either power cycle or turn on and off airplane mode to recover
4. A UI change was made to correct the spelling of “Dialled Calls” in the dialer app.
5. Addressed an issue where the speaker button was not working when connected to a Bluetooth device.
6. A software change was made to enhance the reliability of the syncing of IMAP and POP 3 e-mails accounts
7. You can now move messages between folders in the exchange mail client
8. Addressed an issue found when connected to the car dock and you turn off the back light the connection defaults to the speakerphone when you turn the back light back on
9. Addressed a “force close” error message seen when you select “delete all” in your sent or trash folders in your exchange e-mail account
10. You can now save a contact you found using a Global Address Look up.
11. Addressed an issue found when using Bing Voice search causing the device to give the error message “thinking” and “make sure you are connected to a network and try again”.
12. When using the Voice Command application it will not display duplicate names and numbers for the same contact that was found from multiple sources.
13. Addressed an issue when using the Desktop dock which in some cases was causing the idle screen image to appear to be burned into the screen
14. The color scheme in the calendar has been changed
15. Enhancements were made to improve the update consistency of the feeds and widgets
16. Protected Media licenses are now stored on the memory card so if the device is factory reset these protected content licenses will not be lost
17. The Swype application will no longer capitalize letters inappropriately
Can anyone confirm that the 160+ character text messages to non Verizon users now works?
Yes it does for me at least
Sent from my SCH-I500 using XDA App
did the calendar colors actually change. i cant place what is different. its a trivial change but i was curious. also hoping they would jazz it up more
the best calendar change is that the google calendar is set to default instead of the local phone one.
nice 7 and 17 are what I was looking forward to getting fixed.

[Q] Android notifications forwarded from phone to TF?

Not sure if this is the right place or even how to pose the question since I have very little knowledge of how all this magic happens in my hands... so that acknowledged:
I have Android Notifier sending messages from my Thunderbolt to my Windows 7 laptop, which I love. If I leave my phone in another room I get my texts and other notifications on my laptop. Awesome, beautiful idea.
The problem is now that I have the TF, I don't sit there in front of my laptop anymore to see those notifications. Is there any way to have those call/text notifications pop up in my TF notifications?
In a ridiculously awesome world, there would be some sort of VNC type thing built into Honeycomb so when these notification pop in you could pull up your phone screen on your tablet (or computer for that matter) and control it from there... probably a reason this can't work that is beyond my paygrade, but a guy can dream, right?
Anyway, if anything like this exists or is in the works, I'd like to know about it for sure... thanks.
The only thing I've come across is SyncSms which sync your sms from phone with tablet. Also have a GV on my TF for that. Haven't seen anything for missed calls our other things yet.

NotificationListenerService driving me nuts

Okay, I'm working (and already release in beta) a app called notify which essentially allows to forward notification and call-events to other clients (Kodi aka XBMC is the only available client right now)
The problem:
As the title says, I'm using the NotificationListenerService which is driving me absolutely nuts. The problem is best explained with a "simple" example using e.g. a mail-app as reverence:
You receive a mail (the very first notification) which triggers onNotificationPosted with a StatusBarNotification object (which has a id, timestamp etc.)
WITHTOUT removing the first notification, you receive a second mail. This causes the mail app to:
Create a group (with the first and second notification) so wearable devices can properly display all notifications in form of a stack
Create a summary notification on the phone to display "basic" information's regarding both mails
This causes the onNotificationPosted to triggered multiple times with:
The very first email (now with different id, timestamp etc.)
The second email (The only thing I'm really interested in)
The summary notification
My problem is that I have no way of telling what the actual new notification is as the id AND timestamp of the first mail changed.
There is no real need of sharing my source as it is the most basic implementation of androids NotificationListenerService anyway (like really I only implemented the onNotificationPosted and onNotificationRemoved and forward the StatusBarNotification-object to another class which sends it to all clients)
I don't even use a BroadcastReceiver to communicate with the UI thread as I don't need the UI thread
I really hope someone knows what's up with that as I spent literally month without being able to get around this :/

Categories

Resources