I am new to mobile development. I have a web app for which I now need mobile app. I am using Cordova for it. The problem is once I have logged in I want to have different views for web/ mobile user. How do I redirect of cordova specific views once logged in? Thanks for help in advance.
Asked
Active
Viewed 19 times
2 Answers
0
If I understand your question, you want to add a sort of authentication that will enable you to render a specific view based on a user's current state. Say login view if they are not logged in and then probably the dashboard if they've previously logged in. Am I correct?

Joshua Chinemezu
- 36
- 1
- 5
-
I have user authentication in place. When mobile app is started it is reirected to web target : var targetUrl = "http://localhost:XXXX/"; Which takes care of login. My problem is once logged in want web user and mbile user to have different view. HOw do I do this? Or should I not redirect to web in first place and have new login for mobile, but would not that defeat one codebase purpose? – DS2020 Sep 30 '18 at 13:36
0
Check out this answer,
I think it can help you with what you are looking for

Joshua Chinemezu
- 36
- 1
- 5