我正在使用CN1 java应用程序制作原生谷歌地图。它在Android和CN1模拟器上工作正常,但在真正的iPhone上失败。以下是系统日志的一部分。
Nov 12 23:57:56 My-iPhone6spou locationd[64] : getClientEffectiveRegistrationResult, /private/var/containers/Bundle/Application/C483CD2D-48BB-4EB3-8AD6-440FE1C4C651/MyMaps.app/MyMaps, com.company.cn1.maps, , CLClientRegistrationResult, kCLClientRegistrationResultFailedUnavailable, CLCommonLocationServicesEnabled, 1
Nov 12 23:57:56 My-iPhone6spou locationd[64] : message 'kCLConnectionMessageLocation' received from client 'com.company.cn1.maps'
Nov 12 23:57:56 My-iPhone6spou locationd[64] : Client com.company.cn1.maps (0x10283ae00) is unsubscribing to notification kCLConnectionMessageLocation
Nov 12 23:57:56 My-iPhone6spou locationd[64] : Client com.company.cn1.maps (0x10283ae00) is unsubscribing to notification kCLConnectionMessageLocationUnavailable
Nov 12 23:57:56 My-iPhone6spou locationd[64] : client 'com.company.cn1.maps' unsubscribing from location
Nov 12 23:57:56 My-iPhone6spou locationd[64] : ClxClient, unsubscribe,
Nov 12 23:57:56 My-iPhone6spou locationd[64] : message 'kCLConnectionMessagePausesLocationUpdatesAutomatically' received from client 'com.company.cn1.maps'
Nov 12 23:57:56 My-iPhone6spou locationd[64] : message 'kCLConnectionMessageLocation' received from client 'com.company.cn1.maps'
Nov 12 23:57:56 My-iPhone6spou locationd[64] : ERROR: com.company.cn1.maps is depending on legacy on-demand authorization, which is not supported for new apps
Nov 12 23:57:56 My-iPhone6spou locationd[64] : Client com.company.cn1.maps (0x10283ae00) is subscribing to notification kCLConnectionMessageLocation
Nov 12 23:57:56 My-iPhone6spou locationd[64] : ERROR: com.company.cn1.maps is depending on legacy on-demand authorization, which is not supported for new apps
Nov 12 23:57:56 My-iPhone6spou locationd[64] : Client com.company.cn1.maps (0x10283ae00) is subscribing to notification kCLConnectionMessageLocationUnavailable
是否包含此处描述的构建提示ios.locationUsageDescription
?
在位置API JavaDocs中也提到了