On Fri, Mar 23, 2012 at 7:31 PM, PinkFluffyBunny <[email protected]> wrote: > I have implemented push notification for my Application using c2dm,but > when I send a notification to the application, I need to open the app > to see the notification alert dialog box.
Standard Android notifications are not dialogs. > If an push notification is sent when the application is closed or > minimized (running in background) then the notification alert will not > pop up till we open the application window. > > I want the notification to pop up even when the app is running in the > background or is stopped. It can pop the alert as a banner at the top > that stays for sometime and goes away or it can be a alert dialog box > that needs to be dismissed. Please don't attack your users that way, unless they opt into it. Many of your users will not appreciate being forcibly interrupted in the middle of their game, their book, their movie, etc. Please allow an option for using standard Android notifications, which the vast majority of your users will be used to. > Are there any parameters specific in the payload or header that need > to be specified to achieve this? No. Your problem has nothing to do with C2DM data. It has everything to do with what you are doing when the C2DM broadcast arrives and what you are then doing. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

