I am working on an Android login app for a service called Netclassroom. There are many for different schools (you can google for one), but I'd prefer not to share the one I'm working on. They're all the same. I want the app to log into the site using given credentials, but I'm running into a problem.
The problem is that it "does not use authentication" and the post request doesn't work? Is it even possible to log into a site like this? By that I mean that I want to enter credentials and get to the member page to parse.
You can make an app that just starts the browser on a particular URL. Here's a post that describes how to do it,
How can I open a URL in Android's web browser from my application?
Further, I think you are asking if the app can circumvent the normal web page login mechanism. Don't do that. There's a login on the web page for a reason. If your app gets around that, then it's decreasing the security that the folks that designed the web page put in place. The correct thing to do is to work with the folks that wrote the website. If they think what you are doing is acceptable, they should make their login cookie longer-lived, or allow the user / pass fields to be stored in the browser, etc.
Again, there's absolutely no rational for making the android app less secure than the browser app.
Related
An unauthorized person has created an android app on our name, logo and showing our website content as is. It has fully functional browser experience in an app. This person is using advertisement to make money using our content.
Our Website: http://www.chittorgarh.com
Fake App: https://play.google.com/store/apps/details?id=davidjack.chittorgarh
What we did in last 2 days:
Complaint to Google. No response so far.
Sent emails to fake app publisher. No response so far.
Created our own official app using exact same way and made it live. We will start pushing it through our website soon. It’s not what we want but do not see any other option.
https://play.google.com/store/apps/details?id=ipo.chittorgarh
Question: How do disable all the traffic from the Fake App?
Tried User-Agent but no luck as it’s exactly same as someone opens the app in chrome on android.
It is basically a web browser within an app, so there isn’t any way around this, if it’s publicly accessible via the web then it’s available to anyone to access or implement within a web view.
All you can do really is create your own app, and add a message regarding the fake app on the homepage of your website.
Is there anyway to track visits that come from facebook app ?
I tried php http_referer but it didn't work.
You won't be able to do it unless Facebook decides to add a referrer when it sends the URL out of the app and the users' OSs and browsers receive it and pass it along. Referring URLs are passed to the server by the browser and, due to increasing privacy concerns, are slowing disappearing in general.
If you're curious about where traffic to your site is originating, you're going to have to ask the user directly unless you work directly with Facebook on some type of integration.
I want my app users to be able to share one of the app pages to others as an external web link as a good marketing strategy, so people who don't have the app can view this page and get excited hopefully to download and register although no one can view the app without signed in, for now I have the app and its web domain I didn't build the website yet, What is the efficient way to do so ?
You can write some code on the server to receive the data, store it and then serve it back (php/mysql or java or anything else). The easiest way to do it is to make a form and to send a request from the android app to simulate a filled-in form.
You could also just publish to Facebook or Google+, there are APIs to do that from and Android app.
This is what I'm trying to do:
1. I have a tablet and I want to connect to the university's wi-fi to access internet
2. Connection to the internet won't work unless you open a browse
3. You are automatically redirected to a university username-password page
4. You type in your university credentials and boom => you have internet
Problem??? I hate to have to put my password every single day and although chrome for android can store it I still have to open a browser, etc. etc. etc.
Solution:
Use Selenium, WebDriver, HtmlUnit or some sort of headless browser to programmatically fill in the login form in the background.
Problem 2: These headless browsers don't work on Android (Or I haven't been able to make them work)
Does anyone know of a simple headless browser that works on Android devices, one that can fill a simple form and submit it? Are there other alternatives to what I want to do?
Thx in advance for the help.
Some related Questions: HttpUnit/HtmlUnit equivalent for android, Android: Fill Form Data and Extract HTML, Html Parsing in android
How does the University validate you once you've logged in? e.g. is it based on setting cookies in your web browser? What happens if you login with another web browser once you've authenticated in the first one?
Once you know how it authenticates you, you should be able to devise a suitable approach. For instance, if it's device-wide authentication e.g. based on your mac address then perhaps you can write a simple Android app that embeds a WebView, and/or plain old HTTP request / response programming in Java. If, however, it's browser based then you either need to login (automagically) with the browser you then want to use, or find a way to insert the relevant cookie(s) into the browser that you want to use for web browsing.
Hello I am creating an app for phonegap on android and I wanted to see how I can make a user login section. This section should let them register with a username and password and enter their email or just login if they already have a username . Also do I need a website to hold all of this data?
Thanks!
you need to try things before coming to SO.
BUT to point you in the right direction.
1) create a simple restFUL API that lets people sign up
2) use Local storage to store that info on the users phone
3) each time the app launches, do an ajax request to your server with the localstorage username and password
4) Let user do what ever.
It's really quite a simple process - as for your hosting question depending on what you see usage being... if your app is going to be getting a lot of traffic you should consider a cloud based solution. Amazon will let you quickly scale the app and automatically take care of load balancing, Heroku is also pretty good at this. On the fly scaling as well.. Lastly getting a host like Bluehost is a good option - flexibility, and reliability - also a good price.