Sending android app notification to facebook using facebook API Notification - android

Hi I want to send notifications from android app to facebook. To send facebook notification i got this link : https://developers.facebook.com/docs/concepts/notifications/ But i am not sure how to use this link in android to send notification.
Please can any body guide me for this?

You can't send notifications from an Android app. Tried to POST using the link you provided and got the following error:
{"error":{"message":"(#200) Only web canvas apps can send app notifications","type":"OAuthException","code":200}}
Maybe you could use this one:
https://developers.facebook.com/docs/android/send-requests/

We're not allowed to send notifications from Android app using the notifications API, nor sending App Requests from non game app using Requests APIs. I'm interested too to know how can we notify the user from non-game-android app.

Related

How to stop android app opening from push notification

I want to stop my Android App opening automatically when I click on the PUSH Notification send via Google FCM. I have changed the message type from Data Message to Notification message.
The PUSH I am sending via the server REST API has a promo code in it, but has nothing to do with my App really, so I dont want the Android App to open at all. I can't used the FCM Console to send the PUSH notification as each promo code is unique to the user and their pet, and there are thousands of them. I'm using the test http v1. api but the actual Android App has been built by someone else and I dont have access to the source code. What should I be looking out for ? Is the PUSH auto opening the App due to a call it makes and an intent in the app I can't change?
Thanks for any guidance.

How to send push notifications from wordpress to android webview app?

I have WebView android app for our website, running on wordpress core.
On the website we are using social network extension, so users can send private messages, reply to the comments and so on. For that we have on website a notification panel.
Now the task:
Is it possible to use the notifications on the website and send it somehow to the android app as push notification?
What is the best way to do it? Or is there a developer that can help me with this?
You have to add the FCM message sending function to the wordpress server or your server.
After that, you need to add the FCM receiving part in Android and send the device_id to the server so that the FCM message can be received.

Android WebView app with notifications

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.

Getting Facebook Notification in android app

I'm trying to develop an app to get my Facebook and twitter notification simultaneously. I can authenticate using Facebook SDK 4.18 and Fabric API for twitter.I can update status and tweet simultaneously. All the reference I've searched so far, some of them are not up to date.
Here (https://developers.facebook.com/docs/graph-api/reference/user/notifications) it is said that(regarding notification)
*
Reading
You can't perform this operation on this endpoint.
*
Will it not be possible to get Facebook notification?
I understand the reason why I can't get notification. I've used Facebook SDK for making a thirdparty app. If Facebook give me permission to read the notifications, it becomes a privacy issue. So I can only post status on behalf of the app but can't get notifications.

Push Notification from Web based application to Android

I have developed web based application using yii2 framework and MySQL database and my plan is i want to make an android app that can receive notification from my web based application real time and can pull data from it too. but i'm not sure how can make it works and using which methods i can implement this. can you give me some advise and source to learn it?
thanks
You have to follow below steps to implement push notification
1) You have to register on google developer consol
https://accounts.google.com/ServiceLogin?service=cloudconsole&osid=1&passive=true&continue=https://console.developers.google.com/dcredirect/
2)enable the GCM api from api list that available in api lists further instruction you will get on site when you create account.
3)Generate key for GCM web/ android.
4) Use this GCM key from android app and write the the GCM notification receiver
program in android app and using notification manager show on notification bar.
5)Using server side key you can write the program to push notification from web site.

Categories

Resources