Status Update
Comments
br...@google.com <br...@google.com> #2
I have the same problem (used to work in 8.0 and stopped in 8.1 preview 1).
I call it from a `Fragment` attached as a headless-fragment (without any own view).
My Code (this returns always `<unknown_ssid>`):
```kotlin
private val wifiManager: WifiManager by lazy { context!!.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager }
private val isInCorrectWifi: Boolean
get() {
val connectionInfo = wifiManager.connectionInfo
if (SupplicantState.COMPLETED != connectionInfo.supplicantState) {
debug("isInCorrectWifi > not connected to any wifi")
return false
}
val dataReaderSSIDInMarks = "\"testWifi\""
if (dataReaderSSIDInMarks.isEmpty() || dataReaderSSIDInMarks != connectionInfo.ssid) {
debug("isInCorrectWifi: not connected to correct wifi (should be $dataReaderSSIDInMarks)")
return false
}
return true
}
```
I call it from a `Fragment` attached as a headless-fragment (without any own view).
My Code (this returns always `<unknown_ssid>`):
```kotlin
private val wifiManager: WifiManager by lazy { context!!.applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager }
private val isInCorrectWifi: Boolean
get() {
val connectionInfo = wifiManager.connectionInfo
if (SupplicantState.COMPLETED != connectionInfo.supplicantState) {
debug("isInCorrectWifi > not connected to any wifi")
return false
}
val dataReaderSSIDInMarks = "\"testWifi\""
if (dataReaderSSIDInMarks.isEmpty() || dataReaderSSIDInMarks != connectionInfo.ssid) {
debug("isInCorrectWifi: not connected to correct wifi (should be $dataReaderSSIDInMarks)")
return false
}
return true
}
```
bl...@gmail.com <bl...@gmail.com> #3
It looks like you now need `android.permission.ACCESS_COARSE_LOCATION` (I think `ACCESS_FINE_LOCATION` will work as well).
I've tested it and it seems working now.
I've tested it and it seems working now.
Description
My code also returns a sub-classed UIView instance and I am seeing the same frozen app issue.
Operating system version:
Google Maps SDK for iOS version: 1.13
Hardware model: iPhone 5