An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ElectronJs_Send_Notification

---

# Resimler

![image](https://github.com/fastuptime/ElectronJs_Send_Notification/assets/63351166/73048ebc-ab97-4f5e-9e27-acb6b21d3b1a)
![image](https://github.com/fastuptime/ElectronJs_Send_Notification/assets/63351166/38d86a27-f00b-462a-bfa7-1028defc471e)
![image](https://github.com/fastuptime/ElectronJs_Send_Notification/assets/63351166/de345c80-7e48-47f5-8ca1-9c9093f68734)

# 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/))