Package Description
$ dotnet add package Turbo.Maui.Services//This library is for MAUI only. BluetoothService only works with iOS and Android.
//Services should be instantiated like so in MauiProgram:
using Turbo.Maui.Services;
public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp() .UseTurboMauiServices() .ConfigureFonts(fonts => { fonts.AddFont("Font.ttf", "Font"); });
//if you are using Auth0 you must provide the following options to your application //Domain, ClientID, RedirectUri
//In Auth0 App you must set the "Allowed Callback URLs" and "Allowed Logout URLs" to match the "RedirectUri"
//In your Platforms/iOS/info.plist you must add the following:
CFBundleURLTypes CFBundleURLName MauiAuth0App CFBundleURLSchemes myapp CFBundleTypeRole Editor
//rename "myapp" to your redirectUri domain //for example: RedirectUri = "sample://callback" //then info.plist should have: CFBundleURLSchemes sample
//Android Requirements
//Add a new class into Platforms/Android with the following code:
using Android.App; using Android.Content.PM;
namespace MyApp;
[Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop, Exported = true)] [IntentFilter(new[] { Android.Content.Intent.ActionView }, Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable }, DataScheme = CALLBACK_SCHEME)] public class WebAuthenticationCallbackActivity : WebAuthenticatorCallbackActivity { const string CALLBACK_SCHEME = "myapp"; }
//DEVELOPER NOTES
//Hard coded due to latest version fails in Release mode
//See issue: https://github.com/praeclarum/sqlite-net/issues/1067