cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi,

 

I am looking for solution on locking or restricting use of my application on either Mobile device or any internet browser.

 

I have developed app which as per requirement should only work on mobile app. but when I add/share app to any user he get URL to his mailid. Unfortunately people are skip requirement and for ease of use are using this app directly on their desktop/laptop internet browser. I am looking for way on identifying from which device is user is logged. So if he is logged in from Internet browser using his laptop/desktop i can present error message.

 

Similarly we have developed exam tool using sharepoint and powerapps. During testing we found embeding powerapp on sharepoint page works fine. On this case since user has to complete examination in strict scenerio without screensharing or mobile screenshots. We would like to restrict user from using mobile phone to see this app.

 

Please suggest.

 

Thanks

 

Priyank 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Impactful Individual
Impactful Individual

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi @priyankbhat,

 

I am afraid I have no influence on the release calendar 😛

 

My guess it will not happen soon because after "Under review" comes "Planned" and then "Started" before "Completed".

 

Robot Happy Rick

View solution in original post

9 REPLIES 9
Highlighted
Impactful Individual
Impactful Individual

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi @priyankbhat,

 

This is not possible at the moment. When you search the community, you will find similar questions/answers.

 

Robot Happy Rick

Highlighted
Helper III
Helper III

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi Rick,

 

Thanks for your reply.

 

I have refered to page https://powerusers.microsoft.com/t5/PowerApps-Ideas/Get-Device-Info-in-PowerApps/idi-p/3173 

 

It seems between 2016 to mid of 2017. App.Device and App.Version is under review. Do we have any date by which this feature will be released.

 

This feature is most required.

 

Thanks

Priyank Bhat

Highlighted
Impactful Individual
Impactful Individual

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi @priyankbhat,

 

I am afraid I have no influence on the release calendar 😛

 

My guess it will not happen soon because after "Under review" comes "Planned" and then "Started" before "Completed".

 

Robot Happy Rick

View solution in original post

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

For detection between phone and web, this thread is the most useful I've seen:

 

https://powerusers.microsoft.com/t5/General-Discussion/Detect-web-browser-users/td-p/76971

Highlighted
Advocate I
Advocate I

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

If(IsBlank(Acceleration.X), "PC", "Mobile")  << I added this to a text box control and it seems to work, you could potentially add to the visibility property of a navigation button on an initial screen. 

Microsoft
Microsoft

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Just an update - data coming from the device telemetry like accelerometer seems to lag slightly as the app starts, so if you try detect the device type using something like IsBlank(Acceleration.X) on App start it may be initially blank at the time you detect it, resulting in a false negative.

 

There doesn't seem to be a set activation timeline, sometimes it's fast, sometimes it's slow - best way to achieve predictable results is to do run the test on a timer set to roughly 1 second after startup.  This has so far proven to be fairly reliable for me.

 

Interestingly enough, the desktop studio on my laptop resolves as a mobile device using this test - (news to me that my laptop has an accelerometer!) and it also allows for savedata and loaddata to be used, so I've at least got an easier way to test mobility functions on the desktop.  It also allows us to develop 'offline' capable apps for laptop devices in the field, as this was previously thought to only be the domain of mobile phones and tables - now, if we play them through the studio - wallah - offline mode!

 

Cheers,

RT

Highlighted
Advocate I
Advocate I

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Thanks for the additional information Russel. I hadn't considered testing on start up even though this would probably be the most relevent action to put it into, for most applications. Maybe this could time could be hidden within a nice splash screen to give it time to initialize. Unfortunetly I came accross PowerApps quite late and never got the chance to download the studio before it was depreciated what results do you get in the browser from the same laptop?

 

Can I propose we vote for this to become the new 'solution' so that people searching for a real workaround can find it easier. I'm not having a dig at anyone on this thread by that comment, I'm sure we all provide our best knowledge at the time.

Highlighted
Microsoft
Microsoft

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Hi @AM0002 

I think the deprecation related purely to the creating part - the PowerApps app is still available through the Windows store, except it's more of a player than a studio - hopefully this remains indefinitely because it's sudenly very useful 🙂

Kind regards,

RT

Highlighted
Regular Visitor

Re: How to make powerapps work only on target device Mobile or Internet browser (desktop) ?

Acceleration.X stays blank on a mobile device until you move the device enough to get the Accelerometer to fire...

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,097)