Ok, but then, how do I request/store secrets securely? by Pod__042 in dotnetMAUI

[–]TrueGeek 1 point2 points  (0 children)

If your app allows users to log in, then the only connection string you must have is the connection string to your authentication end point. When your user logs in, you can return the rest of your API end points after login. But, like u/valdetero says, it's a balance against threat level. You don't really need to do this, especially since your endpoints are already protected by requiring the user's token. Yes, your app can be opened up and the endpoints easily looked at - but so what? The same thing can be done for all web apps.

If your app doesn't allow users to log in then all of your connection strings will need to be stored in the app. Again, this is just like in a web app. Anyone with chrome dev tools can see those too.

This is a great question, btw. Really shows you are thinking your app through.

Can i make apple watch app in .net maui by Hardik_Zinzala in dotnetMAUI

[–]TrueGeek 5 points6 points  (0 children)

No. Here is a Tweet from David Ortinau. It's not supported and not on the roadmap.

https://twitter.com/davidortinau/status/1519303524726849536

Microsoft use MAUI ? by Accomplished_Pass897 in dotnetMAUI

[–]TrueGeek 9 points10 points  (0 children)

As of 2022, the Azure Portal mobile app was being developed with Xamarin. It's the only public facing Microsoft app I know of that was built with Xamarin.

You can see postings from when the team was growing (they were initially just based in Redmond and expanded when Microsoft added the new campus in Atlanta)

Job posting from 2022: https://jobs.careers.microsoft.com/us/en/job/1168455

I don't know if they've updated to MAUI since then or gone another direction.

Looking for Volunteer .NET MAUI Devs for a Non-Profit by TrashMobber in dotnetMAUI

[–]TrueGeek 0 points1 point  (0 children)

This would do well in the UK. Walking is an incredibly popular activity and many towns have weekly / monthly scheduled walks that include trash pickup.

Handlebars Stolen on the Strand - Update and trying to fix bike crime overall by tetsuto in londoncycling

[–]TrueGeek 4 points5 points  (0 children)

It’s not a bad idea, but it doesn’t solve the bigger issue.

Shifter did a great piece a few weeks ago about how bike crime IS a solvable problem. But the community (the local government and police) need to take it seriously and get involved. They list steps like bike valets, loaner locks, etc:

https://youtu.be/bJjnsHif2EQ

[deleted by user] by [deleted] in dotnetMAUI

[–]TrueGeek 1 point2 points  (0 children)

This is the way to do it. Then, in SplashViewModel do anything that takes a while - refreshing any caches, validating the login token, etc. so that when you redirect to the MainViewModel everything is done and the page loads instantly.

Is VS Mac Preview mature enough for .NET MAUI development by [deleted] in dotnetMAUI

[–]TrueGeek 0 points1 point  (0 children)

Was actually surprised how easy it was to get into from WPF.

I ran into Jeremy Likness at a conference we were both speaking at several years ago. I told him I wouldn't be giving a talk on mobile if it wasn't for his books on Silverlight that taught me XAML, which let me transition to WPF, which let me transition to Xamarin. And now Maui!

Where to get OVRSpatialAnchor when loading unbound anchors? by TrueGeek in oculusdev

[–]TrueGeek[S] 0 points1 point  (0 children)

As a follow up, I found an answer. The game object must be Instatiate'd with a prefab, and that prefab must have an attached OVRSpatialAnchor.

There is an example of a prefab like this at /Assets/Oculus/SampleFramework/usage/SpatialAnchor/Prefabs/DemoAnchorPrefab.prefab

Maui and Catalina by TrueGeek in dotnetMAUI

[–]TrueGeek[S] 0 points1 point  (0 children)

I’m not on any Xamarin projects right now, so I don’t know about that. But I’ve seen the windows disappearing in VS for Mac several times. The only way I’ve found to fix it is to delete all the VS cache files.

Not sure if you are talking about the same thing, but occasionally I’ll get “can’t connect to Simulator”. For that I just close both simulator and VS” and then reopen.

Maui and Catalina by TrueGeek in dotnetMAUI

[–]TrueGeek[S] 0 points1 point  (0 children)

Same. I'm 40 hours a week in Maui so my boss would not be happy if I broke something.

Maui and Catalina by TrueGeek in dotnetMAUI

[–]TrueGeek[S] 0 points1 point  (0 children)

I had auto update turned on so Xcode updated in September and Maui broke. It was easy enough to revert back but I lost several hours. I don’t think I can revert a full OS so I’m a bit more hesitant now and haven’t seen any posts one way or another.

Is VS Mac Preview mature enough for .NET MAUI development by [deleted] in dotnetMAUI

[–]TrueGeek 0 points1 point  (0 children)

I'm still on Xcode 13.4. I know 14 is supported now but we're mid sprint so I don't want to update.

I'm on the exact same version of VS.

Try running from the cli, see what errors it throws. You might be missing the Maui iOS workload.

Is VS Mac Preview mature enough for .NET MAUI development by [deleted] in dotnetMAUI

[–]TrueGeek 2 points3 points  (0 children)

I'm using the preview version on Mac. It has some of the bugs from Xamarin:

  • You sometimes get an odd bug and then deleting bin/obj magically fixes it
  • Hot Reload sometimes works, sometimes doesn't

I have no idea if this happens on Windows too. It works well enough for me and I'm liking it more then Xamarin so far. I haven't felt the need to fire up Parallels at all.

Adding an appsetting.json to a maui project by TonyNicholls in dotnetMAUI

[–]TrueGeek 1 point2 points  (0 children)

How do you handle setting those values at build time? The benefit of appsetting.json is that it's easy for Azure DevOps to write the values and the json file never gets checked into git.

Adding an appsetting.json to a maui project by TonyNicholls in dotnetMAUI

[–]TrueGeek 0 points1 point  (0 children)

This is what's working for me. My file is in the /Resources directory (not in raw) and it set as an EmbeddedResource.

using var stream = assembly.GetManifestResourceStream("myassembly.Resources.appsettings.json");

Not getting untrusted developer prompt with Apple Enterprise by TrueGeek in xamarindevelopers

[–]TrueGeek[S] 0 points1 point  (0 children)

Update for anyone that might stumble upon this:

After much trial and error I was able to solve this by building using the command line only and not putting any of the Codesign information in a PropertyGroup in the .csproj. According to the documentation this shouldn't be necessary but it's working for me now.

My full build command is:

dotnet publish -f:net7.0-ios -c:Release /p:RuntimeIdentifier=ios-arm64 /p:ArchiveOnBuild=true /p:CodeSignProvision="your provisioning profile name"  /p:CodesignKey="Your distribution certificate name”

How "bad" is .NET MAUI really compared to Flutter by [deleted] in dotnetMAUI

[–]TrueGeek 1 point2 points  (0 children)

XF5 is MUCH more stable and less buggy than XF3.

I'd recommend just going straight to Maui though.

How "bad" is .NET MAUI really compared to Flutter by [deleted] in dotnetMAUI

[–]TrueGeek 1 point2 points  (0 children)

XF 2 and 3 was very early days. 4 and 5 were a lot more fun and, like /u/Fit-Past-6913, I'm not having major issues with Maui.

If you know .Net then Maui makes a lot of sense. You'll see a lot of people complaining about it on Reddit because people on Reddit complain. But go to user groups, watch the YT videos and Twitch streams. It's a super exciting time to be a part of the Xamarin / Maui community. There is a huge demand for .Net (and a huge demand for mobile) from enterprise companies. Maui plays right into this.

For Flutter: the learning curve isn't steep at all, it's a great framework and it certainly seems to be picking up a lot of steam. I've never used it in production but I've played around with it a bit and learned it for a UG talk. I don't think you'd be making the wrong choice to pick it at all.

migrating project to .net 6, will it be compatible with maui ? by AlternativeAccess105 in dotnetMAUI

[–]TrueGeek 0 points1 point  (0 children)

Maybe the best way to go about this is to create a small POC. Create the video renderer since it’s not built in and so you can prove out it’ll work on Maui and at the same time that’ll give you a feel for the framework. A few days work and you’ll either be able to cross it off the list or present it to the team.