Hello all, hello @J805 ,
I have implemented a QR reader within my app which reads a QR code which I created to corresponds to the unique ID of one of a number of possible data types. The QR scan can be done on my mobile site or natively using the BDK Native inbuilt QR scan function on the native app version.
At present I do a search on each of the Data Types for which I have QR codes separately, and then navigate to a view depending on where it finds a match to the unique ID (I am not sure this is the most efficient way to to do this but I didn’t know if I can search across data types to find a unique ID).
Anyway it does work. However I realised I needed to redesign this to be able to read in QRs from an external QR reader too. So I have saved a test QR code content which instead of holding “123456789” holds “https://app.mysite.com/venue?qr=123456789”.
And this now works as I want by extracting the QR from the URL.
However I need the original scanners within the app now to cut out the “https://app.mysite.com/venue?qr=” part and leave me with just the unique ID. I have saved a custom variable on the venue page which holds the domain “https://app.mysite.com/” and appends a “version-test/” when not in live, but I don’t know what the text function/syntax would be to extract just the unique ID. I guess I should also add that I may want other variables in the future too so I guess I need to extract to the end or to an “&” character depending on which comes first.
Any ideas on how I can do this?
Thanks a lot,
David
PS thanks for the Option Sets video @J805 , it was very helpful. Wish I knew about using these when I started developing this app. Anyway they will get used when I come back and do a major tidy.
PPS we got our app accepted to both Play Store and App Store this week. Onwards and upwards