getPushTemplate method

Future<String?> getPushTemplate()

Gets the template for offline push notifications.

Return The push template name.

Throws A description of the exception. See ChatError.

Implementation

Future<String?> getPushTemplate() async {
  try {
    Map result = await platform_interface.Client.instance.pushManager
        .callNativeMethod(ChatMethodKeys.getPushTemplate);
    ChatError.hasErrorFromResult(result);
    String? ret = result[ChatMethodKeys.getPushTemplate];
    return ret;
  } catch (e) {
    rethrow;
  }
}