-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_old.html
More file actions
43 lines (39 loc) · 1.38 KB
/
Copy pathindex_old.html
File metadata and controls
43 lines (39 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<!--Provide gcm_sender_id via manifest.json.
gcm_sender_id is needed to route FCM messages to the correct service worker.
Note: The gcm_sender_id is required for Chrome prior to version 52, Opera Android, and Samsung Internet.
https://developers.google.com/web/ilt/pwa/introduction-to-push-notifications
-->
<link rel="manifest" href="/manifest.json">
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<img src="https://n.mailfire.io/online/148" style="display:none" width="1" height="1" />
<script>
(function (w, d, f) {
w[f] = function () {(w[f].q = w[f].q || []).push(arguments)};
w['_mf_object_name'] = f;
var l = document.createElement('script');
l.src = 'latest.js';
l.type = 'text/javascript';
l.async = true;
var s = d.getElementsByTagName('script')[0];
s.parentNode.insertBefore(l, s);
})(window, document, 'mf');
mf.project = 148; // Your project ID
mf.sw = 'swfcm.js'; // service worker URL
mf.msgSenderId = '587960273742'; // required for webpush messages
mf.debug = 'true';
//mf('webpushfcm', 'auto'); // Showing popup after some time
// mf('init', 'custom');
// mf('init', 'watcher');
mf('webpushfcm', 'init');
// mf('webpushfcm', 'showPopup');
mf('webpushfcm', 'subscribe');
</script>
FCM works!
</body>
</html>