Hi,
Could you explain more about the case?
By default the Hybrid app is a single page app. There are no redirects done (to login.html like in a web app), but the login html elements are in the index.html and a login screen is shown when the user must login.
Btw, it is also possible to create a build of your app via phonegap which connects to you local machine by changing the Mendix url in the index.htm of your hybrid app. Also, Weinre (for debugging) can be enabled via the settings when you build your app on build.phonegap.com
I would recommend another approach where you use a microflow that has anonymous user as role and that MF opens a page with a user role. This will trigger the client to open the standard mobile login screen, so no redirecting is needed because the platform will handle the authentication.
My suggestion, to really test your app with own config: build a test App pointing to your local IP. So in index.html change the Mendix cloud URL to 192.168.1.whatever:8080. Build your app ones, install it and now you can develop locally as long as your machine keeps the same IP address. Your phone has to be on the same WIFI off course.
This works very well for me, with a lot less issues.