cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Component related bug in Android? Seems to work fine in Canvas interface.

Hello All,

I've been refactoring an app to use components for the header and footer. The footer is somewhat dynamic on that the icons will change depending on table input, which all seems to work fine. One feature is that the footer can have barcode scanning capability. So I use some logic on the buttons that if they are set to be a barcode scanner then when clicked it selects the off canvas Scan button and also sets a variable:

 

 

If(
    First(Parent.NavigationBinding).Button2.Selector="Barcode",
    Select(FooterScanner)
);
Set(varButton2Toggle, !varButton2Toggle)

 

 

Apologies the forum code bugged on adding images for some reason, the first attached image show the footer. I have output properties setup to take the barcode button value and also return a boolean from the set variables varButton#Toggle; depending on the button clicked 1-4 going left to right.

On the main screen in my app, the data entering the component is fine, no issues there. I have a toggle input

(tip picked up from this blog post ) with its default value set to the boolean coming out of the footer component for the appropriate button clicked. 

The camera icon for the barcode scanner in this case is button 3. If I run the app on my phone, when I click the barcode scanner it activates the camera interface and I scan a QR code. The component outputs should populate to output properties; one of the barcode value and a boolean. The boolean goes to true, the toggle default value changes accordingly and the OnCheck property runs. This holds the following code:

 

 

Set(BarcodeData, ContainerFooterMenu.ScannerOutput);
NewForm(ContainerForm);
Navigate(
    EditContainer, 
    ScreenTransition.None
);
Reset(ContainerFooterMenu)

 

 

The screen navigates to my form and the BarcodeData variable is passed to the EditContainer screen. Theres some logic in the form that if the mode is New it will populate a cell with the barcode data. But it is blank ... I go back to the previous screen as can be seen in the second attached image.

The textbox I use for debugging shows false on the button3 boolean; due to the reset, but the BarcodeData variable is showing "Sample value" from the scanned barcode. If I click the toggle input again it navigates again to a New EditContainer form and now the form is correctly populated with the "Sample value" string. Running the app through the browser it works correctly first time; browser returns "Sample value" due to the fact it cant run the barcode scanner correctly.

I've tried not using the reset, on going to the form. I tried not setting a global variable and passing the variable a context of the link. I tried a timer to pause the code for navigating to the new form. In short I've tried everything I can think of or have came across on the web. Is this a bug in the Android Powerapps application? Or am I missing something obscure?

Any help would be much appreciated, thank you.

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Component related bug in Android? Seems to work fine in Canvas interface.

Hi,

 

Looking through your issue here, I don't see anything that is obvious on why this issue is occurring for you. This might be some kind of issue with Android and how it processes on Android devices but I am not quite certain. You might be better off creating a ticket with the Microsoft Support team and having them take a look at this issue. I'll include a link below; on creating a ticket with them if you would like to go down that route.

 

If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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