youppers / app

0 stars 1 forks source link

App qrcode scan #74

Open rafdelre opened 9 years ago

rafdelre commented 9 years ago

Hitesh When the app scans a qr code.... we dont get trace of it. What I mean is that everything is working correctly... BUT if the qr code is not part of our back end (is not in our servers) we would like to have the feedback anyways because if we decide to enable that qr code we need to know it has been scanned thankyou

rafdelre commented 9 years ago

Maybe you put a filter on qrcode scan??

hriziya commented 9 years ago

What should I do to trace it on backend ? Want me to call any API or something else ? please explain

rafdelre commented 9 years ago

Let me explain, if we can scan a valid code that is in our database, the app will correctly scan and read and return from Api. We tried to Scan a code that is not in our database and the app doesn't send this spring to our server as an app he reques Scan a code that is not in our database and the app doesn't send this spring to our server as a request. So we have no trace of the scan... Ask me if this is not clear Thankyou

hriziya commented 9 years ago

Actually, I won't know whether its a valid / invalid qr until l get API response. I am calling qr.find API whenever qr code detected by scanner. so it should be there in your qr.find trace I guess.

rafdelre commented 9 years ago

Ok We cant see it But we will check again Thankyou

sergiostrampelli commented 9 years ago

This is the original QR Code that the app send to backend:

http://demo.youppers.com/qr/5eeed2c7-abb2-11e4-b4aa-0cc47a127a14

image

If I modify the part after the "qr/" the app send the text to server:

http://demo.youppers.com/qr/prova

image

and the server retturn an empty result. _The App don't "see" anymore a valid QR until we click again on "scan"!_

But if I modify any part of "http://demo.youppers.com/qr/" the api is never called:

http://demo.youpers.com/qr/prova

image

Please check _WELL_ your code: this app is BASED on QRCode scan so also a little BUG in this part is critical

hriziya commented 9 years ago

Done

rafdelre commented 9 years ago

Sergio i just scanned it Could you check on server please?

sergiostrampelli commented 9 years ago

The server receive the qr:

Request: {"id":"33","jsonrpc":"2.0","method":"Qr.find","params":{"sessionId":"bc2ae4c1-eb7a-11e4-b4aa-0cc47a127a14","text":"WIFI:S:sequas;T:WPA;P:mond0fice;;"}}
Response: {"jsonrpc":"2.0","result":{"targets":[],"target_type":""},"id":"33"}

Please follow the workflow at page 2: if unsupported target_type: silently ignore, don't crash.

hriziya commented 9 years ago

Done