cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (37,171)