web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Telephone Launch on Desktop issue

(0) ShareShare
ReportReport
Posted on by 221

I have the following app that will launch the phone number correctly on a phone, however, there may be instances when someone completes this app on their desktop.  In that case, if someone clicks on the telephone button, it launches another blank screen on their desktop.  

 

Would anyone know how to avoid this from happening if launched on a desktop?

 

Thank you kindly!

 

Shaguar357_0-1674240464168.png

 

Categories:
I have the same question (0)
  • BoHamad Profile Picture
    on at
    Re: Telephone Launch on Desktop issue

    Hi @Shaguar357 

     

    you can use the size of screen to check if it a phone or desktop so;

    if(App.ActiveScreen.Size < 2, lunch(“your command”))

     

    App.ActiveScreen.Size < 2 it almost be a phone. You can check the breakpoint properties in your app Properties 

     

    hope this help 

     

  • Shaguar357 Profile Picture
    221 on at
    Re: Telephone Launch on Desktop issue

    Hi @BoHamad ,

     

    Thanks for your quick reply.  I added that to the app, however, it still wants to open another window.  

    I'm fairly new to building apps.  I did find the app breakpoint properties:  [1200, 1800, 2400], however, I'm not certain what to do with that information.  

  • BoHamad Profile Picture
    on at
    Re: Telephone Launch on Desktop issue

    Hi @Shaguar357 

     

    try to use App.activescreen.width 

     

    it gives you the width of your screen its a tricky way to detect if the width of the screen is high then it is a desktop then do not lunch the url so,

    try if the width < 400 the lunch else nothing

  • Shaguar357 Profile Picture
    221 on at
    Re: Telephone Launch on Desktop issue

     

    Ok @BoHamad , Is there something else I'm missing here?

    Shaguar357_0-1674242950726.png

     

  • BoHamad Profile Picture
    on at
    Re: Telephone Launch on Desktop issue

    Hi @Shaguar357 

    is it working?

  • Shaguar357 Profile Picture
    221 on at
    Re: Telephone Launch on Desktop issue

    Hi @BoHamad ,


    We're halfway there.  It's not opening a window on the desktop, but it's not launching on the phone now.

     

    Thanks!

  • BoHamad Profile Picture
    on at
    Re: Telephone Launch on Desktop issue

    Hi @Shaguar357 

     

    seems good, so you can increase the value of the condition till get the perfect number hope this help you 

     

    best regards,

    @BoHamad 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard