https://github.com/fastuptime/electronjs_send_notification
ElectronJs Send Notification
https://github.com/fastuptime/electronjs_send_notification
electron electronjs
Last synced: about 1 year ago
JSON representation
ElectronJs Send Notification
- Host: GitHub
- URL: https://github.com/fastuptime/electronjs_send_notification
- Owner: fastuptime
- Created: 2023-07-11T22:18:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T22:21:03.000Z (almost 3 years ago)
- Last Synced: 2025-02-17T09:13:29.545Z (over 1 year ago)
- Topics: electron, electronjs
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ElectronJs_Send_Notification
---
# Resimler



# Kod
```js
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const electron = require("electron");
const { app, Notification } = electron;
const path = require("path");
function sendNotification(title, body) {
const notification = {
title: title,
body: body,
icon: path.join(__dirname, "./256x256.ico"),
};
new Notification(notification).show();
}
async function start() {
if (process.platform === 'win32') {
app.setAppUserModelId(app.name);
}
sendNotification(`Selam ${process.env.USERNAME}`, "Hoşgeldin!");
sendNotification("Bilgilendirme", "Bu uygulama sadece test amaçlıdır.");
}
app.on("ready", start);
```
---
- ✨ [Destek İçin](https://fastuptime.com)
- 💕 [Discord](https://fastuptime.com/discord)
- 🎖️ [FasterHost Technology](https://fasterhost.tech/)
- ✨ İletişim için [Tıkla!](mailto:fastuptime@gmail.com)
# License
- Its protected by Creative Commons ([CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/))
