Business mobile app login using user name and password help

I am a new user and want to create a mobile app for an energy company where customers can log in and view their bills and payment history. Also make payments. How do I connect a database securely?

They already have a regular website can I just do a showwebpopup to their site?

function myButton:tap (event)
if ( system.getInfo( “environment” ) ~= “simulator” ) then
native.showWebPopup( 10, 10, 300, 300,
http://www.potentiaenergy.com”,
{urlRequest=listener} )
end
end
myButton:addEventListener(“tap”, myButton)
[import]uid: 70084 topic_id: 11508 reply_id: 311508[/import]

You could, but that would make your app kind of pointless :stuck_out_tongue:

I’m guessing the main idea is to reformat the content so that it looks better on the device. You could make a local web page which posts the info to their site and parses the response. [import]uid: 8872 topic_id: 11508 reply_id: 41920[/import]

Thank you for your reply could you be a little more specific as I am still learning.

What exactly do you mean by local web page?

How do I parse the response?

Is there a way you could recomment besides this to reformat the content? [import]uid: 70084 topic_id: 11508 reply_id: 41930[/import]

If you just open the web page inside a web popup, the app doesnt not actually do much. People will quickly realise that its just opening a web page and give u bad ratings.

Its not necessarily bad to use an existing site inside an app, but the key should be for you to reformat the site so that it looks better on a small screen

You can make a web page, as you would on a web host, but store in with your app. So you may have index.html stored in the app folder and inside the webpopup you would open index.html - the local file. This file may have a better formatted page. Any data you enter into it would be sent to the real page on the web.

The problem with this approach is that most pages are server generated depending on the data posted. Therefore when you entered the username/password for example the server would push you back a new page of the main menu for example, but this would be a desktop sized page. You would need to scan through this page to get relevent information and recreate a new ‘mobile’ page from it, and display that in your web popup.

This approach isn’t easy, even for an expert. If you dont understand what i’m talking about, then this is probably above your skill level. You would need to understand javascript and at the very least how pages are formated and form post methods.

One other thing I would say tho. People are reluctant to enter username/password/billing information into a third party app - and for good reason. You should think hard about if this is really worth persuing.

Typically this would be done with the consent of the engergy company and they would generate some kind of interface for you to connect to. [import]uid: 8872 topic_id: 11508 reply_id: 41932[/import]