Notification system - android

I've been looking at notifications for an app I'm making and I'm looking for a similar functionality to the Facebook app. There you receive notifications even though you are not in the App (by receiving something via WiFi/3G).
I've noticed for example that after you restart your phone (and without opening facebook) the notifications still arrive.
It is an important part of my app because it is used to display alerts of failures on a machine.
Anyone knows how to do that or what material I should read for that?
Thank you for your time.

Google cloud messaging user notifications does this.
http://developer.android.com/google/gcm/notifications.html

Push notifications is what you're looking for.
http://developer.android.com/google/gcm/index.html

I'd go with Google Cloud Messaging. It will send broadcast to your device in which you can decide if to raise a notification or not

refer to this link :http://developer.android.com/guide/topics/ui/notifiers/notifications.html
try this out !!

Related

Disable firebase cloud messaging from going to tray via Cloud Messaging

I've researched this topic for a little while, but I can't seem to get it. Apparently Google hasn't made an UI for this is what I understand. So here's the question.
I like to send cloud messages to my app users (100k+) occasionally. The users have an option to turn these notifications off which works fine if the app is in foreground.
But for background, Firebase does not give me any way of handling this. The message will always go to the tray even a user has disabled it inside the app. Understandably the notification never makes it to the app.
I've read responses from people that we should send such messages directly from our own servers. Yes, I've got my own servers and I do send a lot of messages to my users directly from the server. I maintain a database of all fcm codes.
But I'm wondering if there's a way of achieving this through the firebase console. It's nice to have all messages in once place e.g. ios and android. Google will also show us statistics which are also important in analysing which notifications are working better.
I've seen a possible answer here, How can I disable firebase notification on android client app, but it looks very unconventional.
Any help would be appreciated.
to disable notifications just must add
FirebaseMessaging.getInstance (). UnsubscribeFromTopic ("Topic_Name");
Note: these must be previously subscribed to the Topic
to enable notifications again use this
FirebaseMessaging.getInstance (). SubscribeToTopic ("Topic_Name");

Does Google ban internally implemented mobile push notification

I want to implement my own push notification system. My question is does google will ban or show warning for my application cause I don't use its Firebase Cloud Messaging?
Wether or not you decide to use FCM, you will have to create notifications locally when a message is received from server. There are no restrictions on local notifications so the answer is No, there are no restrictions or warnings.
Simple answer - No, it does not.
It would be kinda hilarious if they punished(banned) developers for creating notifications, something that's pretty vital in many applications.

How do Gmail notifications work? (Android)

How does gmail detect this when a mail arrives?
I guess, sending and receiving e-mail is not part of the Android operating system.
So, how does gmail do this?
Thanks in advance.
This is a very broad question, but as a starting point I would suggest looking at the Google gmail API. There are some sample code snippets to demo functionality.
https://developers.google.com/apis-explorer/#p/gmail/v1/
specifically you may want to focus on setting up hooks via
gmail.users.watch Set up or update a push notification watch on the given user mailbox.
If you are looking more advanced such as how the Google servers send IPCs; then the Google Test scripts may be of use.
https://github.com/google/mail-importer/blob/master/src/test/java/to/lean/tools/gmail/importer/gmail/GmailSyncerTest.java

Is Google Cloud Messaging Service required for push notifications

I am looking to create an Android app that uses a MySQL database located on a server. When certain changes are made to this database, I'd like a push notification to be sent to some app users. My question is, is the Google Cloud Messaging Service required to implement this? This page http://developer.android.com/google/gcm/index.html seems to suggest that using the Google Developers Console is also required. If so, is it possible to export this project into Eclipse? Thanks in advance.
My question is, is the Google Cloud Messaging Service required to implement this?
Yes and no, if you want to do real push messages then yes it is required however if you dont want to use GCM you can use XMPP to send messages to devices
Push notification can be generated using alarm in android.See this.
But here you are looking to send push notification after certain changes in your database which is located in your server,for that GCM will be a better option.You can find an excellent tutorial of GCM here.

Sending message from one app to al other as admin

I have an app where anyone can download an iOS or android app. No user will have to register or login.
I need to be able for admin users to send notifications to all users if and when new information needs to be delivered. This will be a one way conversation from admin to all users. There may be multiple admins.
What is the best way to handle this? Is push notifications the best and if so what is the best solution? I looked at Parse and it might be a solution.
Can anyone please advise?
Parse and Urban Airship are very solid, and likely either will work for your needs.
Another solution is creating your own service using the Apple Push Notification Service (APNS) and Google Cloud Messaging. However, it requires a significant amount of integration time.

Categories

Resources