I am developing an App where I want to route the user to a input screen when he logs in for the first time and then to the standard login screen when he launches the app for the second time.
Ideas anyone?
Thanks!
I have a sample posted here.
https://github.com/aaronksaunders/simpleKinveyAngular/blob/master/index.html
The basic premise is to use the resolve capabilities on the ui-router to determine if the user has logged in to the app or not. Based on the results, you take a different path in the route
Related
I want to create a Sign in/Log in Page (with Google), but all the tutorials and videos only show how to log in and each time you open the app it asks you to log in. The desired way I want to have it is that If you are already logged in the sign in page shouldn't appear and if you are not signed in or the session has expired then the sign in page should ask you again. Can anyone help with this seeing as it's my first time working with Firebase and the Sign in function.
I have watched around 20 Youtube Videos and tried ChatGPT, but NO video shows you how to not make the page appear again if you are signed in or not. I tried writing an 'if' statement but my code was wonky and didn't work properly. I searched a lot of other places too but it's crazy that no one shows you how to do this -_-. If anyone knows some sort of documentation or a video that does show watchers how to do the desired effect please link it below or please share your code if you have successfully done this before. Much appreciated!
To have your app respond to the authentication state, you'll want to implement an authentication state listener like the one shown in the first snippet in the Firebase documentation on getting the current user.
Instead of calling listen, you can set the authStateChanges() as the stream for a StreamBuilder in your widget's build method.
Also see:
How to use .currentUser method in flutter (which includes a full code sample)
How Can I Get user id in Flutter with Firebase Authentication?
since I'm super new to Flutter, what is it called when you have some access to the application before login, but after login you have access to whole app.
if you don't get what I'm saying, I try to explain in some examples.
When I download an app from AppStore, Google Play.
I can take a look at some part like main UI and other stuff in main page.
but for section, pages and etc..., I need to login to see them.
it shows some property before login and others after login.
what is it called and what is the best recommendation to work with in Flutter?
Many thanks for your time
I think you mean authorization, check this for example Get Started with Flutter Authentication
Hi I'm using the Parse Login Ui to let the user log into the app with facebook.
(https://www.parse.com/docs/android_guide#ui-login)
This is working nicely, however when the user logs out,
and a different user tries to log in on the same device an error message is displayed, saying that the App is not correctly set-up.
It is as if the App is hard coded to be used by only one user (the first one to use it).
Any ideas how to solve this problem would be appreciated.
Thanks a lot,
Bart
found the answer
on https://developers.facebook.com/apps
you have to set the app to
'live and available to other users'
my bad :)
I have an issue where my app shows up in the searches, but it links directly to the app itself.
I have no idea how to link the App Profile page, there just seems to be no flow given users may never even see it.
How do I get the app page to load first?
The app is http://apps.facebook.com/spqtest
The profile page is at http://www.facebook.com/apps/application.php?id=124588877600328
Search results for an app will go to the App canvas page if there's one specified. There isn't an option to change how this works.
[edit] apologies, i was incorrect earlier, it seems that it only goes to the app's own canvas page if you already use the app, otherwise it goes to the information page for the app [/edit]
Now there is a bug and the search result goes to the app directly even if you haven't used the app before. I created a bug for this you can subscribe.
https://developers.facebook.com/bugs/303960602956958
I integrated twitter in my app through oauth engine. When opening the twitter view its displays the twitter login page by default. But that screen not going without login into twitter. When I want to quit that page that can't possibly goback to the previous view. How can I solve this?
I think you working with the example code which u took by googling.As per my knowledge, One example code was designed like until otherwise you give twitter credential, it will show twitter login page.
You just change logic as per your need and do your job.