eeui plugin install https://github.com/aipaw/eeui-plugin-communication
eeui plugin uninstall https://github.com/aipaw/eeui-plugin-communication
const communication = app.requireModule("eeui/communication");
-
to
(String) -
[
callback
] (Function)
communication.call('415-736-0000')
communication.call('415-736-0000', () => {
console.log('called')
})
-
to
(String | Array) -
[
options
] (Object)-
subject
(String) -
body
(String)
-
-
[
callback
] (Function)
communication.mail('hi@natjs.com')
communication.mail(['hi@natjs.com', 'dev@natjs.com'], {
subject: 'Subject',
body: 'content goes here'
}, () => {
console.log('email popup')
})
-
to
(String | Array) -
[
message
] (String) -
[
callback
] (Function)
communication.sms('415-736-0000')
communication.sms(['415-736-0000', '425736-32'], 'message goes here', () => {
console.log('sms popup')
})
Error
CALL_PHONE_PERMISSION_DENIED
SEND_SMS_PERMISSION_DENIED
CALL_INVALID_ARGUMENT
SMS_INVALID_ARGUMENT
MAIL_INVALID_ARGUMENT