Closed mibzman closed 6 years ago
fixed by replacing
if let columnType = String(validatingUTF8: sqlite3_column_decltype(pStmt, i))?.uppercased() {
if let columnValue: AnyObject = getColumnValue(pStmt!, index: i, type: columnType) {
row[columnName] = SDColumn(obj: columnValue)
}
}
with
if let thing = sqlite3_column_decltype(pStmt, i), let columnType = String(validatingUTF8: thing)?.uppercased(){
if let columnValue: AnyObject = getColumnValue(pStmt!, index: i, type: columnType) {
row[columnName] = SDColumn(obj: columnValue)
}
}
This was caused by differing behavior between ios notifications and android notifications. Ios doesn't do 'titles' in the same way that android does, so if a geofence doesn't have a 'description' it would take a dump.
when the user enters a geofence the following is written to the log:
The offending line is in SwiftData.json:
Error:
note that this is running after following the procedure here, so this is swift 3