Google API for sending a request from an Android application to google plus

I am developing one application for Android.

As we all know, the Facebook SDK provides functionality for sending a request to other users using the Request dialog box.

https://developers.facebook.com/docs/android/send-requests

I mentioned the link above that says how we can send a request to other facebook users, and in response this request will be shown to the user in their profile as a notification.

So my question is: is there any API for Google Plus that I can use to send any request from the Android application to Google Plus, and just like facebook, my request will be shown to users of this Google Plus profile

I have already used the Google Plus API and OAuth2.0.

I am new to using the API, if possible, then please give me an example as well.

Edit: -

I found the following link stating that it does not work on Google, please check out the following link.

https://code.google.com/p/google-plus-platform/issues/detail?id=41

Edit: -

Create a notification in Google Plus without posting to any profile.

Here, photography is just an example of a game.

enter image description here

But in google plus.

+5
source share
1 answer

There is no way to post a notification like facebook using the Google APIs. You can create application activity using the Google+ API, which will be published in the user's profile without an explicit user action. By default its private and hidden. The user must take actions with the stock to make it visible. The applicationโ€™s actions are visible only to the user, because it is not posted directly to the stream, for example, on facebook or twitter. Therefore, you cannot achieve the same result as facebook or twitter.

You can use Google+ Moments: insert to publish application activity. He must obtain permission using the scope from the user. To use sroid sroid, you can use the Manage application actions on Google

Applications: https://developers.google.com/+/api/latest/moments/insert https://www.googleapis.com/auth/plus.login

Using the Google App domain allows you to automatically create a message with visibility restricted by the user or circle. To publish application activity you should use Actions: insert

Applications: https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.me

Conclusion: You need to decide to use one of the APIs based on your requirement. I would suggest playing with both APIs to check the difference and limitation in the user profile. Try the Google+ domain API first, as it will send a message to the user stream.

+4
source

Source: https://habr.com/ru/post/1202694/


All Articles