firebase_cloud_messaging_backend 1.0.1
firebase_cloud_messaging_backend: ^1.0.1

Dart native
Flutter Android iOS

Use Firebase Cloud Messaging in your dart server code

5
likes
75 / 110
pub points
43 %
popularity

We analyzed this package on Nov 22, 2020, and awarded it 75 pub points (of a possible 110):

Follow Dart file conventions
5 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:34:49

   ╷
34 │ <p>Please file feature requests and bugs at the <a href="http://example.com/issues/replaceme">issue tracker</a>.</p>
   │                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/firebase_cloud_messaging_backend_example.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 89 out of 189 API elements (47.1 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:firebase_cloud_messaging_backend/firebase_cloud_messaging_backend.dart that imports:
  • package:firebase_cloud_messaging_backend/src/logic/JWTClaim.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

INFO: Use `=` to separate a named parameter from its default value.

lib/src/FirebaseCloudMessagingServer.dart:21:22

   ╷
21 │       {this.cacheAuth: true});
   │                      ^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/FirebaseCloudMessagingServer.dart

INFO: Use `=` to separate a named parameter from its default value.

lib/src/logic/Send.dart:16:27

   ╷
16 │   Send({this.validate_only: false, this.message});
   │                           ^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/logic/Send.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
googleapis_auth^0.2.100.2.120.2.12
http^0.12.0+20.12.20.12.2
json_annotation^3.0.03.1.13.1.1
json_serializable^3.2.23.5.03.5.0
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-12.0.013.0.0
analyzer-0.40.60.41.0
args-1.6.01.6.0
async-2.4.22.4.2
build-1.5.11.5.1
build_config-0.4.30.4.3
charcode-1.1.31.1.3
checked_yaml-1.0.21.0.2
cli_util-0.2.00.2.0
collection-1.14.131.14.13
convert-2.1.12.1.1
crypto-2.1.52.1.5
dart_style-1.3.101.3.10
file-5.2.15.2.1
glob-1.2.01.2.0
http_parser-3.1.43.1.4
intl-0.16.10.16.1
js-0.6.20.6.2
logging-0.11.40.11.4
meta-1.2.41.2.4
node_interop-1.2.11.2.1
node_io-1.2.01.2.0
package_config-1.9.31.9.3
path-1.7.01.7.0
pub_semver-1.4.41.4.4
pubspec_parse-0.1.50.1.5
source_gen-0.9.80.9.8
source_span-1.7.01.7.0
string_scanner-1.0.51.0.5
term_glyph-1.1.01.1.0
typed_data-1.2.01.2.0
watcher-0.9.7+150.9.7+15
yaml-2.2.12.2.1

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs