Rearrange order
This commit is contained in:
parent
7051bb5271
commit
029a14ab3f
1 changed files with 6 additions and 6 deletions
|
|
@ -6,12 +6,6 @@ import 'package:flutter_background_geolocation/flutter_background_geolocation.da
|
|||
|
||||
import 'preferences.dart';
|
||||
|
||||
@pragma('vm:entry-point')
|
||||
Future<void> pushServiceBackgroundHandler(RemoteMessage message) async {
|
||||
await Preferences.init();
|
||||
await PushService._onMessage(message);
|
||||
}
|
||||
|
||||
class PushService {
|
||||
static Future<void> init() async {
|
||||
await FirebaseMessaging.instance.requestPermission();
|
||||
|
|
@ -56,3 +50,9 @@ class PushService {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@pragma('vm:entry-point')
|
||||
Future<void> pushServiceBackgroundHandler(RemoteMessage message) async {
|
||||
await Preferences.init();
|
||||
await PushService._onMessage(message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue