I'm building an app that involves generating QR codes with a certain link (eg: mywebsite.app/cLKXz).
Everything works fine on stock android, Samsung, and Apple.
But MIUI's integrated scanner simply doesn't recognize a .app domain as a link, which causes the user to have to copy the text and paste it on their browser, instead of being able to simply tap "Open Link".
Is there any way I can "force" this QR Code to be detected as a link no matter what's inside? Of course I'd like to keep my domain and avoid using another URL shortener such as Bitly, if possible.
EDIT
I already tried adding http://, https://, and www., but nothing seems to work.
Thanks a lot!
mywebsite.app/cLKXz
Prefix your URL with protocol like http:// or https://
It's a little late for the answer but it's an issue of the native QR reader.
See: https://c.mi.com/oc/thread-3359510-1-0.html
Same problem occurs when using domains ending with:
.cloud
.link
Related
Background
Some teams in my company's facilities are using Android tablets for multiple operations. We would like to allow them to access video demos from their tablets, when they are at specific places in the facility, without having to search through the tablet for the right video. So we thought of QR codes (printed on paper, stuck to the wall). Problem is: for security reasons, we can't allow the devices to access any network.
Question
So the idea is to store the videos locally, and have the QR code route to the local file. I thought this would be easy but it doesn't appear to be.
I have generated QR codes like file:///path/to/my/file.mp4, also trying to play with intents, like this:
file:///path/to/my/file.mp4#Intent;scheme=file;action=android.intent.action.VIEW;type=video/mp4;end.
(+ variants including intent://, using scheme=file, targeting images instead of videos...)
In the best cases, the browser opens, closes, and I receive "Cannot display file. Invalid PDF", and in the worst cases, "Sorry, the application could not be launched. The bar code content may be invalid.".
I also tried variants (images instead of videos, URL vs plain text QR codes, several code scanner applications), all with the same result. I have searched through SO, but most questions are about doing this programmatically in an application, while I would like to avoid designing an app just for this.
What am I doing wrong? Is there no way to do this that way?
Note: I had absolutely no knowledge about Android and intents before trying to solve this case, there may be smarter workarounds. Any hint is appreciated.
Given the network requirement within your company, it seems building a simple application is the easiest solution(maybe because I am an app developer).
So your app would need only 2 screens. QR code Scanner and a View that shows the video.(once you click done, go back to scanning)
The app can have all the videos you need prebuilt in the app itself and the QR codes can be the names of those videos.
Okay, I don't know if you are using web page or any android app for this fature, for web page you need to create your own scanner or integrate ready made solution i found 1 here, you will need setTimeinterval so it scans bar code once, Once barcode is found you will need to call your ajax method to fetch complete URL of that video, once any item is returned, you need to display it in iframe.
Hope it works for you.
I'm trying to receive a link shared from another application like browser or youtube into my phonegap app. I'm using phonegap build (build.phonegap.com) to make my app.
I'd like to know how to make my app appear in the 'share' list for links.
All solutions I found online are making me edit Android Manifest or Java files, but is there a way (a plugin of sorts) I can use to make data transfer between apps possible?
There is a plugin available for PhoneGap which will handle receiving content from other application. You can use it. Following is the link to this plugin. https://www.npmjs.com/package/cordova-plugin-intent
If you find any issue or something else other than that functionality, you can make the custom plugin so that you will have direct access of java file from javascript.
If I understand your question correctly, you're talking about deep linking in android. The details about it can be found here
Correct me if I explain your ideas wrong: What you want to do is that you have an URL that showed up in another application (Ex: Facebook Messenger, Slack, ...) and you want after clicking it, a list of application that can be used to open that link appear and you want your app to be listed there.
But here is the problem, how can the OS knows what apps it can suggest to the end-user and what kind of link your is acceptable to your app? the answer lies in your application manifest and to be more precise, the intent-filter tag. It tells the OS what you kind of url you want and also use it to determine if the OS should suggest your app to be open by using that link for the user.
So the answer for your question about doing without editing Manifest is impossible. As for the reason why you don't want to edit your apps is unknown to me but I still suggest you to take a look at this tutorial. It still involves editing your manifest but the guide it self is clear and easy to implement.
Hope this help ^^
I'm using webform from Rest.Authenticator.OAuth.Webform.Fmx to get access to one of the google api. This mechanism is working on my desktop app, so I want to use it on android app. But there is a trouble: I can't copy access code, from Twebbrowser on webform. Android does not raise mechanism of copying text.
What is the right way to solve this problem?
Parse page from webbrowser?
Well, I found the solution, the token i need will be here:
webform.lasttitle
After changing this title I will copy it and close webform automatically.
I'm developing a web app and I have an url that has the word "feedback" in its path. When I tap it, Chrome for Android asks me whether I want to open it with Chrome, with Firefox or with RssDemon (an Rss app I installed).
I played with the url bit by bit until I realized that it's the word "feed" in the URL what triggers that behaviour. It doesn't have to be at the beggining nor at the end. Anything like "feeding animals" or "linefeed code" would have the same effect.
I don't want to have to change my urls to avoid that.
The problem is not in the web app in any way. It's all the fault of RssDemon, the RSS android app. After uninstalling RssDemon, the problem goes away.
It seems that RssDemon set up an URL intent filter so that links clicked on Chrome that had the text feed in them opened with RssDemon. Being a link, it's likely that Android also offers Chrome & Firefox as options to open it.
The bad thing about that is that I can't do anything in my web app to avoid such a behaviour. The good things is that I don't have to :-) . It'll work fine for anyone without an app like RssDemon that installs such an intent filter. And you can't really protect from those, any app could set up a filter for any pattern and it'll be up to the user to decide then.
How to publish a hyperlink in the Android Market description? I've tried to insert something like this: in the description, but it shows the exact HTML code instead of a clickable link.
I've seen it done on another Market page so it is possible, but how?
Answer: For the web site it was enough to write the HTTP address. On the device Market it seems to be impossible.
I have also not been able to insert an anchor-tag style descriptive hyperlink in the "Description" field.
That said, it looks like https://market.android.com/details?id=net.timessquareball.app achieves this by simply writing out the entire URL as text (which does work). We've used this method in our app description as well.
If you're interested, I've experimented with a bit of other markup in the "Description" field and blogged about it here.
A URL of the following form will be converted to a clickable link and will redirect to the address specified in YOUR_URL.
https://www.google.com/url?q=YOUR_URL
eg: https://www.google.com/url?q=https://play.google.com/store/apps/details?id=domain.company.appname
I think you want to provide your android market app link:
market://details?id=com.google.android.googlequicksearchbox
http://market.android.com/details?id=com.google.android.googlequicksearchbox
For more info, check this: How to link to Android Market app
At the end of the day, writing just the address http://m.url.co.uk/somepage.aspx, without any tags, makes the link clickable on the Android Market Web Page.
I also had problems linking from one app description to another app in Android Market.
Linking to a site outside Market works OK - just type the http:// link without any tags.
So my solution is to link to page on my own website, which redirects to the other app in Market - like I do here : keyboard for Maxikeys
Turns out you will have to post the link without any tags around for example - https://example.com
This should work!