You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
I'm making an Android app with framework7 and I'm stuck. I think it worked a few days ago so I'm afraid om doing something wrong. So probably not a bug. :|
The user clicks a link, my app should check if the user is logged in. but this fails and user is redirected to a login page, because the user is undefined.
EDIT: The logout is also not working. It looked like it worked, but if call firebase/auth directly I'm still logged on.
Expected behavior:
The user clicks a link, my app should check if the user is logged in. If the user isn't logged on they should be redirect to login page, otherwise the content page if the content is bought.
When I run my app in the webbrowser I don't encounter problems(user is null if not logged on). I can also login succesfully in the webbrowser and in my android app.
I was thinking maybe it has something to with my Content-Security-Policy. This looks like this:
Hi @kabouter,
thank you for your request.
From what I see in your code, it should work.
I would have to look at your code and configuration to be able to help you further.
Please provide a Minimal, Reproducible Example (see How to create a Minimal, Reproducible Example).
I was thinking maybe it has something to with my Content-Security-Policy. This looks like this:
Does an error appear anywhere in the Developer Console or the Network tab?
Can you remove this tag for testing?
I stripped everything and had only auth things left. I still had the problem.
I changed from firebase web to Firebase Android.
Now it is working. User is still undefied when not logged on, but that is not a real problem. When logged on the user is no longer undefied.
I'm making an Android app with framework7 and I'm stuck. I think it worked a few days ago so I'm afraid om doing something wrong. So probably not a bug. :|
Plugin version:
@robingenz/capacitor-firebase-authentication": "^0.4.0
firebase": "^9.6.3
Platform(s):
Android 11
minSdkVersion = 26
compileSdkVersion = 30
targetSdkVersion = 30
Current behavior:
The user clicks a link, my app should check if the user is logged in. but this fails and user is redirected to a login page, because the user is undefined.
EDIT: The logout is also not working. It looked like it worked, but if call firebase/auth directly I'm still logged on.
Expected behavior:
The user clicks a link, my app should check if the user is logged in. If the user isn't logged on they should be redirect to login page, otherwise the content page if the content is bought.
Related code:
Other information:
When I run my app in the webbrowser I don't encounter problems(user is null if not logged on). I can also login succesfully in the webbrowser and in my android app.
I was thinking maybe it has something to with my Content-Security-Policy. This looks like this:
Capacitor doctor:
The text was updated successfully, but these errors were encountered: