File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ class _MyAppState extends State<MyApp>
33
33
Future <void > initPlatformState () async {
34
34
if (! mounted) return ;
35
35
36
- OneSignal .Debug .setLogLevel (OSLogLevel .debug );
36
+ OneSignal .Debug .setLogLevel (OSLogLevel .verbose );
37
37
38
38
OneSignal .Debug .setAlertLevel (OSLogLevel .none);
39
+ OneSignal .shared.setRequiresPrivacyConsent (_requireConsent);
39
40
40
41
// NOTE: Replace with your own app ID from https://www.onesignal.com
41
42
OneSignal .shared.initialize ("77e32082-ea27-42e3-a898-c72e141824ef" );
@@ -49,8 +50,6 @@ class _MyAppState extends State<MyApp>
49
50
OneSignal .User .pushSubscription.addObserver (this );
50
51
OneSignal .Notifications .addPermssionObserver (this );
51
52
52
- OneSignal .shared.setRequiresPrivacyConsent (_requireConsent);
53
-
54
53
OneSignal .Notifications .setNotificationOpenedHandler (
55
54
(OSNotificationOpenedResult result) {
56
55
print ('NOTIFICATION OPENED HANDLER CALLED WITH: ${result }' );
You can’t perform that action at this time.
0 commit comments