How to make notifications appear automatically? - android

Im new to programming in especially android so please assume I know very little. So I have this app in which the user types in their email, name and their question and sends all this information to a website in which I can see all this information so that i can give an appropriate response. I then send my answer and the user can then see the answer in their application to their question.
Im using android studio and I have to create an activity or something that will generate/ show a notification automatically( without any user interaction) after I answered their question. How can I do this?

You should use Google Cloud Messaging Library for achieving this.
So, when you answer any question, it will send push notification to user on device (like whatsapp) and when user click on that, it will open your answer over there, so user can read it.
Here is library link with sample as well:
https://github.com/google/gcm

Related

can I send Whatsapp programmatically in my app flutter

I want to send WhatsApp messages in bulk, meaning my goal is that if the user gives me consent. I will be able to connect to his WhatsApp and send WhatsApp messages to a list of numbers that I will provide. Note: I don't want the user to leave my app, meaning I don't want the regular functionality that the WhatsApp app is opened with the number. I want that after the user's consent, I will be able to use the user WhatsApp to send around 200 WhatsApp messages automatically without leaving my app.
I saw the related answers each one did not work for me.
first answer - the regular functionality that just opened WhatsApp.
whatsapp flutter lib from what I saw, I can not send messages to a user who does not have WhatsApp for business.
android send whatsapp I saw this message that will allow me to do this in android only, and I need to find a way to write a custom function in Kotlin or Java to make it work.
flutter whatsapp - I saw the answers, but none of them told me if I could send a bulk of messages without opening the actual app.
I should note: there me be another approach that can work. Create a shortcut programmatically for ios, which will allow me to create a shortcut that will include the list of numbers with the text and activate the shortcut. But I could not figure out also how to do so.
On the apple form, someone asks this question and does not answer.
swift create a shortcut
tech: flutter, firebase
You will need to see what APIs WhatsApp has available that you can utilize. There isn't a current way to just send bulk messages directly from your app and they get sent in whatsapp. You need to work with WhatsApp's APIs to accomplish what you are trying to do.

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

Can I use onesignal to trigger change order status automatically?

Can I use Onesignal to send a notification of order changes to an Android device then if the user already opened the application on order's page/view the notification will be not shown but the order status on that page will be changed?
If yes, can I know the reference of documentation/tutor? If no, what are alternative ways to do it?
I have a project using Onesignal to send the notifications to the android devices. Currently just Simple notif, but my boss asked me to make the mobile app can auto change status order without user action. I'm a backend engineer, not an android dev so I don't know what really works of Onesignal in android. I just know Onesignal can be used to send the notification but what about data process after notification sent?
This is what I understood: Your app has some kind of market or something from which people can order stuff. So, you want to know if OneSignal can send automated notifications as the order status changes?
If I have got it correct, my best guess will be, no. OneSignal can only manually send out notifications. The closest one can get with OneSignal to automations is scheduling notifications to be sent later. To achieve your purpose, your Android devs will probabaly have to write some code on their own and integrate it some way with the order status and all. Or else, your boss will have to appoint a few people who can track the order of the people and manually send out notifications to them using OneSignal (but, identifying the correct device might not be so easy).
That's my guess. But, OneSignal's support team is pretty nice. They might take a few days to answer, but, it's worth asking them if they can help your developers integrate the order status and OneSignal's notifications in some way.

Anandroid app that can notify user immediately if a website is updated

How to create an android app that can notify user immediately if something on a website is updated.
Suppose I have a blogger blog like http://abcd.blogspot.com So what I want is that whenever I post a new topic on my blog that topic notification should be pushed on to every android device that has my app installed. Please explain in detail if possible And I am not able to use PHP because its a blogger blog.
Use your blogs RSS and parse the output which is located here. Its better to do this on another server application not on the client. This way you can use something like UrbanAirship when someone installed your application and send push each time new post detected by your server application.

Can I identify gmail notification for new mail from my android application

Can i identify notifications and get the details of the notifications from my android application? if so,can any one help me please...
You got no access to what notifications are currently posted. App could do some broadcasting on events that may interest others but I doubt GMail app does so, so answer is rather "no".

Categories

Resources