arePushNotificationsEnabled static method

Future<bool> arePushNotificationsEnabled()

Check if Push Notifications are enabled for current user.

Implementation

static Future<bool> arePushNotificationsEnabled() {
  return NativeBridge.async('Notifications.areEnabled', '').then((result) {
    return jsonDecode(result)['result'] == true;
  });
}