{"id":28102210,"url":"https://github.com/woosignal/wp-notify-flutter","last_synced_at":"2025-05-13T19:34:37.536Z","repository":{"id":61975044,"uuid":"276754434","full_name":"woosignal/wp-notify-flutter","owner":"woosignal","description":"Send push notification from WordPress using Firebase Cloud Messaging. This package automatically pushes your fcm token to WordPress to start sending notifications. Featues inlcude assigning a WordPress user to a fcm token, sending basic push notifications for IOS and Android.","archived":false,"fork":false,"pushed_at":"2024-05-07T13:12:34.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-07T14:30:55.277Z","etag":null,"topics":["dart","flutter","notifications","notify","token","wordpress","wp-notify"],"latest_commit_sha":null,"homepage":"https://woosignal.com","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woosignal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["agordn52"]}},"created_at":"2020-07-02T22:10:50.000Z","updated_at":"2024-05-07T13:12:36.000Z","dependencies_parsed_at":"2024-03-11T06:28:00.777Z","dependency_job_id":"b2fc4f7b-63f6-4c95-a212-a1bb2943f84d","html_url":"https://github.com/woosignal/wp-notify-flutter","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.6,"last_synced_commit":"dbb6350e5adc0ed4242d3d76e11fd0f77393124d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woosignal%2Fwp-notify-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woosignal%2Fwp-notify-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woosignal%2Fwp-notify-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woosignal%2Fwp-notify-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woosignal","download_url":"https://codeload.github.com/woosignal/wp-notify-flutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254013207,"owners_count":21999376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","notifications","notify","token","wordpress","wp-notify"],"created_at":"2025-05-13T19:33:52.859Z","updated_at":"2025-05-13T19:34:37.516Z","avatar_url":"https://github.com/woosignal.png","language":"Dart","funding_links":["https://github.com/sponsors/agordn52"],"categories":[],"sub_categories":[],"readme":"# WP Notify for Flutter - Send push notifications from WordPress using Firebase Cloud Messaging\n\n[Official WooSignal package](https://woosignal.com)\n\n## API features:\n\n**Notifications**\n\n* Automatically sends the device token to your WordPress site for a given user/device\n* You can assign a token to a WordPress user\n* Send notifications from WordPress with our API\n\nTo use this Flutter package you must have the [WP Notify Plugin](https://woosignal.com/plugins/wordpress/wp-notify) installed first on your WordPress site, you can download it via the WooSignal website.\n\n### Getting Started #\nIn your flutter project add the dependency:\n\n``` dart\ndependencies:\n  ...\n  wp_notify: ^2.0.3\n```\n\n### Usage example #\nImport wp_notify.dart\n``` dart\nimport 'package:wp_notify/wp_notify.dart';\n```\n\n### Example using WP Notify\n\n``` dart\nimport 'package:wp_notify/wp_notify.dart';\n...\n\nvoid main() {\n\nWPNotifyAPI.instance.initWith(baseUrl: \"https://mysite.com\");\n\n...\n```\n\n\n### Available API Requests\n\n#### WordPress - wpNotifyStoreToken\n- Used for storing an FCM token\n``` dart\nWPStoreTokenResponse wpStoreTokenResponse;\ntry {\n    wpStoreTokenResponse = WPNotifyAPI.instance.api((request) =\u003e request.wpNotifyStoreToken(token: token, userId: usersId));\n} on Exception catch (e) {\n    print(e);\n}\n```\n\n#### WordPress - Updating a tokens status (e.g. if you want to turn off notifications)\n- Used for updating the status of an FCM token\n``` dart\nWPUpdateTokenResponse wpUpdateTokenResponse;\ntry {\n     wpUpdateTokenResponse = WPNotifyAPI.instance.api((request) =\u003e request.wpNotifyUpdateToken(token: token, status: true));\n} on Exception catch (e) {\n    print(e);\n}\n```\n\n\nFor help getting started with WooSignal, view our\n[online documentation](https://woosignal.com/docs/flutter/wp-notify), which offers a more detailed guide.\n\n## Usage\nTo use this plugin, add `wp_notify` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins).\n\n## Note\nInstall WordPress plugin \"WP Notify\" 2.0.x or later for version 2.0.0\n\nDisclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoosignal%2Fwp-notify-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoosignal%2Fwp-notify-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoosignal%2Fwp-notify-flutter/lists"}