I am developing an Android app that demands a signed-in VPN connection to access it. The problem I face is that, most of the end-users do not have any knowledge of creating a profile in some VPN, and then to connect to the app.
Is there a way to create a VPN Profile programmatically, and then Connect to it after the creation?
What I understand from your question is that, in order to access the app you are developing, it has to get signed-in to a VPN. If I am right, then you are typically in search of a Third-party API like facebook, twitter APIs, through which you should connect to your app. I suggest you to search if any VPN provide such kind of API service.
Related
I'm trying to connect to a VPN, in order to have permissions to some web services that I request using HttpURLConnection. I need to enter the server and the credentials to the VPN, but I have no clue how to do that. I'm concerned that exists the vpnService but I didn't find how to use it and mainly how to pass credentials to it. Can you guys help me?
I want to establish the connection to a VPN from my university and, once did it, make the connections pass through it. I did it manually at the phone and It worked. Now I want to do it at the code so people that uses my app don't need to do that.
Edit: I just want to connect to a vpn programatically, instead of doing it through the vpn settings at android's settings menu.
Working on an Android app which utilizes ArcGIS Android SDK. In the project, I am having a requirement where in I need to show some maps of our client. Those services are all secured and can be accessed only via VPN. The VPN server type is Juniper for which I had installed Junos Pulse app in my phone. Made the VPN connection in Junos Pulse app. Trying to make a ArcGISTiledMapServiceLayer instance by passing the URL of my client's map service. But it's giving me EsriSecurityException.
Would like to know is my app not able to recognize the VPN connection made in Junos Pulse app? Other than providing the credentials (while making the VPN connection) do I still have to pass the credentials by my app as well? If yes, in what format?
Can somebody please guide on how can I utilize some secured Map Services of a particular domain?
Thanks.
Get your VPN connection working and your ArcGIS services will work. This is a problem with Junos Pulse, not with ArcGIS.
I want to off mobile data for some specific apps,what I want is that if my mobile data is on then I can allow only whatsapp to access,no other app. I know its possible because some apps for same are available on google play but I am not getting any code for the same. I have googled a lot.Any help is appreciated.
Go to Settings > Data usage then you can see app usage and select each app and turn on restrict app background data.
You can make a VPN application. Within the application you can make a list which apps allowed to access internet and which apps not to allow it. Make sure the connection is through that VPN application. Then filter the connection in your VPN based on the lists
You can use VPN, build your own server and transmit all the traffic through that server, than you can filter all the traffic.
Maybe you can google "OpenVpn" or "ToyVPN" in android's sdk for some ref.
I am developing a application for mobile (iPhone and Android) maps based for a company. The company has deployed a wireless network to allow, by subscribing, internet access.
The idea of the mobile app is to give internet access only to that specific app to any ones that have it. In other words, company wants to allow to application to connect to this network.
My question is: is it possible to give access only to a specific application and what would be the most appropriate way? Is the app that "recognize" that network or network is in charge of give access to that specific app?
Any suggestion is very appreciated.
If you want to provide only app to connect to any network then you need to put some rules in IPTABLES in linux core (this needs your application to have root access) just like the firewall applications for android that monitors UIDs of applications accessing network
But you can do it the other way, implement some server calls that the particular network of the company will only be accessed through that particular app, Use some validation in http requests such as maintain a unique ID to differentiate your app/user that you can create during registration and during interacting with the network use the key for validation.
Generally speaking, a regular WiFi network won't have any facilities to allow a single application to access it. The mobile device OS associates itself with the WiFi network, and it will allow all applications to access it.
You could, however, use a proxy server that requires authentication. You could then build the authentication keys (for example, a client certificate) into the application such that only the application will be able to communicate through the proxy.
You know there are internet providers that require log in though a website. Most common examples are the coffee shops, or airport points, or hotels.
It's ok for your laptop because you can use a browser and you are done, but what if you wanted to use your android apps in your phone? how you set the auth data to them?
does anybody knows an app which will allow me to do that? e.g. set the needed auth to let the rest of the apps run without a problem.. I'm thinking of a proxy but not sure if it is what i need here..
thanks!
The way those authentication points work is that most traffic through the access point are dropped until the user opens their browser. The browser's HTTP request is ignored and the gateway page is displayed instead, and once the user accepts the terms of service, or pays, or whatever, the packet filter is disabled for your device.
This means that an app that's authenticated to the hotspot can run any kind of application over the network without the application being aware of the hotspot's specific security model. However, it does mean that you'd need to put a browser in your app and use some fairly fuzzy logic to determine when to show it.
Most of the time, the user will know when he or she is using this type of provider and will know to login through the android browser first.