mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-07-30 03:24:25 +00:00
- Faster return to virtual machine. - Fixed the frozen virtual machine startup dialog when using X11. - Added audio support for the built-in X11 display. - Improved notifications. - Qemu 7.2.22 has been improved and requires manual updating with the Upgrade tool using a command in the Terminal.
28 lines
No EOL
801 B
JavaScript
28 lines
No EOL
801 B
JavaScript
import admin from "firebase-admin";
|
|
import serviceAccount from './*-*-firebase-adminsdk-*-*.json' with { type: 'json' };
|
|
admin.initializeApp({
|
|
credential: admin.credential.cert(serviceAccount)
|
|
});
|
|
|
|
async function sendNotification() {
|
|
try {
|
|
const res = await admin.messaging().send({
|
|
data: {
|
|
title: "Vectras VM",
|
|
message: "Welcome!",
|
|
image: "https://github.com/xoureldeen/Vectras-VM-Android/blob/master/resources/vectrasvm.png",
|
|
url: "https://github.com/xoureldeen/Vectras-VM-Android",
|
|
//activityClass: "update",
|
|
//targetVersions: "4.1.0,4.2.0",
|
|
targetVersions: ""
|
|
},
|
|
topic: "vectrasvmandroidgithub"
|
|
});
|
|
|
|
console.log("Sent:", res);
|
|
} catch (err) {
|
|
console.error("Error:", err);
|
|
}
|
|
}
|
|
|
|
sendNotification(); |