Android App Links - Getting 404 on assetlinks.json - android

I have a website that just went live and getting hits from users accessing using any type of devices.
In my logs I am having 404 requests on the assetlinks.json file.
According to my research this corresponds to Android App Links but I do not have any Android application...
How can I avoid having 404 on this file? Can I create an empty file?
Thank you

Related

How do i use the android content provider api of the chrome browser?

After reading about android content provider framework, I can guess that the URI for the chrome content provider would be something like this content://com.example.chrome.ContentProvider/DataType/data_id. I want to list out the links visited in the chrome browser as they occur from my app. I didn't get any standard Manual Page for the android chrome browser content provider API, after searching online. Could you point me to some man pages or/and examples of the same. Please comment if any more context is needed, Thanks.
update:
Ok so after some reading, I was able to list exposed apis for chrome and firefox, and then I tried to put a
getContentResolver().query(...) in the main_activity.java
and android:name="org.mozilla.firefox.permissions.SEARCHHISTORY_PROVIDER"permissions in the manifest file. But the app failed to open. I understand that the firefox browser app is denying access to my app as its signature is not verified. Could you shed some light on the signature verification process and how do i sign my app with a valid signature for it to access the firefox api?

Ionic does not show json data on android emulator or devapp

On localhost:8100 with ionic serve command, app is calling json data via web api (asp.net core backend that enabled CORS with origins http://localhost:8100) which is working fine.
Now, I tested with both devapp on galaxy 9 and android emulator (ioniccordovaemulate android). Both shows the app's layout, but it does not fetch json data.
Does anyone know what the problem is or how to debug it on devapp/android emulator like I can do it on browser's console?
Use chrome://inspect/#devices to debug Android devices/emulators and check below:
See if there is any error in console logs (maybe JavaScript is breaking due to which this is happening)
Check if API is getting called and getting response.
Check here official information for how to use chrome inspect devices.

Android App + Cordova + HTML5 + Google Drive Api

I developed a html5 page to list google drive files and test with PhoneGap server. All works fine, because I created a Oauth2 with http://localhost:3000 configured.
When I tried to test a APK file, with SHA1 (also configured on Oauth2 in google drive console), I received the error:
Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=<KEY>' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. I understand that this error is because the Oauth2 doesn't expect the origin. But the Origin is not http, if file know... (file:///android_asset/www/index.html). The GoogleAPI Console doesn't accept 'file' protocol... just 'http'.
How can I solve this?
According to solution given in this SO post - Refused to display in an frame because it set 'X-Frame-Options' to 'SAMEORIGIN', regarding error encountered:
This is not related to disabling security in chrome browser. I believe there might me some issues with my XAMPP Windows local host.Deploying the same application in node.js server or hosting Dropbox/Google Drive as a web app also works fine.
Additionally, to make a request, as discussed in step #2 from the basic steps in using OAuth 2.0 to Access Google APIs, obtain an access token from the Google Authorization Server. Ways to make a request are as follows:
a JavaScript application might request an access token using a browser redirect to Google
an application installed on a device that has no browser uses web service requests.
Sample scenarios which you can use can be found in the documentation.

Run google scripts from android device

I have a google script that fetches some data from an excel sheet. The data is returned as JSON. The excel sheet is shared between a set of users. I can run the script from browser, if I am logged in as google user. How can I execute the script from an android application. How do I execute the script as the user (user at the keyboard)?
I have some samples of a simple Android app calling an Content Service URL. You have to publish your apps to be accessible publicly.
https://github.com/entaq/GoogleAppsScript/tree/master/Android
By "excel sheet" you mean Google Sheets, right?
From what you explained, it seems that you script is published as a web-app. To access it on android, just open the browser and hit the app url. Running as the developer or the user is just an option when you're deploying the script as a web-app.

can not install apk from email attachment to phone getting parsing error

I have built a test android app and signed it successfully and then sent it to someone to test via email. They click on the attachment in the email on their android phone and get a parsing error.
They have 2.1 android
the test app was built using 2.2
would that cause an issue?
can email attachments of apk files not be installed directly to the phone?
Only would install from webserver link... not from email attachment on one persons phone. So I guess use weblink or market when possible is the answer.
I've had a similar problem - sending the app via email to myself worked fine, but out to a friend failed (they were using Yahoo mail).
I've since put it on a webserver and sent the URL instead - no reports yet on whether that worked, but it may be worth a try.
Prior to Android 2.2 this was not possible in the Gmail app. There are several helper apps that facilitate this functionality on 2.1 and lower, one of which is APKatcher (developed by yours truly). The easiest way is just to send URLs to a hosted copy which you've found.

Categories

Resources