2016-11-13 34 views
0

我正在使用CN1 java應用的本地谷歌地圖。它可以在Android和CN1模擬器上正常工作,但在真正的iPhone上失敗。以下是系統日誌的一部分。iOS上的谷歌地圖錯誤:取決於傳統的按需授權,新應用不支持


    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 

回答

1

您是否包含如描述的構建提示ios.locationUsageDescriptionhere

它在位置API JavaDocs中也有提及。

+0

它添加該提示後工作。 – youseeme