added guardian login with views for their assigned childs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
/// Platform value MarianumConnect expects in push registrations.
|
||||
String get pushPlatform => Platform.isIOS ? 'ios' : 'android';
|
||||
|
||||
/// App version sent along with push registrations; null when unavailable.
|
||||
Future<String?> pushAppVersion() async {
|
||||
try {
|
||||
return (await PackageInfo.fromPlatform()).version;
|
||||
} on Object {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user