Michael Iglesias
Posts: 0
Joined: Tue Jul 23, 2013 8:51 pm

Appery.io Tester is not launching my app

For some reason I am able to test my able in my desktop browser but when trying to launch app using android Appery.io Tester all I get is a white blank page

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.io Tester is not launching my app

Hello! What device/version you use? Do you have the latest Appery.io Tester version?

Michael Iglesias
Posts: 0
Joined: Tue Jul 23, 2013 8:51 pm

Appery.io Tester is not launching my app

Hey,

Thanks for the quick response. It's working fine now, the app is loading with "Tester". It must the office internet connection which has been faulty today.

Thanks,
Michael

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.io Tester is not launching my app

Ok, glad it's working!

Michael Iglesias
Posts: 0
Joined: Tue Jul 23, 2013 8:51 pm

Appery.io Tester is not launching my app

Hey,

I've run into another small problem..

I have gone ahead and created an on 'Value change' event which when occurs to execute a very simple block of javascript. For some reason my few lines of javascript aren't being executed. The label is in fact being updated with a string of text which should theoretically execute the block of code I tied to the event.

Any help would be much appreciated :)

Thanks,
Michael

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.io Tester is not launching my app

Hello! value change event won't work for Label.You can call your code you have on value change event when you change Label value (in JS or mapping)
codeAppery("mobilelabelName").trigger("change");/code

Michael Iglesias
Posts: 0
Joined: Tue Jul 23, 2013 8:51 pm

Appery.io Tester is not launching my app

So I think I'm over complicating things. I am using the bar code scanner to read a users qr code which is in the following format

UserID-UNIQUE Reward ID
1111--Eraksdjf1231kdfL!kajdkflaks

All I need to do is split this string by "--" and invoke an api service which I have already created and formatted in appery.

How do I split this string and set their values to local storage variables once the barcode scanner has scanned the qr code?

Thanks in advance for your help :)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.io Tester is not launching my app

Hello! Map value to localStorage variable and add JS code in mapping. In localStorage variable will be saved value returned from function you add. For example for mapping to variable where userId stores :
codereturn value.slice(0, value.indexOf("--"));/code

Michael Iglesias
Posts: 0
Joined: Tue Jul 23, 2013 8:51 pm

Appery.io Tester is not launching my app

So now I have those values stored in local variables as well as other API call dependent variables. Now how do I invoke a service call after the qr-code has been scanned and the user ID and reward ID have been stored in local variables.

Is there any way to create an event that would be executed automatically after a qr-code is scanned?

Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Appery.io Tester is not launching my app

On QR scanner service Success event call the service you need.

Return to “Issues”