-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Proxy is not defined at new CapacitorWeb 😭 #913
Comments
Looks to be running on a very old version of Android. We support 5 and above. What version is that? |
This is 5.1.1 version, I tried to run on actual device (8 version) and it was good but on emulator not working |
The problem is the same as on Proxy is not available in your device. In Android it should work, but as you are testing in an emulator it’s probably out of date. Try updating the sdks for emulators and the system Webview/chrome if possible. |
This issue is occurs when we use capacitor plugins in lower android devices like android 5, 5.1, 6. But if you remove the capacitor plugin usage application will work but then css will not render properly. Style will not apply as you want. |
Having the same issue when i use capacitor PushNotification plugin. ionic info output
|
Would be good to know the device, android 8 devices should use the webview based on the installed chrome. Which chrome do you have installed? What do you get if you run navigator.userAgent? |
I tested now with another device Infinix X606 Build/O11019 and it works.
If i understand, users should have chrome installed on their phone before my app can run ? |
@deveshmishra34 No. I’m not using emulator. I’m using real android device. I’ll try updating chrome on the device that had the issue.
But I’m wondered if it is problem with chrome How do can I request updating chrome version on users before my app is installed ?
|
Starting on Android 7.0, Google started shipping Chrome with Android. Looks like some vendors managed to not ship Chrome or use a different WebView instead of the based on Chrome. In that cases the results are unpredictable for us. As of how to notify the users, you can probably check the user agent and show some custom message if they are below Chrome 67 as that's the version that included proxy. |
The best solution is don't use capacitor plugins...instead user push plugin for push notification. Until someone come with a patch. I had a same issues, i just remove capacitor plugin usage in my app. And it works fine. |
It should be something like this,when JS change ES6 to ES5,the "Proxy" from ES6 is not change and can't be recognized by ES5,so the solution is to implement custom "Proxy" for ES5. |
Same here. Because Ionic build on Angular9 has a issue, ionic-team/ionic-cli#4262. I built with the conf, "target": "es5" in tsconfig.json. When I open it on the mobile Chrome v79, "The proxy is not defined error" happens. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
I just call Device from '@capacitor/core' and run app , what's the wrong ?
The text was updated successfully, but these errors were encountered: