I have a simple web app that let's user register and login using firebase as my backend (let's say www.my-app.com). I am thinking to deploy it to IOS and Android to to achieve additional feature such as push notification.
I think it would be great if the following would work but I am not sure if it is possible
Create an ionic app that consists of mainly just one big web view that covers the whole screen.
When the user opens up the app, he sees the login screen from www.my-app.com and enters his details.
At this point, I'd like my ionic app to capture whatever the user does to the web page. For example, upon successfully logged in, the ionic app should be able to grab the login details from the user input (email) and go and register for push notification using that email.
So in other words, is it possible to communicate in and out of the web view such that I can achieve tasks like
- Use Ionic's framework to programatically input a text field inside the web view to 'Hello World' when the page is loaded.
- When user logs in to www.my-app.com, firebase returns some data to the webpage(First Name Last Name for example). Then do some logic that is outside the web view such as show a ionic popup with 'Hi John Doe'
I understand there are draw back for doing a web-view as an app. However, it would be really cool if this is achievable as this will significantly reduce production time for straight forward form-based web page.