I am getting this error in a Maui app when I try to start App Center:
"App Center was started without app secret, but the service requires it; not starting service Crashes."
Here is the code I am using:
AppCenter.Configure(appCenterSecret);
if (AppCenter.Configured)
{
AppCenter.Start(typeof(Crashes));
AppCenter.Start(typeof(Analytics));
}
What is even stranger is that if I use the following code it seems to work ok (but I don't get Analytics):
AppCenter.Start(appCenterSecret, typeof(Crashes));
Has anyone seen this before? Thanks
Although it's strange that the above code doesn't work, that method should also work according to the documentation.
Another way to also initialize is like this:
AppCenter.Start(appCenterSecret, typeof(Analytics), typeof(Crashes));