Open thewailerz99 opened 5 months ago
On Android you can use the native FCM push libraries. I wrote this to work on desktops which do not have first-party FCM listener support. You're welcome to try and get it working in other cases, but I don't really have any leads for you, sorry.
Also I'm pretty sure that even if you got the libraries working, it would only work when the app was in the foreground.
i see.. thank you for your reply. i will look into native FCM library instead then. anyway, do you think writing a tauri plugin for this package will be useful?
It could be useful. I only needed the push functionality in the backend so I didn't try to integrate it any further into Tauri. It would probably work best as a different project that depends on this one.
By the way, I had been looking into using Tauri on Android as well but it looked difficult to set it up to run Rust code from a broadcast receiver. If you figure out a way to hook native FCM push up to Android Tauri let me know.
Hi, i was able to make it work with Tauri and windows app. is this possible to make this work with mobile? i tried running
npm run tauri android dev
. i get this error:cargo:rerun-if-env-changed=X86_64_LINUX_ANDROID_OPENSSL_LIBS X86_64_LINUX_ANDROID_OPENSSL_LIBS unset cargo:rerun-if-env-changed=OPENSSL_LIBS OPENSSL_LIBS unset cargo:rerun-if-env-changed=X86_64_LINUX_ANDROID_OPENSSL_STATIC X86_64_LINUX_ANDROID_OPENSSL_STATIC unset cargo:rerun-if-env-changed=OPENSSL_STATIC OPENSSL_STATIC unset
OpenSSL libdir at
["C:\Program Files\OpenSSL-Win64\lib"]does not contain the required files to either statically or dynamically link OpenSSL
i only know openssl lib doesnt have binaries for linux_android thats why its not working. i tried downloading prebuilt and seems like its meant to be directly used in android build.
any advice, direction what i should learn, or possibly a solution for this?
thank you!