You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble using Particle.Maui on Android : it works flawlessly on Windows but nothing is shown on Android.
Here is what I did :
Created a new MAUI .NET 7.0 App
Added the NuGet Particle.MAUI 1.0.3
Added the .UseSkiaSharp() in the MauiProgram.cs
Added the namespace to the mainpage.xaml : xmlns:particle="clr-namespace:Particle.Maui;assembly=Particle.Maui"
Added the particle viewport
Launched on Windows : works
Launched on Android : do not work : the app is launched but no particles appear - no error messages
The code is fairly simple : MauiProgram.cs
using Microsoft.Extensions.Logging;
using SkiaSharp.Views.Maui.Controls.Hosting;
namespace TestParticles;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp()
.UseSkiaSharp()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
The MainPage.cs is nearly empty :
namespace TestParticles;
public partial class MainPage : ContentPage
{
// Started a new .NET MAUI Projet (.NET 7 - same result with .NET 6)
// Added the NuGet Particle.MAUI 1.0.3
// Added the .UseSkiaSharp() in the MauiProgram.cs
// Added the namespace to the mainpage.xaml : xmlns:particle="clr-namespace:Particle.Maui;assembly=Particle.Maui"
// Added the particle viewport
/*
<particle:ParticleView x:Name="MyParticleCanvas"
FallingParticlesPerSecond="25.0"
IsActive="True"
IsRunning="True"
HasFallingParticles="True"
Margin="0, 20"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
InputTransparent="True"/>
*/
public MainPage()
{
InitializeComponent();
}
Wait up, it may be something linked to my device : animations suddently stopped to work on my device, and this for all MAUI .NET applications, even the ones previously installed. No idea why.
Hello there,
I'm having trouble using Particle.Maui on Android : it works flawlessly on Windows but nothing is shown on Android.
Here is what I did :
Created a new MAUI .NET 7.0 App
Added the NuGet Particle.MAUI 1.0.3
Added the .UseSkiaSharp() in the MauiProgram.cs
Added the namespace to the mainpage.xaml : xmlns:particle="clr-namespace:Particle.Maui;assembly=Particle.Maui"
Added the particle viewport
Launched on Windows : works
Launched on Android : do not work : the app is launched but no particles appear - no error messages
The code is fairly simple : MauiProgram.cs
using Microsoft.Extensions.Logging;
using SkiaSharp.Views.Maui.Controls.Hosting;
namespace TestParticles;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp()
.UseSkiaSharp()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
#if DEBUG
builder.Logging.AddDebug();
#endif
}
And the MainPage.xaml :
The MainPage.cs is nearly empty :
namespace TestParticles;
public partial class MainPage : ContentPage
{
// Started a new .NET MAUI Projet (.NET 7 - same result with .NET 6)
// Added the NuGet Particle.MAUI 1.0.3
// Added the .UseSkiaSharp() in the MauiProgram.cs
// Added the namespace to the mainpage.xaml : xmlns:particle="clr-namespace:Particle.Maui;assembly=Particle.Maui"
// Added the particle viewport
/*
<particle:ParticleView x:Name="MyParticleCanvas"
FallingParticlesPerSecond="25.0"
IsActive="True"
IsRunning="True"
HasFallingParticles="True"
Margin="0, 20"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
InputTransparent="True"/>
*/
public MainPage()
{
InitializeComponent();
}
I created a GitHub example : https://github.com/Bebz0r/TestParticles
I tried with version 1.0.2 and 1.0.3 to no avail.
Any ideas ?
Cheers,
Beb
The text was updated successfully, but these errors were encountered: