Skip to content

Commit b6c483e

Browse files
committed
cleanup
1 parent 93a509e commit b6c483e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/lib/main.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ class _MyAppState extends State<MyApp>
3333
Future<void> initPlatformState() async {
3434
if (!mounted) return;
3535

36-
OneSignal.Debug.setLogLevel(OSLogLevel.debug);
36+
OneSignal.Debug.setLogLevel(OSLogLevel.verbose);
3737

3838
OneSignal.Debug.setAlertLevel(OSLogLevel.none);
39+
OneSignal.shared.setRequiresPrivacyConsent(_requireConsent);
3940

4041
// NOTE: Replace with your own app ID from https://www.onesignal.com
4142
OneSignal.shared.initialize("77e32082-ea27-42e3-a898-c72e141824ef");
@@ -49,8 +50,6 @@ class _MyAppState extends State<MyApp>
4950
OneSignal.User.pushSubscription.addObserver(this);
5051
OneSignal.Notifications.addPermssionObserver(this);
5152

52-
OneSignal.shared.setRequiresPrivacyConsent(_requireConsent);
53-
5453
OneSignal.Notifications.setNotificationOpenedHandler(
5554
(OSNotificationOpenedResult result) {
5655
print('NOTIFICATION OPENED HANDLER CALLED WITH: ${result}');

0 commit comments

Comments
 (0)