flutter huawei push notification from onesignal

287 Views Asked by At

when I set one signal setup and app gallery on my flutter code it said that the user is not subscribed and the user didn't remove or clear data any idea how to do it?

and this is how i call one signal.

await OneSignal.shared.setAppId('appid');

  await OneSignal.shared
      .promptUserForPushNotificationPermission()
      .then((accepted) {
    // ignore: avoid_print
    print('accepted');
  });
0

There are 0 best solutions below