Is it possible to use Facetime in an appStudio app?


#1

One of my students is trying to use Facetime (click a button and it starts) in their appStudio app.
This is what they have done:

  1. The form (Chat) HTML property:
<button onclick="myFunction(<a href="facetime:tatemorrison@yahoo.com">Connect using FaceTime</a></button>
button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

It hangs up on what seems to be an appStudio error (unexpected token). There is no code in the form.
Advise?


#2

Have a look at the quote signs in the button. Double quotes don’t nest: a second double quote will end the first string.

Use a single quote inside the double quote string.