PWA - localhost:8000/screen 404 (Not Found) and Google Analytics Proxy Error

Hi,

I am building a cross-platform app using platforms: ios, android and browser.

After create my project and add the distinct platforms using:

ionic platform add ios
ionic platform add android
ionic platform add browser

When I run my app in the browser using:

ionic run browser

I am having some issues:

Uncaught TypeError: r[t] is not a function
at Object.Y.x.(anonymous function) [as loaded_0] (https://apis.google.com/js/api.js? onload=__iframefcb17181:10:484)
at https://apis.google.com//scs/apps-static//js/k=oz.gapi.en_GB.24X9oD1dfVI.…d=1/ed=1/am=AQ/rs=AGLTcCNmYZnDOcAh9Xoia7WJUc9ashbBJQ/cb=gapi.loaded_0:1:15

and:

EXCEPTION: Uncaught (in promise): Error: send timeout
Error: send timeout
at http://localhost:8000/plugins/cordova-plugin-google-analytics/browser/UniversalAnalyticsProxy.js:170:13
at t.invokeTask (http://localhost:8000/build/polyfills.js:3:9723)
at Object.onInvokeTask (http://localhost:8000/build/main.js:38716:37)
at t.invokeTask (http://localhost:8000/build/polyfills.js:3:9659)
at e.runTask (http://localhost:8000/build/polyfills.js:3:7083)
at invoke (http://localhost:8000/build/polyfills.js:3:10836)
at e.args.(anonymous function) (http://localhost:8000/build/polyfills.js:2:30123)

Please, any help?

Thanks.

2 Likes

I have same problem /screen 404 to run browser

Having the same issue on my project too.

Did you guys find the solution for this?

Yes, change this in your config.xml:

<preference name="SplashScreen" value="assets/images/logo.svg" />
<preference name="SplashScreenBackgroundColor" value="#000" />

Remember to include your image file in your src/assets/images folder.

And build for browser:

ionic build browser --prod

Deploy to your server:

platforms/browser/www

Hope it helps…

13 Likes