How to show google accounts dialog in flutter? - flutter

I want to do the login/signup process with google acc in the flutter application. Our backend developer gives me an API to call that and get a link for choosing a google account. That link is like this:
https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=https%3A%2F%2Fapi-v1-dare.cloud.atadp.ir%2Fapi%2Fauth%2Flogin%2Fgoogle%2Fcallback&client_id=1039193858277-2vkeh4q5nvi69bdfe4sr44boo0itlau5.apps.googleusercontent.com&access_type=offline&response_type=code&prompt=consent&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email
When I open this link in my browser, I can choose a google account:
And when choose account, I get this data:
I try to use the google_sign_in package but can't find a way to load that link. Can you help me how to do this process?

Related

I can't target the Google Login for integration testing

Currently I'm trying to build out the integration testing for an app that someone else built. I'm stuck with the Google sign in.
Specifically, the integration testing can't find the Google pop-up page.
Is there any way to use integration testing for the Google sign?
If not, how do I use integration to start on any page I choose for testing?
Please note that I have not built the app; I'm here to test the app.
I've tried to find a page or anything in the files and folders for the pop-up but I can't find anything.
I've even tried using Dart DevTools but I still can't target the sign-in page.
At the very least, can I bypass this step and start the integration on a different page?
Below is a picture of the sign-in page I'm trying to get the Flutter Integration test to interact with. Note that it has been modified for privacy reasons.

How to make profile as link to share

I am going to create a chat application using flutter with the firebase database, I want to add a profile sharing feature that opens a specific profile by its profile link, e.g. In Telegram, we have our own profile id and we can share it as https://t.me/username, just of one click it opens with telegram app with that specific user profile. Then how do I do this?
Firebase Dynamic Links
Firebase Dynamic Links is the service that does what you're describing. The documentation states the following:
You create a Dynamic Link either by using the Firebase console, using
a REST API, iOS or Android Builder API, or by forming a URL by adding
Dynamic Link parameters to a domain specific to your app. These
parameters specify the links you want to open, depending on the user's
platform and whether your app is installed.
Setup
First, you will need to enable it for your Firebase project through your Firebase console.
Then, you will include its official package for Flutter called firebase_dynamic_links in your app.
You can create Dynamic Links programmatically with your app or maybe Cloud Functions or by using the Firebase console.
Use the firebase_dynamic_links package to check if a Dynamic Link was passed to it when your app opens.
You can view the analytics data to track the performance of your Dynamic Links in the Firebase console.

How to solve restricted_client error in google sign in flutter IOS?

I'm trying to implement google signin in my flutter app when I click google-signin button.
when I click continue it redirects to a browser window and tells
I have enabled google sign in and place json file in correct path
can any one help?
Clicking on 'Learn More' in the error message above should take you to the Google Cloud Console configuration for your project, where you need to configure the OAuth consent screen information before you can use Google Sign In.
If you already know your Google Cloud project information, visiting https://console.developers.google.com/apis/credentials/consent will take you to the consent screen configuration.
You can find more information at https://support.google.com/googleapi/answer/6158849?hl=en.

Cant able to access Whatsapp Manager in Faceebook Business Manager

Trying Whatsapp API integration , followed the steps mentioned in https://www.facebook.com/business/help/2087193751603668 but cant see whatsapp account creation option in Business Manager.
enter image description here
Please tell us how to achieve
Try downloading Whatsapp for business on a mobile, configure it on your mobile, then add it to facebook in the page you provided.

DialogFlow: Google Calendar Event function from Google Actions (Oauth2)?

I have created an agent in DialogFlow that interacts with the user giving her the ability to check for details like demographic from a back-end database. I have achieved this using Fulfillment/Webhook calls and have successfully parsed/returned different types of Responses to the user to play with. I have tested this on both an Android device and the Google Actions Simulator.
Now, what I want to achieve is to give user the ability to "Set a Reminder" on a platform like Google Calendar or similar through my App. By default, Google Assistant does this by simply telling it to "remind me..." and Google creates a reminder in the calendar. But as soon as I invoke my app, the Assistant is out of scope so using the "remind me" command won't work. I want to use the Google Calendar for example to create a reminder through my agent so that the user is notified at the due time.
I understand that when the user invokes an App in Google Assistant, she is using her Google credentials so I guess if I want to use the App to create a reminder, I should have the option. I have had a look at the Calendar API but I am not sure if I should proceed that way. Is there a better way of achieving this?
Please note, I want to use a reminder service that is available to the user without subscribing to a third-party service.
The Calendar API is the way to go. Details here.
In those docs you'll see reference to the access token, which you can get by using the helper intent askForSignIn (example of use here in one of Google's example projects).
Hope this helps!
So for all those who are facing the same issue, here is what I did:
First created an account on https://auth0.com
Followed this guide to configure the necessary settings to link to Google Assistant (ignored the Jovo part)
Used Auth0 guide to configure and link to my Google project credentials (ignored the Admins SDK Service part)
Now when I run my Google Actions App on the device, a button "Link [App Name] to Google" showed up. Clicking on that "signed me in".
Parsed the response in my webhook to grab originalRequest.data.user.accessToken
This is the token mentioned in #lukedavis answer. The next step was to use the token to execute a call to the Calendar API. Upon trying that, I am facing a different problem which I am trying to find the solution for. But the above should assist those who wish get the accessToken.