2016-09-16 57 views
0

第一次調用firebase很慢> 10秒,併發生一些網絡錯誤。我分叉回購重現問題:https://github.com/frankpolkm/ionic-conference-appfirebase首先打電話非常緩慢IOS

它只是增加了firebase到driftyco /離子會議應用程序演示應用程序。請看https://github.com/frankpolkm/ionic-conference-app/blob/master/app/app.ts

代碼變化,這裏是控制檯日誌。在添加Firebase之前沒有網絡錯誤。

0  104436 log  DEVICE READY FIRED AFTER, 1308, ms 
1  104725 log  Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode. 
2  104842 time  signInAnonymously 
3  105151 debug swiper initEvents, attach 
4  109567 warn  Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys 
5  109568 warn  Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required 
6  110230 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260 
7  110230 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260 
8  115416 timeEnd signInAnonymously 
9  115416 log  signInAnonymously: 10574ms 
10 115416 log  uid=mZevh2GdnyaNv1BSfnB78HC17di2 
11 120419 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260 
12 120420 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260 

請讓我知道我做錯了什麼。

感謝, 弗蘭克

+0

交叉帖子:https://groups.google.com/forum/#!topic/firebase-talk/vxJfM-7oSsg –

回答

0

添加<allow-navigation href="*" />到confix.xml文件解決了這個問題對我來說。