Google sign in with Xamarin - xamarin

I'm implementing Google sign in for my Xamarin app, by following this article. Which nuget package contains the GoogleSignIn object?

Before you are able to work using these APIs and you will use WebView but you will get an Authentication error, disallowed_useragent.
Look at this article:
https://medium.com/#didourebai/authentication-with-google-using-xamarin-forms-403-thats-an-error-disallowed-useragent-fcaadad6f01a
And the solution is to use Xamarin.Auth
https://github.com/xamarin/Xamarin.Auth

Related

Link open my app or go to store with parameter

I am a Xamarin Forms developer.
I would like to open my app or go to the store with a link. And is it possible, if it is to store, after downloading my application, pass a parameter to my app?
I don't know if i was clear.
Someone can help me ?
Yandex AppMetrica offers such a feature, while having a nice xamarin.forms sdk. https://appmetrica.yandex.com/docs/
Your direct case:
https://appmetrica.yandex.com/docs/mobile-tracking/concepts/tracking.html

Cross platform Google Sheets API implementation in Xamarin.Forms

I am creating an app in a Xamarin.Forms PCL project that uses the Google API to push some data to a spreadsheet. However, when I install the Google.Apis.Sheets.v4 nuget package, I cannot access the GoogleWebAuthorizationBroker from the PCL. When I used an interface and implemented in the Android app, it throws an unsupported exception when it attempts to open the web browser.
It says something like
"Failed to open browser with URI 'blah blah blah'.
I tried just catching that exception and using Device.OpenURI to open it, but it does not return to the app after the user signs in. Is there any way to fix this?

How can Xamarin be used to wrap a web app as if it were a native app for Android?

Say I build a super mobile friendly web application that I want in the Play Store for Android users to be able to download.
Could I use Xamarin to:
Wrap the entire mobile app as a single WebView
Register for mobile push notifications
Essentially shortlining an MVP of an android app by using an existing web app? If so, is there any well-known process or documentation that demonstrates this?
Probably the best approach for you would be using Xamarin Forms with one or more pages containing only web views.
I don't love Xamarin Forms because usually for me Xamarin Android+iOS gives a better result in similar time, but your app would be so simple that doesn't make sense to do it with Xamarin Android.
Make sure that your web app will show only what makes sense to be shown in your app, otherwise you risk to see double header/footer, useless buttons... but if the website is yours adding a few parameters to change a bit the UI won't be a problem I guess.
Have a look at this example:
https://github.com/xamarin/xamarin-forms-samples/tree/master/WorkingWithWebview
Another approach is the use of Razor to build your pages in html directly inside your app, but if I understood well it's not what you need:
https://developer.xamarin.com/guides/cross-platform/advanced/razor_html_templates/
Although it is technically possible to do this as the previous answer has suggested. I would recommended firstly reviewing, the relevant stores guidelines on submissions. Apple for example will not allow a submission to their store of any application that simply mirrors the functionality of a website. I suspect Google's would likely be the same.
However that said, to answer your question, Xamarin.Forms would be appropriate for a simple application like the one you are suggesting. Or if you prefer to build to a specific OS, then in iOS with Xamarin you would use the Safari View Controller that was added in it's xcode 8.1 release. Android uses something similar as does windows.
EDIT:
You can use the Web View control in Xamarins Andorid native PCL project to encapsulate your mobile friendly website within an application here is the documentation:
Xamarin Android Developer link to Android Web View
As for push notifications, yes this is perfectly possible using Xamarin.Android. and varies on implementation depending on what you want to use as the back end to handle them, I.E. Azure's notification hub etc.

Xamarin Forms: how to create a facebook login native experience

in xamarin forms i want implement a native facebook login.
I've read the following guide: XamarinFormsNativeFacebook but it doesn't work with the latest xamarin forms.
There is any tutorial?
Make sure you go through this link and this for implementing a Facebook Login. Cheers!

xamarin forms: how to make native login with facebook [ios]

in xamarin forms i've succesfully make the facebook login in android with this tutorial
Xamarin forms facebook login android
Anyone has a tutorial to make native login in ios with xamarin forms? I know that i have to make a custom renderer, but i don't know the exact code.
Thanks
I would use the Xamarin.Auth component. Here is the step by step process and code.
https://components.xamarin.com/gettingstarted/xamarin.auth
See here Native login
Then you could make a native login button as Mike James does here

Resources