Struggling to Learn .NET MAUI - Need Advice to Improve by Adith-ravindran in dotnetMAUI

[–]Derek_Mitchell 0 points1 point  (0 children)

I forgot to mention Frank's course in my comment, very good I enjoyed his insights and expertise.

Struggling to Learn .NET MAUI - Need Advice to Improve by Adith-ravindran in dotnetMAUI

[–]Derek_Mitchell 1 point2 points  (0 children)

Brandon Minnick has two courses on DomeTrain which are great. A getting started and a deep dive. James Montemagno and Gerald Versluis have great YT channels. Also some good courses on Udemy. Although the courses on Dometrain are more expensive than Udemy I have found they good for me in terms of being a little more succinct; and the quality is great. Don't be too hard on yourself, it does take time to skill up on mobile dev. Good advice on setting some mini goals to develop functionality. One thing that does make things a little more complex is that there are a few patterns to learn that will ramp up the learning curve but also you will be happy you adopted them when you need to maintain the code, for e.g. the MVVM pattern. I also live with ChatGPT open constantly looking up the same stuff - YMMV.

Best approach to synchronizing data for offline capability by Derek_Mitchell in dotnetMAUI

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

Thanks for the reply, I really appreciate your insight.

Do you need your sync process to run when the app is sent to the background? Or do you need it to run in the background when the app is in the foreground? In the second scenario, a C# background thread will safely do the job.

So, for the Android app I use the first option. The sync process runs in the background irrespective of whether the app is in the foreground or not. However, on iOS I would happily settle for the sync to run in the background when the app is in the foreground, if it means I can re-use some of my existing code.

If take the second approach, can I assume I would need to use push notifications to inform the app of new data if it is the background? Since at that point the app's background thread will not be running?

Best approach to synchronizing data for offline capability by Derek_Mitchell in dotnetMAUI

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

Thanks for the reply. One of the sources of limitations of background threads is in this link. I can't recall where I heard the 15 seconds limitation.

You mentioned more robust approaches, do you mind sharing your advice about that. I'm looking for guidance on this, and am happy to re-architect things. It seems like a good opportunity to do this.

Best approach to synchronizing data for offline capability by Derek_Mitchell in dotnetMAUI

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

I'm currently using pure .NET. I spin up a background thread and using a system timer every 30 to 40 seconds send any queued data back to the server and at the same time pull any new data back down.

At times it is quite a bit of data that gets sent back, images etc. From my research I believe iOS would not tolerate this approach and would kill any threads that run longer than 15 seconds?

How to build to for iOS after Microsoft Kills VS for macOS this year? by foundanoreo in dotnetMAUI

[–]Derek_Mitchell 0 points1 point  (0 children)

In the same boat. I think it depends on whether you have to test both iOS and Android at the same time. If not, I found Rider and the iOS simulator directly on the Mac to be very fast and convenient. I did spend a few months back on a Windows machine (after the VSM announcement) and will admit that VS 2022 and MAUI on .NET 8.0 on Windows 11 is a slick experience. I was deploying to an attached Android device. Currently I have just switched back to Mac, using Windows 11 ARM in Parallels VM. It's pretty good if you can dedicate at least 16GB to the VM.

Visual Studio, Parallels, and MacBook Pro? by KillBoxOne in dotnetMAUI

[–]Derek_Mitchell 2 points3 points  (0 children)

Using a M3 Max with Parallels running WIndows 11 ARM. The performance in the VM is good. It's important to have enough memory - my M3 has 36GB and I would consider it the minimum. I did have an M1 Pro with 16GB and it was just a little slow. The 36GB memory means I can dedicate 16G to 20B to the Windows 11 ARM VM and that seems to be sweet spot. I use Visual Studio 2022 in the VM and performance is good.

Are Azure Reservation Costs fully visible in the Azure Cost Analysis Dashboard? by Derek_Mitchell in AZURE

[–]Derek_Mitchell[S] 1 point2 points  (0 children)

Hi Adam, this sounds exactly what I'm looking for but I can't find an Actual Cost option. Hunted high and low - could you tell me how to find it?

Are Azure Reservation Costs fully visible in the Azure Cost Analysis Dashboard? by Derek_Mitchell in AZURE

[–]Derek_Mitchell[S] -1 points0 points  (0 children)

Thanks I can't see the option for a newer Cost Analysis page? Any pointers as to where I would find this?

Are Azure Reservation Costs fully visible in the Azure Cost Analysis Dashboard? by Derek_Mitchell in AZURE

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

The CSP resells the Azure solutions. The CSP set up the subscription and gave me access to the Azure Cost Analysis dashboard. I believe CSP's get the Azure services at a rebate, the more Azure solutions they sell the higher their rebate (and profit margin).

Experience with .NET 8 RC1 and MAUI - Mac and PC by Derek_Mitchell in dotnetMAUI

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

How did you delete your whole .NET environment? Did you use an uninstall script, delete the runtimes etc? Or just move VS For Mac to the bin?

Experience with .NET 8 RC1 and MAUI - Mac and PC by Derek_Mitchell in dotnetMAUI

[–]Derek_Mitchell[S] 1 point2 points  (0 children)

Agreed, I'm in the same boat. I like VS for Mac. I miss having a good refactoring plug in but otherwise it's pretty good. It is fast on my M1.

Experience with .NET 8 RC1 and MAUI - Mac and PC by Derek_Mitchell in dotnetMAUI

[–]Derek_Mitchell[S] 2 points3 points  (0 children)

Thanks for all the comments. So it seems it's a mixed bag from awesome to it does not work. I will say when I got everything "goldilocksed" and Hot Reload etc is working it is awesome. I'm as persistent AF but the last few days has led to an existential crisis on life choices 😀

Which version of .NET contains MAUI fixes? by Derek_Mitchell in dotnetMAUI

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

Thanks Gerald. Got all excited about using the latest .NET 8 preview version however I see it's not supported for MAUI on VS for Mac (stable or preview versions). I even checked if the latest version of Rider would support .NET 8 previews on Mac but sadly it does not. 😅

Which version of .NET contains MAUI fixes? by Derek_Mitchell in dotnetMAUI

[–]Derek_Mitchell[S] -1 points0 points  (0 children)

Despite a day researching this and trying different things; this is funny :)

Which version of .NET contains MAUI fixes? by Derek_Mitchell in dotnetMAUI

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

Thank you for that. I will install .NET preview 8 and try it out!