Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 71

hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
12/10/13 11:45 AM (11 years ago)

Usinge QR reader plugin to point to url with picture ramdomizer (sp)?

With the well worth long awaited QR reader plugin. I am using it in one of my app to bring up a website that has a java-script picture randomizer (yes I made that word up) to randomly have pictures of different free offers/specials and so on. I just tried it out and what essentially would be great for the website/picture show up within the app, but it is only showing the square with a blue question mark in it. It is coming up with a desktop browser. When I try to load it in my native browser it opens my mobile website :-(. The picture is a jpg, and i am using Android The goal is to have clients come in once a month to scan a QR code with the reader and have a picture or something randomly come up to offer free stuff. The reason why I want multiple pictures so they wouldn't always get the same thing. I thought this would be the best approach but if anyone else has any suggestion I am totally open on hearing them.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/10/13 12:02 PM (11 years ago)
Hi Howard, That seems like a great approach, and exactly what I would do as well. It seems like the issue has to do with the view that the random image is loading in. If you have the plugin configured to access a script on a website (that works in a browser), I would expect it to work in the app as well. I'm gonna join this thread to see what others come up with! Mark
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/10/13 02:12 PM (11 years ago)
What screen are you pointing to to load the webpage? Is the picture hosted online? It may be that you need to use png images rather than jpg's - Android doesn't do well with jpgs.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
12/10/13 02:55 PM (11 years ago)
I generated a qr code to point to this URL: http://www.beaverbrookah.com/random_test.html The picture is hosted on-line and I changed the format from jpg to png. Now when I try it, it loads the mobile website within the app. I will try and host it on another site that is not mobile. Howard
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/10/13 02:59 PM (11 years ago)
So it should be loading the custom URL plugin when a URL is present. You can check how it loads by adding a custom URL screen that points to the same URL and seeing how it looks.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
12/10/13 03:04 PM (11 years ago)
@Chris, I am not using the custom URL plug-in, should I be? I was just having the qr code pointed to a real webpage on my website. How would I use the custom URL plug-in Thanks, Howard
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
12/10/13 03:05 PM (11 years ago)
sorry Chris, I think I understand now. I will try that.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
12/10/13 03:18 PM (11 years ago)
Perfect! Okay so this is what I did and seem to get it working. I used the custom-URL plugin to test it but more importantly using the png rather than jpg work. I did have to host it on another website because it was loading the mobile website which I am not completely sure why its doing it now and wasn't doing it when I was using jpg file. I have to see if I can not have the link re-direct to the mobile site. Thanks again, Howard
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.