How do Gmail notifications work? (Android) - 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

Related

How to reply messages without entering Messenger Apps(ex: what's app, Fb, Telegram)?

Recently I found some amazing apps
https://play.google.com/store/apps/details?id=com.onetalkapp&hl=en
or
https://play.google.com/store/apps/details?id=com.flyperinc.notifly
They can intercept messages and replay through their UIs without using original messenger apps.
I Know it is possible to monitor incoming messages by Notification with some permissions.
But I have no idea how to send messages out without using original Apps?
It seems to me it might have security issues..
Thanks a lot.
For telegram I know you should create app with telegram API, you can find guidance on the telegram site.
Once you have configured your API key in your app, you could send messages, read them or even get the telegram contacts with these methods.

How to receive Gmail notifications with Xamarin

I know this seems like a basic question, but I can't find a clear answer to it. I want to develop an Android app with Xamarin to receive push notifications (new messages) from a Gmail account. I know the native Gmail app already does this, but for a few reasons I need to implement this funcionality myself. I searched about GCM, FCM, but I haven't found a single guide or example on how to do this. Please help!
I think the challenging bit here is the Gmail part.
For your scenario to work:
Gmail will need to forward its changes to a server-side application that you control
This server-side application will need to create a push notification by sending it to GCM/FCM's web services
From here you will need to implement push notifications normally in a Xamarin.Android app
I don't think you are going to find a prebuilt/off-shelf solution that achieves this.
This is a pretty tall order to implement yourself, but it seems to be quite possible. I will walk through what I would do to make this work:
Implement an Azure Function to act as a webhook for Gmail. Docs for Gmail here. I don't know if there is an example for this part.
Use Azure Notification Hubs to send push notifications. Your webhook will forward notifications to the hub. I have a sample here of sending from an Azure function.
Integrate the Azure Notification Hub SDK into your Xamarin.Android app
Like I said, this is quite a bit of work. I'm not sure if you have Windows Azure or Xamarin experience, but I think this is the easiest path forward for a new project using C#.
I have a book here (make sure you get 3rd edition) that covers push notifications and Azure functions in Xamarin apps. The sample code for the book is on Github if you want a free resource.
Take a look at Zappier, it integrates well with OneSignal which sends notification on top of Firebase. setup is easier than you can imagine.
I wanted to achieve a quite similar application to what you wanted to achieve. In my case, I wanted to develop a xamarin app that fetches a specific user's tweet and pop a notification to android client automatically.
Zappier provided easy integration between twitter and onesignal.
Onesignal automated the messaging.
Take a look at here for pre provided integrations:
https://documentation.onesignal.com/docs/zapier

Can Chat-bot be achieved on android on Hangout app or any other default apps other than Facebook Messenger

What i need: I need to read messages of Hangout or any other default apps of android, so i send reply back according to the messages. Although Hangout api not giving access to read the messages (Based on my research), but Gmail giving api for read, modify and send emails.
Is there any other alternative to do such kind of work with internet messaging for reading the messaging on backend service to send reply from my own application.
Looking forward for serious answers, any help could be appreciated thanks in Advance.

Notification system

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 !!

push notification apps using wysiwyg app builders

this is rather a generic question and I'm not sure where to put it.
Just wondering if there are any good app builders which offer user subscription as a feature and if it is possible to send push notifications to certain unique users. For example, if I have 10 users who have downloaded my app (numbered 1 to 10), would it be possible for them all to log in and would it be possible for me to send push notifications to only User 1,3 and 5?
Also, is there any way they can respond to this notification via my app?
Any info about an app builder with such features would be appreciated. I've checked a few such as AppMakr, but they don't seem to offer such functionality/
Any help will be much appreciated.
Cheers
Try GCM (Google Cloud Messeging)Please check the below link to start with.
http://developer.android.com/google/gcm/index.html

Categories

Resources