Google Maps on iOS error: is depending on legacy on-demand authorization, which is not supported for new apps
Google Maps on iOS error: is depending on legacy on-demand authorization, which is not supported for new apps
我正在使用 CN1 java 应用制作原生 google 地图。它在 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
您是否按照 here 所述包含构建提示 ios.locationUsageDescription
?
在位置 API JavaDocs 中也提到了它。
我正在使用 CN1 java 应用制作原生 google 地图。它在 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
您是否按照 here 所述包含构建提示 ios.locationUsageDescription
?
在位置 API JavaDocs 中也提到了它。