Android C2DM notification top corner? - android

I know C2DM seems to be messaged about to death, but I can not find my issue with the others listed here at stackOverflow.
So everything works, I register, I get my AuthCode, I send the Push, I receive the push. The only thing i noticed though is that I never see the push in the top corner screen of the of the phone where like the SMS messages do. Is that something I have to code specifically? if so, where can I find resources to do that ?
I have only done a Week's worth of android development, so I am a little green with the basics if this was covered somewhere in 101.

Yes, if you want a notification to appear, you will need to code that. Take a look at the NotificationManager api.

Related

Android Cancel Notification From Backend

I noticed that some app like messenger clear their notification in phone even I viewed the message from web.I know it can be done by giving ID to notification when showing it and when it needs to be cleared we can send another event via FCM and clear the corresponding notification. Is there a proper way of doing it other than sending another event via FCM because it feels not the proper way of doing it for me.
I hope it will helpful Can you expire / remove a message remotely on FCM?.
Note: due to low reputation I had to use answer section instead of comments.

Android - Notification Reminder - Remind user to open the unread notification

I searched quite a bit on here and can't figure this one out. All the posted questions refer to setting a notification to go off at a certain date/time or on a schedule. This is not what I am trying to do. It might not be possible and might be a system-controlled thing.
The feature I want to emulate/override/extend/whatever is the Notification Reminder in Android. This feature is part of android and can be set to something like "2 min", "10 min", whatever, and if you don't check the notification from an app then the device will give a little notification sound again to remind you that you still have the notification waiting in your notification bar. Do you know the feature I am referring to? (On my S6 I go to 'Accessibility --> Notification Reminder')
Is there a way for me to create this behavior in my app without relying on the system settings?
I want to make the device remind the user every 30 seconds that they have an unread notification from my app, and only from my app. The 2-minute reminder that Android offers is not enough (and also, it isn't working reliably for my users... can't figure out why. Sometimes it reminds, sometimes it doesn't.)
ALLOW ME BE COMPLETELY CLEAR ABOUT SOMETHING:
This app is being created for a government agency and is not being made to 'please the user'. I understand that there are certain things that are considered wrong, but trust me, that doesn't apply here. This app is for emergency notification for an 'on-call-24/7' unit with devices that are owned by the government. For example, I have a feature that allows the alert sender to force the recipient's ringtone on full blast with a preset tone. Obviously this would be terrible in a public app, but here, it is a requirement.
Thank you very much for any help! If you need me to post code, or more information about my specific implementation of the notification builder then let me know.
UPDATE:
Did my question get lost in the ether? lol, any takers?

android auto - notifications without reply

I'd like my android auto notification to not have any reply mechanism to it. I just want a notification that you can swipe to dismiss, but the only two options i see for android auto are messaging and audio. The messaging makes the notification have a reply to it like this:
notice how there is a microphone for user to reply. I dont want that on my notification. I only want to display info but no reply mechanism. I am not interested in reply, only to notify user of something. i want it to look like this instead but it seems only system has this kinds of notifications.
Android Auto has defined guidelines for Messaging Apps.
It didn't consider normal notifications as a scenario that needs to be addressed now in Auto environment.
We can hope it may be made more flexible on future along with measures to make sure that distraction is avoided by strict certification process.
So the answer to your question is - Not possible now.

Are there things like an Android trigger

I have never developed something in Android before, but now my company has put me on a project which includes android.
My question is this: Is it possible to write an application that runs in the background and waits for triggers (if that is the correct word for it). For instance lets say I want my application to do something as soon as you open your emails or as soon as you get an email. Is there some API that I can use to interact with other applications such as Mail. The application does not have to have any GUI, it will literally just push some information notifications on the mail just received or opened.
I don't require a to technical answer, but rather just yes or no, and indeed yes, where can I get more info on it. Also if it is not possible, is there some workaround to achieve this. I have googled it, but most of the links are how to send an email from your application.
Thanks
EDIT: So it can even be triggered when a notification is received. Then I just want to look at the notification and determine if it is an email?
You could register BroadCastReceiver for the actions that you need to be caught

Wake lock on receiving pushnotification. Is there an easy way?

I've followed android-hive's guide on push-notifications. And I've done my own app and implemented the necessary stuff to receive a push.
It works just fine, I get the push and a message and everything but the thing is, I want the screen to just light up when I get a push. Even in the original androidhive-code wake-lock didn't work for me. There must be some easy way to just make the screen wake up when i get a new push-notification right?
Thank you very much for all your help!

Categories

Resources