Android: Possible to call number via dialer?

Discussion and feedback on Construct 2

Post » Sun Aug 03, 2014 4:14 pm

Hi, is it possible to add a menu that when clicked dials out a number? Like a contact us menu link that when clicked puts your phone number on the dialer. Thank you for your help.
B
10
S
2
Posts: 30
Reputation: 722

Post » Sun Aug 03, 2014 7:18 pm

After a bit of googling, found out its pretty simple. Just add browser object and go to url: "tel:+1-555-555-5555"
B
10
S
2
Posts: 30
Reputation: 722

Post » Sun Jan 08, 2017 10:01 am

it doesnt work for me :( what do you do exactly what i miss maybe?
B
19
S
7
G
1
Posts: 38
Reputation: 1,911

Post » Wed Feb 08, 2017 12:27 am

I have done this and it works, at least on android browser and chrome for android. Haven not tested yet on iPhone/iPad.

Exactly as @Firewires said, just use the browser object, open URL -> "tel:12345678" <- use as link -> triggered by touching on certain object, etc

Now when I tap on the number it will bring up my dialing options, add to contacts, etc.

Make sure you put "tel:" before the number, that's important!

Image

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474


Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish, thimas and 8 guests