macOS
16 Topics.NET Maui and swift
hi guys, I'm trying to build a .NET Maui class library which exposes some interface that can be used by a macOS swift application.I'm using .NET Maui 8.0 and Xcode 15.4 can someone guide me to how it can be done? here is the example of the interface I want to expose: namespace BridgesServices { public delegate void doAction(string action); public interface IBridgesServices { bool Init(doAction doAction); void SendRequest(string action); } }170Views0likes0CommentsUnique Device Identifier in MAUI
I am looking for a way to get a device identifier in NET MAUI that is cross platform compliant between Android/iOS/Windows. I originally had this code working in Xamarin Forms with the following: Android Context context = Application.Context; id = Settings.Secure.GetString(context.ContentResolver, Settings.Secure.AndroidId); iOS UIDevice.CurrentDevice.IdentifierForVendor.AsString().Replace("-", ""); Is there anything currently or planned in the future for use in NET MAUI. Thanks In Advance, Stuart Ferguson11KViews3likes1Commenthow does MAUI handle cross-platform gesture recognition
specifically how is it implemented for each platform and where can i find the code for each platform in regards to this gesture recognition for example, for MacOS i assume there would be some custom NSView implementation with overrides for the following TouchesBeganWithEvent TouchesMovedWithEvent TouchesEndedWithEvent TouchesCancelledWithEvent and for android i assume there would be similar with custom View implementation and OnTouchEvent method override i do not know for windows nor linux as i have not experimented with those platforms yet specifically i assume the gesture API MAUI provides is truely cross-platform and has no platform-dependant behavioural differences (with some exceptions for certain gestures for example a mouse or stylus CANNOT perform a two-finger scroll gesture however would be implemented via the scroll-wheel if present on the mouse on a mobile-device a two-finger scroll gesture does not make sense since it is usually just one finger for scrolling on a trackpad two-finger scrolling makes sense however regardless of HOW it is implemented, the api would provide a platform-independant way of tracking how much the user has scrolled, possibly accounting for some sensitivity setting the user can modify at will similar to pointer-acceleration settings for large and small monitors and high dpi and low dpi monitors2.4KViews0likes2CommentsVisual Studio 2022 on macOS M1 - compiler failure: application crashes
Hi folks, I installed the latest Visual Studio 2022 preview for M1 Macs and would like toi write a native cocoa app. I created a new Cocoa-App (Mac-App-Xamarin) and just compiled it. But I always get this error / crash message and really didn't find any solution, yet. Anyone who can help me? ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Cocoa Test [3197] Path: /Users/USER/*/Cocoa Test.app/Contents/MacOS/Cocoa Test Identifier: com.companyname.AppName Version: 1.0 (1) Code Type: X86-64 (Translated) Parent Process: launchd [1] User ID: 501 Date/Time: 2022-10-30 19:29:01.2371 +0100 OS Version: macOS 13.0 (22A380) Report Version: 12 Anonymous UUID: 289ADDEB-7896-84E9-45B7-15B9AD808807 Sleep/Wake UUID: 91C3501D-721C-42D6-AA11-D04FBEA02651 Time Awake Since Boot: 6200 seconds Time Since Wake: 6205 seconds System Integrity Protection: enabled Crashed Thread: 0 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: /System/Library/Frameworks/CHIP.framework/Versions/A/CHIP Referenced from: <B59DCE00-7163-32FE-B340-ED3F589BCA27> /Users/USER/*/Cocoa Test.app/Contents/MacOS/Cocoa Test Reason: tried: '/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file), '/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file, not in dyld cache), '/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file) (terminated at launch; ignore backtrace) I stripped the error message because it's very long.1.2KViews0likes1CommentBuild error MT0057 for .net Maui iOS, Mac Catalyst builds with no problem
I can build and run for Mac Catalyst fine with this command dotnet build -t:Run -f net6.0-maccatalyst MyApp.csproj but when I try to build for iOS using this command dotnet build -t:Run -f net6.0-ios -p:_DeviceName=:v2:udid=********-************** MyApp.csproj I get this error EXEC : error MT0057: Cannot determine the path to Xcode.app from the sdk root '/Library/Developer/CommandLineTools'. Please specify the full path to the Xcode.app bundle. [/Users/chris/Documents/Development/MyApp/src/MyApp/MyApp.csproj] /usr/local/share/dotnet/sdk/6.0.201/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(897,5): error MSB3073: The command "/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.302-preview.14.122/tools/bin/mlaunch --launchsim bin/Debug/net6.0-ios/iossimulator-x64/MyApp.app/ --device :v2:udid=********-************ --stdout /dev/ttys000 --stderr /dev/ttys000 --wait-for-exit" exited with code 1. [/Users/chris/Documents/Development/MyApp/src/MyApp/MyApp.csproj] It is odd that it can find XCode for Catalyst but cannot find it for iOS. Any help would be appreciated.Solved2KViews0likes2CommentsMobile job date app
First when the users or employees open the app will be required to sign up or sign in using Google Facebook which getting their first and last name and age when they accept it. Next page riquire to choose a user name and password. Next page to require location permission and locate the user. Next page the user will be able to choose between expanded list of jobs types or any type option to get them to the employers wich offers jobs position in the same category the user choose. Next step they will be required to fill up their age. And next page accept the terms of use and privacy policy and sign up. After they can always edit their profile with option to add a cv, bio. And about information which we will make available for them to do in the profile settings. When we get their location we can make visible the employers around them seenig the employer profile distance and online status (see some of the dates app to have an idea of) Now let's set up and the employers profile. The same way like above but little different. After the location permission the Employers will have to choose from the expanded employees type. No age page needed just confirmation of terms of use and privacy policy and sign up them too. After they always can edit their profile in the profile settings. Let make available them to fill up their business name and contact information and upload logo if they have one. Both of the type of users will have chat option as well as video call attaching files and pictures and share them. Let them receive notifications from the app anytime they have a new message.609Views0likes0Comments.NET MAUI APP Crashing On MAC Machine and IOs device
.NET MAUI APP runs fine on windows and Android but crashes on Mac Machine and IOs device, is this because the template is in still preview ?, if not kindly help us out with a working sample solution that works on every platform. I am Using Visual Studio for Mac 2022 preview 17.1 and MacOs version is 13 with XCode 13 beta installed .4KViews0likes3Commentsdotnet maui blazor application dotnet version upgrade issue
Hi there, I have a dotnet maui blazor app, I've created this project via visual studio 2022 community 17.2.0 preview 3 (latest preview). default dotnet version in csproject file was .net6.0 now I attempt to upgrade it to .net7.0, because I installed dotnet 7 sdk preview latest version. now I have this error: The target platform identifier android was not recognized. TOrder C:\Program Files\dotnet\sdk\7.0.100-preview.3.22179.4\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 112 What should I do to fix? and how to upgrade maui blazor app .net version to 7?898Views0likes1Comment