I have a problem with the firebase.auth().signInWithPopup() function it works perfectly in the browser but on a real mobile device its not working at all. The popup opens for a quick second but then quickly closes. I think the problem might be with the OAuth redirect domains settings, because a device dosen't have a domain name. Does any of you have a solution for this ?
Currently Firebase v3 dosen't support firebase.auth().signInWithPopup() and firebase.auth().signInWithRedirect() on mobile devices until then the solution is to use firebase.auth().signInWithCredential().
Related
I am using Firebase Dynamic Link in my app and am seeing issues when they are opened from iOS Safari as an URL.
-Expected behavior: The link leads to the app preview page, where the user can click on the link that will redirect to the app.
-Actual behavior: The link tries to open the preview page initially but loads the website even when the app is installed.
-The issue happens for both actual devices and simulators.
-The link works fine when opened from iOS Chrome as an URL, other iOS apps, and for all scenarios in Android devices/emulators.
I did my research but could find the exact same case as mine. Can someone tell me what might be the issue here so that I can investigate further?
Here is the Firebase Dynamic Link debugger result:
Here are the apple-app-site-association parameters:
{"applinks":{"apps":[],"details":[{"appID":"####.***.****","paths":["NOT /_/*","/*"]}]}}
Can someone help out? Thanks!
For those who might run into a similar issue, I resolved this by disabling forced redirects in the link parameter. Somehow mobile Safari was force redirecting to the website, not the app.
How can I setup dynamic links which are robust like google maps, Twitter or WhatsApp ?
I’m using react-native-firebase v6 for my react-native iOS app
I’m using Passwordless Auth/ SignInWithEmailLink to Authenticate my users but this completely depends upon dynamic links.
I had set this up successfully and and everything was working fine.
But now suddenly the authentication links provided in the email don’t open the app in iOS
What can be a possible workaround that the links always open in the app like Twitter or anything else.??
Because this is one of the most essential functionalities of my app as the user can’t sign up if the link doesn’t open in the app.
EDIT: Apple App site association
Below is the apple-app-site-association of my app automatically provided by Firebase, do I need to change something here??
{"applinks":{"apps":[],"details":[{"appID":"4D4NYZN576.com.realyze","paths":["NOT /_/*","/*"]}]}}
Help would be very much appreciated.
P.S could this be a problem of Safari and the Apple Mail App?
Thanks
I have built a web app (read: a website within a naitive app container) for iOS and Android. I started by adding the website script provided by Google to my app, figuring it would work since it's basically a website hosted within a container. The issue? Well, it doesn't work.
When I access the app from my phone, all I get within the Analytics GUI is that there is a user at page / nothing else despite how many pages I go to. I get the same result if I just browse to the website on my phone. However, if I go to the website on my computer, the script seems to pick up everything perfectly. I can see all pages I've visited and when, for example.
So I guess I have two questions:
Why doesn't the script work as expected through the app on my phone, but perfectly when accessing the webiste on my computer from a technical point of view? Does Google perform some sort of blocking regarding the request headers?
Is there any way to get the website script to work within an app or do I have to use Firebase for long-term and sustainable tracking?
Have in italics since the feeling I get when reading here is that the Google Analytics Services SDK for Android and iOS will probably be phased out sooner or later. According to this post the GA SDK is already deprecated. So using that doesn't really feel like an alternative.
Also, I am not interested in comments like "Why don't you use this analytics tool instead", or, "What's your problem with Firebase? Just use it".
There are two types of Google Analytics accounts. Web accounts and mobile accounts. Web accounts run off of pageview hits. Mobile accounts run off screenview hits. If you insert a screenview into a web account the only thing you will see is page / because its sending the in correct hit type.
The SDK is used for tracking mobile applications so it inserts screen views. You cant use the same Google analytics account for tracking with it your going to need a mobile Google analytics account if you want to use the SDK. You wont of course be able to analyse between the web and mobile accounts.
Cant help with firebase sorry.
I am in trouble with the operation of Progressive Web Apps.
First, I pressed "Add to Home Screen" on the web, added the application to the home screen, and gave permission for push notification.
After that, I uninstalled Progressive Web Apps from the home screen, I expected that the notification will not arrive, but in fact it gets notified.
Can I detect uninstallation and reject push notifications?
I tried searching including the following site.
For example, but there is nothing expected of event or status.
Although it is an attachment of the home screen after uninstallation,
A Google Chrome icon is displayed in the notification bar.
home screen image
Based on your comment in response to the other answer, I figure you are building a progressive web app and want to implement this feature (turning off notifications on removal from the home screen) in your own PWA?
Currently (October 2017) there is no way for a PWA to detect if a user has removed it from their home screen. There is a way for the PWA to detect if it is uninstalled (as in the service worker is removed from the browser all together) but that is something totally different. You aren't uninstalling the PWA when you remove it from the home screen, you're just removing a shortcut. The PWA is still installed in the user's browser. They could still manually visit the site and your PWA would still be working.
Maybe this will become a feature in the future. For right now there isn't even a way to create a hack that would help.
If you navigate to the web app in question using Chrome for Android, either directly or by tapping on a notification, you can manually adjust its permissions by tapping on the "Lock" icon next to the location bar, then choosing "SITE SETTINGS", and then making changes there.
The specific steps to do this would vary if you're using a browser other than Chrome.
I'm trying to use firebase for first time but the console isn't opening through my google chrome or firefox. I tried to open console through my mobile it opens but not from laptop.
Open firebase site in chrome, then click to inspect option and switch to mobile emulator, and reload the webpage, now you will able to see firebase home page...!
Exit the mobile emulator to see full page.
see this image for mobile emulator option
Make sure you haven't logged in on another device.