Commit 968d5a11 authored by Wilko Manger's avatar Wilko Manger

Improve iOS error reporting

parent 4255fc83
......@@ -108,7 +108,7 @@ Future<Event> get _environment async {
simulator: !info.isPhysicalDevice
);
} else {
} else if (Platform.isIOS){
final info = await deviceInfo.iosInfo;
user = User(
......@@ -117,12 +117,12 @@ Future<Event> get _environment async {
os = Os(
name: 'iOS',
version: '${info.systemName} ${info.systemVersion}',
version: info.systemVersion,
);
device = Device(
name: info.name,
family: info.model,
model: info.name,
simulator: !info.isPhysicalDevice
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment