IBM Worklight - How to use Custom Server URL? - android

When you install a Worklight application onto an iPhone, in the settings there's a parameter "Custom Server URL" you can use to change the Worklight Server the app is to connect to.
I was wondering if there's such a parameter you can change on the fly on an Android device as well, or do I have to redeploy the application every time I want to change the server?
I was also wondering if it's possible to disable this feature? I'm thinking in a production scenario I probably don't want my users to be able to change the server they're pointing to.

Indeed, the Worklight Settings feature is meant only for development time, and should (I would say even, must) be turned off when moving to production (if the intended end-user is the Public and not in-house employees where it may be useful for specific use cases...).
It is available for both (and only) Android and iOS in application-descriptor.xml in their respective environment nodes.
You need simply change its value from the default true to false.
In iOS you access it from the Settings.app
In Android you access it by tapping on the device's physical Menu button

Related

Android application like the Mobile Browser Version

I have a question about creating an Android application.
I have a website (dating service) and it has "Desktop Version" and "Mobile Browser Version". These two versions differ in design and few functions (but they are one, one registration for one user). I want to make an Android application like the "Mobile Browser Version", so that it is also connected with my website (one registration for one user).
How to do it?
I installed Android Studio and connected to Firebase.
You can do two things (easy and hard )
1) easy way is if your website is responsive then you can use a webview of android with your website link that don't need any other customization.Just one splash screen and a webview in Mainactivity.
2) (Hard one) you can make API to pull and push data from/to database,this need, you have to make app from scratch and need some times.For this you must have deep knowledge about Retrofit,Recycleview etc
If you have already have a database connected with your website then you need to make an API service to connect android application with your website. You can restrict users having multiple accounts by making their email or mobile number primary key if you have a relational database. or you can use firebase but you also need to connect the website with the firebase account otherwise it will act like a separate service.

Not getting any idea about the workflow of managing an android device from another device using an pre installed android in both devices

I have a new project at hand where I need to make two android applications
1)Main Controller application (be installed in one device say its name be X)
2)Sub Child application (be installed in devices that need to be controlled by X )
So I want to get an idea/picture about how one android device like (2) can be managed fully(i.e. blocking applications or making them accessible for some interval / block calls / track location of user ) from another device like (1). So far I searched Google ,asked my seniors about the same but none was able to help me out.Found many scattered info (like need enterprise app to do this i.e use android management API or Device admin ) but not being able to get any clear idea about the work flow.
Thus now this the last place I can think of for helping me out with this work flow.
Reference
Update: Based on what #Fred said i.e. to use android management API (also based on the answers that he posted here) could we somehow have own custom web server and manage the interactions that EMM console does with all the child apps through our own API's(the same API's which we would call from the parent app.) ???
In other words instead of controlling form the EMM console, I would like to control those child application from another parent android application.
By FCM or Socket programming you can easily communicate with other app. Suppose 2nd app receive a call then 2nd app call a api of server about the information, then server knock 1st app by fcm or socket, then 1st app make a decision and submit the decision to server by API, And finally server submit the decision to 2nd app by FCM or socket.
You can check out the Flyve MDM which is an open source mobile device management solution including both agent app and web panel for management.

Best way to manage ios and android applications simultaneously

When I build a web application, like most others, I simply build an admin area from which the client can control their site.
Most applications I build for android never require this kind of maintenance as they are all self contained. However Something I'm extremely curious about, say you build a cross platform application that does require constant maintenance; you've got 2 versions - an iOS and android version. What would be the best way to go about managing both applications from the same place?
For examples sake, let's say you build a real simple application. It could be something that once a day sends you a message, "hope you're day is going well" or "let me tell you a joke". Now what if those messages were hand typed and submitted to the applications, you want to log into a system, type the daily message in and both applications are simultaneously updated with the new message.
In my head I'm imagining you would need to build a dedicated admin system either as a web application or standalone desktop application that connects to the apps hosted database however I'm wondering about how well that would work, what kind of problems are you going to run Into, would it even be feesable?
I've never had to build something like this but some of the more recent web applications I've built would work well as straight forward applications and that just gets me thinking, if I was asked to turn them into apps that function the way they do already, what would be the best way?
It's something I'm really curious about and feel like I need to get my understanding on the right track.
I think you are describing an application for an admin that will set up (write) data to be used by users of Android and IOS apps. Few options:
Write the admin application as a regular web application. Be careful to use transactions in the code that writes to the database. That is to avoid inconsistent DB states when your admin applications DB writes interleave between mobile app reads. Also you have to secure the admin REST resources (API end points) for admin access only, so you would need authorization code in the app.
Write admin apps for the mobile platforms (or an admin section in the existing app that is properly authorized in the app code) and the server API end points. That is more tedious because of 2 platforms. Again you will need the DB transactions and authorization code
Write separate admin apps for mobile but with one framework (Xamarin). It will work for simple apps and yours sounds simple enough for Xamarin to work well.

How to use Managed Configurations in an app that may not have a Managed Configurations Provider?

I am developing an app that will work in 2 different Android environments (consumer & corporate markets). Lets say it is a texting app with a dozen configuration parameters to manage.
The first environment is a standard Android device that has no Android Enterprise (AfW) features enabled. So there is no EMM (MDM) to supply an Android Agent/Client app to be a device/profile owner implementing a Managed Configurations Provider.
The second environment is within a corporation. An EMM (MDM) is used to manage all their corporate owned devices. The EMM is either a device or profile owner. They are set up to use Managed Configurations and require remote configuration of this app.
To support both of these cases, how should this app retrieve configurations?
My current thought is to check if the instance of my app belongs to a device or profile owner. If it does, I will use managed configurations. If it doesn't, it will allow on-device, within-the-app configuration using SharedPreferences.
I believe this will work, but seems too much like a hack. It also restricts a company using a device/profile owner from giving their users control. I imagine other Android apps must be starting to encounter this situation with the adoption-rate of Managed Configurations increasing. Is there a better solution for this scenario?
You can always call RestrictionsManager.getApplicationRestrictions(), whether the device is managed or not:
if the device is managed and the company has configured the app, it will return the configuration,
if the device is not managed or if the company has not configured the app, it will return an empty Bundle and you can give control to the user.

What API could be used to sync an Android app with a Windows application

I want to write an application on both Android and Windows that behaves somewhat like dropbox or evernote. The functionality that I need to implement basically allows someone to upload data from an Android app and updates a remote user running said Windows application. Here's a simple use case/example:
The mobile device user uses said Android app to indicate his/her global positioning coordinates.
Those coordinates are sent to a server somewhere by the Android app.
The server updates registered Windows client applications, stating that new coordinates have been submitted by a mobile device user.
The Windows client application can then view those coordinates on a map.
More to the point, the idea is to implement some functionality where a mobile device user can submit data and have that data accessible by some kind of remote control center that runs Windows. Also please refrain from mentioning a GPS-specific API as the example I have mentioned is only that, an example.
Many Thanks!

Categories

Resources