by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rakesh R Nair
    @rkshnair
    @jamesmontemagno Any suggestions?
    Jonathan Dick
    @Redth
    you could definitely use essentials for this if you like... you can't do this in the background from essentials though
    or rather, essentials can't handle running itself in the background for you
    Rakesh R Nair
    @rkshnair
    Thanks @Redth
    vividos
    @vividos
    I still use James' Geolocation plugin, because it has StartListeningAsync()...
    One question about the themes support. I'm on UWP and try to get AppInfo.RequestedTheme, and the app crashes hard, and also the debugger crashes the target process when I try to watch the value. Has that happened to you guys yet? I also tried to reproduce the crash with James' MyContacts app, but there it works flawlessly...
    vividos
    @vividos
    The exception thrown is System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Matthew Leibowitz
    @mattleibow_twitter
    Hmmm That might be because you are on a background thread? UWP exceptions are special :smile:
    James Montemagno
    @jamesmontemagno
    You must call it on the UI thread
    vividos
    @vividos
    Yeah that might be it, UWP is a bit picky in this regard. Would be worth mentioning in the docs. Thanks!
    vividos
    @vividos
    I tried to implement dark mode theming support in my app as it looked easy and only small amount of code/changes in James' video. Until I looked at the MyContacts demo app, where I realized that I have to add custom styles to the App.xaml.cs file for every control that I use, and additionally have to add the background color to every page. That's pretty cumbersome... Would that change with Xamarin.Forms and using Material styling?
    Jonathan Dick
    @Redth
    Forms does have support for dark themes I think on 4.6?
    Basically allows you to specify a light and dark colour for your resources
    James Montemagno
    @jamesmontemagno
    they also added new system colors so you could use them and they auto adjust
    i have enjoyed using styles though, take very little time to setup and just helps you set colors more than anything
    Jonathan Dick
    @Redth
    Yeah I rolled my own dark mode with dynamic resource and just switching out all the colours for each resource key I use depending on the theme. The 4.6 features make this nicer for sure
    vividos
    @vividos
    Thanks for your evaluations! I'd check out the 4.6 features then
    Alex
    @alexislom
    Hi to everyone, maybe you know how to disable icoud synchronization in secure storage (xamarin essentials) for ios
    @jamesmontemagno
    Jonathan Dick
    @Redth
    I’m not sure it’s possible. I think that’s more a user setting in iOS
    Hmm might be possible to implement but we don’t support it currently https://developer.apple.com/documentation/security/ksecattrsynchronizable
    Alex
    @alexislom
    @Redth Thank you, maybe you know any sample, where this property can be implemented?
    Jonathan Dick
    @Redth
    We would have to add support in essentials itself to make use of this if that’s even possible. I’m not familiar with it and we would need to research this more.
    James Montemagno
    @jamesmontemagno
    I don't think we do icloud sync. I mean it is backedup on the device.... i am pretty sure
    Jonathan Dick
    @Redth
    I think on iOS it does go to cloud. Unless it’s just userdefaults I’m thinking of
    James Montemagno
    @jamesmontemagno
    ahhh gotcha
    interesting
    android does sync backup
    i thought the library needed to opt in
    Jonathan Dick
    @Redth
    I know in my app on iOS I had to implement a nsuserdefault setting to wipe out something (can’t recall If it was other nauserdefaults or secure storage) because the app got into a weird state for someone that crashed on startup until it was cleared and uninstalling the app wouldn’t clear it out.
    Coulda been the cache directory or something too
    TheCarlR
    @TheCarlR
    Anyone who has been able to [authorize] an api based on the WebAuthenticator samples?
    https://forums.xamarin.com/discussion/181866/using-the-webauthenticator-with-the-sample-server-webauthenticator
    TheCarlR
    @TheCarlR
    Using the google authentication, what I think, is that the access_token that we receive, was never intended for anything else than accessing google API's. It is simply not a JwtToken. I don't think it was intended by the authors of the google authentication flow to leave the aspnet core site. The idea was probably only cookie auth for websites. So I think the whole example is flawed. Or I simply never understood the meaning and purpose of it. I think there needs to be a federation middleware on the server instead, issuing a new token. Either that, or rewrite the Microsoft.AspNetCore.Authentication.Google to fit by exposing the id_token which is a JwtToken and at least has a hope of being close to valid.
    Please tell me I'm wrong.
    TheCarlR
    @TheCarlR
    Maybe that's what the last sentence tells: "Or, you may want to instead create your own identity on your server and pass back your own token to the app. What and how you do this part is up to you!"
    May I suggest writing the purpose clearer in the manual? Oauth/OpenId is very complex...
    Jonathan Dick
    @Redth
    @TheCarlR yes the example is meant to pass the google/facebook/whatever token back to the app client.. it's really meant as a replacement to doing facebook/google/whatever auth with the native mobile SDK in which you would end up with the same access token
    you can absolutely use this flow with your own middleware to issue a new middleware token and return that to the client instead
    unfortunately, yes, oauth/openid is very complex... the intent of the sample was to show a safer alternative to using social (google/facebook/etc) oauth directly from the client (which has not middleware jwt) where you don't embed client secrets in the client for oauth providers which don't allow implicit flows
    so this is a direct replacement for those folks who are currently leaning on bindings to native sdk's to get the access_token for a social provider
    Julio César Rocha
    @JunielKatarn
    Any ETA for XE 1.6 (with macOS!) release? :D
    HotTotem
    @tomh4
    Hey folks! Anyone else experiencing weird app suggestions when sending file open requests?
    Alex
    @alexislom
    Hi guys, can i send email message in xamarin programmatically without user interaction or open another mail app?
    James Montemagno
    @jamesmontemagno
    you would want to look at something like mailkit or mimekit https://github.com/jstedfast/MailKit
    Jonathan Dick
    @Redth
    i'd also suggest not trying to do this from a phone, and instead setup a web service that the mobile app talks to which does the actual sending of the email via sendgrid or something
    James Montemagno
    @jamesmontemagno
    very true :smile:
    sendgrid is great for this stuff
    combined with azure functions
    Alex
    @alexislom
    Thanks
    Alex
    @alexislom
    Hi, how can i reduce video size on the fly for xamarin ios? (~300 mb for 3 min video is too much for СaptureSession.SessionPreset = AVCaptureSession.PresetHigh; setting)
    Julio César Rocha
    @JunielKatarn
    Is there an ETA for the 1.6 release?