패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.1.1

ntfluttery

Flutter/Dart용 ntfy.sh API 클라이언트, 알림 가져오기, 생성, 업데이트, 삭제.

AndroidiOSmacOSWindowsLinux
30일 다운로드
11
좋아요
2
Pub 점수
80

패키지 설치

flutter pub add ntfluttery

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

ntfluttery는 Flutter/Dart 패키지로, ntfy.sh 알림 서비스용 클라이언트를 제공하여 앱이 프로그래밍 방식으로 알림을 보내고, 가져오며, 업데이트하고 삭제할 수 있도록 합니다. Android, iOS, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원합니다. ntfy.sh의 RESTful API와의 통합을 간소화하여 개발자가 애플리케이션 내에서 실시간 경고 및 메시지를 전달할 수 있도록 합니다. 가벼운 서버리스 알림 시스템에 적합하며, 최소한의 설정만으로 환경에 관계없이 원활하게 작동합니다.

사용 사례

  • 실시간 푸시 알림 보내기
  • 알림을 위한 ntfy.sh와의 통합
  • 앱에서 메시지 전달 자동화
  • 크로스 플랫폼 알림 처리
  • 경량 알림 시스템 구축

주요 기능

  • 모든 주요 플랫폼을 지원합니다
  • 알림에 대한 완전한 CRUD 작업
  • 간단한 API 통합
  • 경량이고 효율적
  • 실시간 메시지 전달

적합한 대상

  • ntfy.sh 사용 개발자
  • 크로스 플랫폼 알림이 필요한 앱
  • 서버리스 알림 워크플로
  • 빠른 통합 프로젝트
  • 미니멀리스트 알림 솔루션

고려 사항

  • ntfy.sh 계정이 필요합니다
  • 외부 API 사용 가능 여부에 따라 달라짐
  • ntfy.sh 기능에 제한됨
  • 내장된 UI 컴포넌트 없음
  • 네트워크 연결이 필요합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

ntfluttery

This plugin is focused on help with the integration of ntfy.sh it has multiple ways to access the list of messages such as a Streaming of data or even using custom credentials.

Also it provides various ways to handle the messages list.

Features

  • Ready to use NTFY:
  • Tuples of messages: Thanks to Dart 3, you can fetch customisable tuples based on the type of message.
  • Error Handling and Data Processing
  • Growing test percentage: The test percentage is being continously growing, to ensure a fully tested library.

Getting Started

Installation

To use this plugin, add ntfluttery as a dependency in your pubspec.yaml file.

dependencies:
  ntfluttery: ^latest_version
Usage
import 'package:ntfluttery/ntfluttery.dart';

void main() {
    // initialize the client
  final client = NtflutteryService(
      credentials:
          Credentials(username: 'ntfyUser', password: 'ntfyPassword'));

    // Inject a logger into each request.
    client.addLogging(true);

    // Fetch from the NTFY API as a STREAM
  final result = await cliente
      .get('https:/notification/$topic/json?poll=1');

    // Received the data as a touple ready to be used.
  result.$1.listen((event) {
    print(event.$1);
    print(event.$2);
  });
}
import 'package:ntfluttery/ntfluttery.dart';

void main() {
    // initialize the client
  final client = NtflutteryService(
      credentials:
          Credentials(username: 'ntfyUser', password: 'ntfyPassword'));

    // Or fetch the messages and instead of use a Streaming just use it as a simple Future value.
    final latest = await cliente.getLatestMessage(
      'https://notification/$topic/json?poll=1');
  print('latest: $latest');
}

Additional Information

  • Platform Support: iOS, Android, Web, Desktop
  • Dependencies: Dio, Flutter, PrettyDioLogger

Contributing

Contributions are welcome!

License

This project is licensed under the MIT License.

Special thanks

Thanks to Philipp C. Heckel for create this great tool.

Support and Contact

If you have any questions or issues, please file them on issue tracker.

For further inquiries, contact me at luisalfonsocb83@gmail.com.

카테고리

의존성

의존성 목록 3 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.