Best way to make a phone call?

zoid66zoid66 Member, PRO Posts: 11
edited September 2012 in Working with GS (Mac)
For Both IOS and Android.. I was thinking (OpenURL) tied to a button and adding in a phone number tag work to make a phone call from a game? Such that when you click on a phone number from a webpage. I don't see a 'tel' drop down.. Thinking gamesalad should add in a few other 'OpenURL' in the drop down such that even google market market:// will allow on "android" the phone to launch the google play app and not the browser.

Let me know if someone has found other ways that work.. save me some time.

Comments

  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Apple won't allow that for ios and you won't be able to completely do it through HTML for android
  • zoid66zoid66 Member, PRO Posts: 11
    Is it possible to use the phone function within gs?
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    @zoid66 No, GS doesn't allow access to phone, or most other iOS functions.
    @Leonarddeveloper What won't Apple allow? Phone function access from within applications is absolutely possible, as I've done it with one of my apps (not built with GS).
  • zoid66zoid66 Member, PRO Posts: 11
    For Android: Should be as simple as the below i am sure GS is something as such... I have a Santa App that I want to add a 'call santa' option.. Holding me back :(

    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    if (url.startsWith("mailto:") || url.startsWith("tel:")) {
    Intent intent = new Intent(Intent.ACTION_VIEW,
    Uri.parse(url));
    startActivity(intent);
    }
    view.loadUrl(url);
    return true;
    }
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @liquidgameworks
    My apologies, I didn't define it specifically enough, Apple WONT allow anything like phone calls or core function accesibilities through HTML as he was suggesting as you can't access core functionalities through anything else in GS,

    And he was alluding to doing it through html if you read the text properly
Sign In or Register to comment.