パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。