Карты Google работают в браузере под управлением Windows Server, но не на сервере Ubuntu - PullRequest
0 голосов
/ 23 мая 2018

Ionic 3 - Карты Google работают в браузере, работающем под управлением Windows Server, но не на сервере Ubuntu.

Использование: ionic cordova build browser

Я получил встроенный браузер ./platforms/browser/www

Я переместил это в / var / www /, который является корнем документа для моего веб-сервера apache, работающего на экземпляре aws ec2 ubuntu.Здесь, на этом сервере я не могу видеть карты Google, как показано ниже на изображении 1

Image 1

Но он работает нормально, когда я запускаю это наWindows Server под xampp, как показано ниже на изображении 2

Image 2

Я запустил «Плагин ionic cordova add add cordova-plugin-statusbar». Ошибка консоли отображается:

 Failed to load resource: the server responded with a status of 404 (Not Found)
cordova.js:1023 adding proxy for Badge
cordova.js:1023 adding proxy for Device
cordova.js:1023 adding proxy for SplashScreen
cordova.js:1023 adding proxy for StatusBar
StatusBarProxy.js:23 StatusBar is not supported

Все ошибки консоли:

HelveticaNeueLTStd-Roman.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)

HelveticaNeueLTStd-Roman.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)

cordova.js:1023 adding proxy for Badge
cordova.js:1023 adding proxy for Device
cordova.js:1023 adding proxy for SplashScreen
cordova.js:1023 adding proxy for StatusBar

StatusBarProxy.js:23 StatusBar is not supported
HelveticaNeueLTStd-Roman.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)

/config.xml:1 Failed to load resource: the server responded with a status of 404 (Not Found)
cordova.js:865 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found

fail @ cordova.js:865
SplashScreenProxy.js:163 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found

(anonymous) @ SplashScreenProxy.js:163
core.js:3688 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
home.ts:31 Observable
home.ts:32 Observable

bootstrap.js:10 Ionic Native: deviceready event fired after 1112 ms
BX-PPTG-BJP_Calzone_WoodBoard.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

PR_Sausage_Pepperoni_Woodboard.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BJP_FL_Cheesing.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Full-House-044-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Good-Deal-002-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Chicken-Med-010-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Santa-Fe-052.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Natural-049-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Jackpot.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BJP_FL_BBQ_Square-1.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_Greek-Salad-CO-copy.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Salad-Spinach_Cherry.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Antipasto-Salad-Bowl.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_Southwest_Salad-Dressing.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BJP_PR_Chicken_Caesar_Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Garden-Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BJP_FL_Mediterranean_Salad.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJPCheeseBread.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BonelessWings_Hot.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
BJP_FL_Wings.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
AllBrands_CinnamonSticks.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

BlueBellIceCream.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
soda.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

StatusBarProxy.js:23 StatusBar is not supported
logo.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)

polyfills.js:2 [Deprecation] getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS.  
n @ polyfills.js:2
geolocation-map.ts:663 PositionError

Пожалуйста, дайте мне знать, чего не хватает, так как я новичок в Ionic.

...