oneSignalNotification static method

Future<void> oneSignalNotification({
  1. required String? oneSignalId,
})

Implementation

static Future<void> oneSignalNotification(
    {required String? oneSignalId}) async {
  OneSignal.shared.setAppId("$oneSignalId");
  OneSignal.shared
      .promptUserForPushNotificationPermission()
      .then((accepted) {});
}