Loading...
Loading...
Expert guidance for developing, testing, and deploying mobile applications with Tauri 2. Use when working with Tauri 2 mobile development for Android/iOS, including project setup, Rust backend patterns, frontend integration, plugin usage (biometric, geolocation, notifications, IAP), emulator/ADB testing, code signing, and Play Store/App Store deployment.
npx skill4agent add acaprino/alfio-claude-plugins tauri2-mobile| Task | Command |
|---|---|
| Init mobile | |
| Dev Android | |
| Dev iOS | |
| Build APK | |
| Build AAB | |
| Build iOS | |
| Add plugin | |
npm create tauri-app@latesttauri.conf.jsonadb logcat | grep -iE "(tauri|RustStdout)"my-app/
├── src/ # Frontend
├── src-tauri/
│ ├── Cargo.toml
│ ├── tauri.conf.json # Main config
│ ├── src/
│ │ ├── main.rs # Desktop entry (don't modify)
│ │ └── lib.rs # Main code + mobile entry
│ ├── capabilities/
│ │ └── default.json # Permissions
│ └── gen/
│ ├── android/ # Android Studio project
│ └── apple/ # Xcode project{
"$schema": "https://schema.tauri.app/config/2",
"productName": "MyApp",
"identifier": "com.company.myapp",
"bundle": {
"iOS": { "minimumSystemVersion": "14.0" },
"android": { "minSdkVersion": 24 }
}
}{
"identifier": "default",
"windows": ["main"],
"permissions": ["core:default"]
}#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_deep_link::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error");
}
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}| Problem | Solution |
|---|---|
| White screen | Check JS console, verify |
| iOS won't connect | Use |
| INSTALL_FAILED_ALREADY_EXISTS | |
| Emulator not detected | Verify |
| HMR not working | Configure |
| Shell plugin URL error | Use |
| Google OAuth fails | Google blocks WebView; use system browser flow |
| Deep link not received | Check scheme in tauri.conf.json, init plugin |
| Safe area CSS fails on Android | |
| Windows APK build symlink error | Enable Developer Mode or copy .so files manually |