Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-blueprint-firebase-messaging
Advanced tools
An add-on for integrating Firebase Messaging into your Ember App
ember install ember-blueprint-firebase-messaging
Set the firebase.baseUrl
property in configs/environment.js
. This url points to
the mounting point for the main router from
@onehilltech/blueprint-firebase-messaging.
module.exports = function (environment) {
let ENV = {
// ...
firebase: {
baseUrl: `http://localhost:8080/firebase`
}
};
// ...
}
You must set the environment variable CAPACITOR_BUILD=true
when you build your EmberJS
application for capacitor (see ember-cli-capacitor).
If you don't set the CAPACITOR_BUILD
environment variable, then this add-on will
not integrate properly into your capacitor application.
CAPACITOR_BUILD
is automatically added toconfigs/environment.js
.
The device tokens are automatically registered with the backend server when a user signs in to a gatekeeper session. Also, the device token is removed from the server when a user signs out of their current gatekeeper session.
The @pushNotification
decorator is used to handle push notifications while the
mobile app is in the foreground. This decorator can be attached to any route in
the Ember app. Here is an example of attaching it to the IndexRoute
. This approach
is useful if you want to handle push notifications in a target route differently
from the general notification.
// app/routes/index.js
import { pushNotification } from 'ember-blueprint-firebase-messaging';
export default class IndexRoute extends Route {
// ...
@pushNotification
doPaymentCompleteNotification (notification) {
// handle the notification
}
}
Background notifications are ones received while the app is not in the foreground.
These notifications typically wake the target mobile application when tapped (this
will be indicated in the notification). You handle background notifications by
implementing the doPushNotification()
on the application route. If you do not
implement the doPushNotification()
method on the application route, then the
background push notifications will be ignored.
Background push notifications are only handled after the user taps the notification.
// app/routes/application.js
export default class ApplicationRoute extends Route {
// ...
doPushNotification (notification) {
// handle the background notification
}
}
FAQs
The default blueprint for ember-cli addons.
The npm package ember-blueprint-firebase-messaging receives a total of 42 weekly downloads. As such, ember-blueprint-firebase-messaging popularity was classified as not popular.
We found that ember-blueprint-firebase-messaging demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.