cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

smartphone performance

Hi,

 

i've built an application and i face weird behaviours on smartphones

my app is plugged to a sql server database.

i  have a view that brings me back about 2500 rows (so with delegation, il seems not to be a problem)

First of all

i've a filter and a clearcollect that gives me 2 values : 

ClearCollect(
    TwoDistinctValue;
    Distinct(
        Filter(
            '[dbo].[QSE_DistinctLigneArr]';
            Value(cb_LgArret.Selected.ligne) = Value(ligne)
        );
        Text(SensA)
    )
    ;
    Distinct(
        Filter(
            '[dbo].[QSE_DistinctLigneArr]';
            Value(cb_LgArret.Selected.ligne) = Value(ligne)
        );
        Text(SensB)
    )
)

i grab this collection and display it in another comboBox.

On my computer it works fine, but on my smartphones, it doesn't !

the TwoDistinctValue is empty on my smartphones, i don't understand why.

 

at last

i've another issue with camera

i've set up an udpdatecontext on a "on select" icon that switch between front and rear camera.

UpdateContext({DeviceObturateur: If(DeviceObturateur = 0;1;0)})

on my iphone it works fine

on my samsung it fails and stay on the front one..... (a teammate face the same)

 

any idea or workaround ?

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate I
Advocate I

I can help with your camera issue.  I use Samsung and Iphones.

 

The Camera control has a Camera property which is a number from 0 to 2 (I've found in my App).

 

I set this value to a variable, and then have a 'Switch Camera' button which increments this variable.

 

Also, I store this variable value using SaveData and restore it so saves the camera the user is on.

View solution in original post

3 REPLIES 3
Advocate I
Advocate I

I can help with your camera issue.  I use Samsung and Iphones.

 

The Camera control has a Camera property which is a number from 0 to 2 (I've found in my App).

 

I set this value to a variable, and then have a 'Switch Camera' button which increments this variable.

 

Also, I store this variable value using SaveData and restore it so saves the camera the user is on.

View solution in original post

Hi @HarjitSamra ,

 

thanks for your solution regarding the camera it works fine.

here is my code, which manages and iOS and Android : 

UpdateContext({DeviceObturateur: Switch(DeviceObturateur;0;1;1;2;2;0;0)})

 

it remains my issue with my collections.

I split this topic here

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,817)