GeList(out IntPtr variableName) send null values for out parameter from the iOS Binding dll in .NET 8 .NET 8 iOS binding library project . Method in ApiDefinition class.
//iOS Binding Library Project ApiDefinition.cs
// @required -(RESULT)getList:(NSMutableArray **)availableList;
[Export("getList:")] Result getList(out IntPtr availableList);
in .NET 7 if we call above method in MAUI SAMPLE APP the availableList will received.
// MAUI app
//Get avilable List
NSMutableArray availableList = new NSMutableArray();
IntPtr availableHandle = availableList.Handle;
Result availableListResult = apiInstance.getList(out availableHandle);
availableList = ObjCRuntime.Runtime.GetNSObject<NSMutableArray>(availableHandle);
if (availableListResult == Result.Success)
{
System.Diagnostics.Debug.WriteLine("Success " + availableList);
}
But in .NET 8 if we call above method in MAUI SAMPLE APP the availableList will get Null , but not in .Net 7 (can get availableList ). Any solution for .Net 8 ?.
In .NET 8 if I call getList method in MAUI SAMPLE APP the availableList will get Null , but not in .Net 7 (can get availableList )