Is it possible to retrieve user notifications using Facebook API for Android?
If so, what kind of information can be received?
Kindly post an example of how this is done.
If you want to receive notifications from a user:
You could also look on this question:
how can i get user notifications with the new Graph API
If you want to send notifications to a user:
Look at the Facebook Developer page: There you can find some good explinations, example codes and so on:
https://developers.facebook.com/docs/games/notifications/
If so, what kind of information can be received?
You can make you own picture in front of the notification and set your own text (look at the link above for more information)
Related
I need to create an alarm system in android that controls when a value reaches a predetermined limit send me a notification.
I have no idea where to start, I saw tutorials for onesignal, firebase and android, I could implement an example with onesignal and from the onesignal page I can send a notification and receive it from my application, but what I don't know how to follow is how to connect with my database and get the value that indicates that I have to send an alert.
Can someone tell me what to look for? How to guide me?
Best regards.
You need to send push notification to an Android client, for example when the product price is lowered to 50 USD. So you need to check the changed price and when the price is changed and the new price is suitable for informing your Android client, you can use OneSignal Create Notification API. Of course you can use another tool like Firebase etc. You can send push notification via OneSignal API, Create Notification method from any platform. You can check it and if this scenario is good enough for your requirement then you can try it.
I am making WebView app for a news website. I need help with setting notifications.
Steps that I have already done:
Set webView app.
Configure for firebase.
Defined basic MyMessageService and MyMessageIdService.
Tested push notification that I sent from Firebase to a device.
My question is: how to set my app to receive notification when new news is posted, or when a comment is made on liked news?
Thanks!
To send notifications on demand you have to do some things first:
collect the firebase tokens of all the devices that are using your
app.
save all these tokens against users or profiles
develop custom app server that will help you to send the
notifications on devices using these firebase tokens.
to develop your app server you can use the code from androidhive.
link to code of app server
for any further query you can ask in comment.
hope this help you.
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
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.
I'm working on my first Django app that already uses Pusher's service for some parts in my site - it works great.
I would like to add a notification app for Android, which will alert a registered user about a new activity regarding to that specific user.
I would like to know:
1) What is the best way to implement that? Should I use Pusher for this as well or should I use Google's push services (or maybe another service?)? What will be the easiest?
2) How will the Android app user get authenticated to Django? How will the app 'know' if the user is logged in using the device's browser at the same time and no notifications should be sent?
I'm new to Android. If someone could answer / describe the general architecture / lead to a proper documentation it would be wonderful.
You can use Android's Cloud to Device Messaging (C2DM) - https://developers.google.com/android/c2dm/.
For 3rd-party, there's Urban Airship - http://urbanairship.com/.
If you use C2DM, you'll get a token specific to a user. You use that token to send a message to the user.
You need to figure out if the user is online (browsing) so you won't need to send notification. You can check out this app: https://bitbucket.org/zalew/django-online-status/wiki/Home.