Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[store][v2] MobilePluginHandleUnInitialized Err on mobile platforms when store is initialized in rust #1256

Open
furry-broccoli opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation plugin: store

Comments

@furry-broccoli
Copy link

Constructing a store in rust like the example snippet results in MobilePluginHandleUnInitialized when running on android (looking at the code, I assume it's the same for iOS).

#[cfg_attr(mobile, tauri::mobile_entry_point)]
fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_store::Builder::default().build())
        .setup(|app| {
            let mut store = StoreBuilder::new("foo.bin").build(app.handle().clone());
            store.load().expect("Failed to load store from disk");
        })
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Versions

tauri-plugin-store = "2.0.0-beta.4"
tauri = { version = "2.0.0-beta", features = [] }

Capabilities

  "permissions": [
    "store:allow-has",
    "store:allow-get",
    "store:allow-set",
    "store:allow-save",
    "store:allow-load"
  ]
@FabianLars FabianLars added bug Something isn't working documentation Improvements or additions to documentation plugin: store labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation plugin: store
Projects
None yet
Development

No branches or pull requests

2 participants