MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / pushNotification

Method pushNotification

src/lib/acode.js:954–966  ·  view source on GitHub ↗

* Push a notification * @param {string} title Title of the notification * @param {string} message Message body of the notification * @param {Object} options Notification options * @param {string} [options.icon] Icon for the notification, can be a URL or a base64 encoded image or icon class o

(
		title,
		message,
		{ icon, action = null, type = "info" } = {},
	)

Source from the content-addressed store, hash-verified

952 * @param {('info'|'warning'|'error'|'success')} [options.type='info'] Type of notification
953 */
954 pushNotification(
955 title,
956 message,
957 { icon, action = null, type = "info" } = {},
958 ) {
959 notificationManager.pushNotification({
960 title,
961 message,
962 icon,
963 action,
964 type,
965 });
966 }
967
968 /**
969 * Register a custom file type handler

Callers 6

onDeviceReadyFunction · 0.80
notifyFunction · 0.80
showRecommendationMethod · 0.80
#initializeClientMethod · 0.80
installServerFunction · 0.80
uninstallServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected