-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: support per-app proxy configs (e.g. package:native_flutter_proxy) #220
Comments
We should add support for this, yes. |
I assume it would need to be done at the Rust level if I were to submit a PR for it? |
Sorry, been out sick the last several days, just getting to my inbox now. https://pub.dev/packages/native_flutter_proxy I presume is the package you're using? #114 is another way we might tackle this. It's unclear to me whether we will need to expose some sort of "set proxy" API regardless, or if that need goes away if we were to move onto the platform-native (or at least Flutter-engine-native) networking apis rather than bringing our own. If we don't need to expose a new "set proxy" api in that case, we should just wait and handle it that way. If we do need to expose a "set proxy" api regardless, then we could hack something in a the rust layer now and worry about porting it to another networking setup later. Although I'm unclear as to why apps would set a proxy at all? Isn't that something the User's device typically sets up? |
Yes, that's the package. My app runs on company devices that utilize a private APN sim card with custom settings that cause flutter networking to fail to resolve for some reason until this package is initialized (using company settings). I would expect #114 would resolve it. |
Thanks. I suspect there are two bugs here.
|
Created PR #229. |
When running the app on company devices with a custom proxy setting, (using
flutter_native_proxy
plugin so the app uses the network correctly), the call to the shorebird api fails since it's using its own thread. Is there a way for the plugin/updater to pick up the proxy settings so it can succeed? I've confirmed that the proxy itself is allowing traffic to api.shorebird.dev...I disabled auto_update and used the plugin thinking maybe it would use the proxy settings after init, but no luck there either. I assume it's due to the nature of the background thread.
The text was updated successfully, but these errors were encountered: