我正在使用ionic框架v3开发一个应用。我的应用使用Firebase和Geofire插件在Google地图上定位了一些点。
该应用程序适用于Android设备和浏览器,但适用于iOS,则没有任何反应。地图已加载,但没有标记。我认为不调用Geofire回调事件是因为未打印console.log()。
我不知道错误在哪里,因为代码适用于其他操作系统……
此外,当我启动Geofire进程时,我在Xcode控制台中拥有了这些日志,但是我不知道它是否与我的问题有关。
SELECT min(d.id), p.SERIAL, p.pos_id, MIN(fecha)
FROM pvs p
JOIN devices d
ON d.SERIAL=p.SERIAL
WHERE p.pos_id = 50
GROUP BY p.SERIAL, p.pos_id
ORDER BY MIN(fecha) DESC;
这是创建和管理GeoFire的代码。
2019-03-25 18:33:34.485252+0100 XXX[1540:17125] GOOGLE-MAP : ngAfterInit
2019-03-25 18:33:34.630989+0100 XXX[1540:17125] TABS : ionViewDidEnter
2019-03-25 18:33:34.631244+0100 XXX[1540:17125] CREATING GEOQUERY AND CALLBACKS
2019-03-25 18:33:34.642649+0100 XXX[1540:17125] GEOQUERY : {"_firebaseRef":"https://XXX.firebaseio.com/geofire","_callbacks":{"ready":[null],"key_entered":[null],"key_exited":[],"key_moved":[]},"_cancelled":false,"_currentGeohashesQueried":{"u0ts:u0tw":{"active":true},"u0th:u0tn":{"active":true},"u0td:u0th":{"active":true},"u0t4:u0t8":{"active":true}},"_locationsTracked":{},"_valueEventFired":false,"_geohashCleanupScheduled":false,"_cleanUpCurrentGeohashesQueriedTimeout":null,"_cleanUpCurrentGeohashesQueriedInterval":33,"_center":[48.5734053,7.7521113],"_radius":20,"_outstandingGeohashReadyEvents":["u0ts:u0tw","u0th:u0tn","u0td:u0th","u0t4:u0t8"]}
CoreData: annotation: Failed to load optimized model at path '/Users/XXX/Library/Developer/CoreSimulator/Devices/96ADFD77-33B6-4FB1-B9C3-7B0EAA87491E/data/Containers/Bundle/Application/EB22A255-929F-4C73-8BF1-39EE14D54CA0/XXX.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'
CoreData: annotation: Failed to load optimized model at path '/Users/XXX/Library/Developer/CoreSimulator/Devices/96ADFD77-33B6-4FB1-B9C3-7B0EAA87491E/data/Containers/Bundle/Application/EB22A255-929F-4C73-8BF1-39EE14D54CA0/XXX.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'
CoreData: annotation: Failed to load optimized model at path '/Users/XXX/Library/Developer/CoreSimulator/Devices/96ADFD77-33B6-4FB1-B9C3-7B0EAA87491E/data/Containers/Bundle/Application/EB22A255-929F-4C73-8BF1-39EE14D54CA0/XXX.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'
2019-03-25 18:33:34.758165+0100 XXX[1540:17399] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2019-03-25 18:33:34.928257+0100 XXX[1540:17405] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2019-03-25 18:33:35.149019+0100 XXX[1540:17125] CDVWKWebViewEngine: handleStopScroll
2019-03-25 18:33:36.029352+0100 XXX[1540:17242] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1.1:2][0x7fb2cc408570] get output frames failed, state 8196
2019-03-25 18:33:36.029663+0100 XXX[1540:17242] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1.1:2][0x7fb2cc408570] get output frames failed, state 8196
2019-03-25 18:33:36.029960+0100 XXX[1540:17242] TIC Read Status [2:0x0]: 1:57
2019-03-25 18:33:36.030085+0100 XXX[1540:17242] TIC Read Status [2:0x0]: 1:57
2019-03-25 18:33:36.076358+0100 XXX[1540:17125] Google Maps SDK for iOS version: 2.7.30514.0
2019-03-25 18:33:36.076595+0100 XXX[1540:17125] New version of Google Maps SDK for iOS available: 3.0.33124.0
2019-03-25 18:33:40.383077+0100 XXX[1540:17398] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2019-03-25 18:33:40.583666+0100 XXX[1540:17227] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1.1:2][0x7fb2c9f7a120] get output frames failed, state 8196
2019-03-25 18:33:40.583865+0100 XXX[1540:17227] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1.1:2][0x7fb2c9f7a120] get output frames failed, state 8196
2019-03-25 18:33:40.584583+0100 XXX[1540:17227] TIC Read Status [4:0x0]: 1:57
2019-03-25 18:33:40.584711+0100 XXX[1540:17227] TIC Read Status [4:0x0]: 1:57
我不认为问题出在代码中,也许不在配置文件中,或者这是插件的问题。
有想法吗?