The container app sample published by Google does not work properly - firebaseui

I want to create an app for login authentication using firebaseui in Cloud Run.
So, at first, I executed all the items after "Contributions" of the following URL published by Google.
However, on the screen of the created app, only the characters "Loading ..." were displayed.
Please let me know if there is any other work required.
https://github.com/GoogleCloudPlatform/iap-gcip-web-toolkit/tree/master/authui-container

Related

Firebase Dynamic Link isn't handled in ios app

I am using Firebase Dynamic Links to handle deep linking into my ios app (from external links) and this works fine.
My issue is when I try to handle a dynamic link that has been launched from inside the app. In particular, I am using Firebase in-app messaging with a dynamic link as the action on the card button.
I have added the capabilities and URL scheme to Xcode. The documentation states that I use the Firebase app bundle as the URL scheme value. The only thing that isn't clear is whether this means the Firebase project id or the dynamic link domain which is the one set in the capabilities tab as the applinks: value.
When I tap on the button to launch the dynamic link it does recognise it as a dynamic link (because it doesn't just open my hosting domain in the browser), but it redirects to the browser first and asks me if I want to open the app (that I just came from).
Does anybody know how to configure this behaviour so the links don't ask you first? Would this then immediately handle the link in the app?
UPDATE
I was able to get the app to handle the dynamic link immediately in the app by skipping the preview page. You do this by manually constructing the link and setting the efr=1 parameter. This article explains it all: https://firebase.google.com/docs/dynamic-links/create-manually
BUT - although my app was handling the deep-link, it STILL redirected to the browser where it attempted to load the web.app domain from hosting.
I feel this could be something to do with the URL types setting in Xcode which if set properly should prevent it from trying to handle links in the browser.
UPDATE UPDATE
For some reason, this just stopped redirecting to the browser and I have no idea why. I watched a Firebase video and the guy did mention something about iOS being weird, and that Safari can break dynamic links and he recommended always testing them from the notes app. Weird. I wonder if something got pwned somewhere. I will write up an answer. 👍
Not entirely sure why, but this just started to behave. The dynamic link I am using in the in-app messaging campaign is the long-form URL with the efr=1 parameter to skip the preview page in the browser.

Flutter app stuck loading right after splash screen fades away

Has anybody had anything similar to this happen with a flutter app build? It works half of the time with log in credentials and when I try to use a different person it starts the loading screen and stays stuck there. I’m using firestore for the Authenticator and the database for the app.
I'm not sure what this means: "I’m using firestore for the Authenticator and the database for the app." I'm guessing you're just a bit new to firebase. Check out Net Ninja for some good starter material. You probably have logic issues in your app.
Figured it out. I was wanting to manually enter individuals login credentials from my Mac into firestorm but for some reason it wouldn't recognize it. Created a registration page within the app project and now everything works like it's suppose to.

How to shorten a Firebase Dynamic Link using my own domain name

I'm trying to implement Firebase Dynamic Links in an iOS app. The goal is to have a clean URL for marketing purposes so folks can share links on social media. The idea is folks will share the clean URL that starts with my domain name.
When the app is installed following a click on that link, we want to be able to track who referred the app install by looking at the payload delivered by Firebase. I think this goal is similar to Firebase's use case to convert web users to mobile app users.
An example link I would like to provide for sharing on social media is: http://example.com/my-payload-here
I've tried several cases but I'm not able to get the behavior I'm looking for in any case. Has anyone implemented this successfully before?
Here is my test procedure:
Uninstall the app
Send the link to be tested in an iMessage to myself
Tap the link on my iOS device (not using a simulator)
Install the app from the App Store
Launch the app after download completes by tapping "Open" button in the App Store
Below are my findings:
Short link generated from the Firebase Console (https://xyz.app.goo.gl/ABCD) - Link opens in App Store. I install the app. When I launch the app after installing, the payload is not delivered. If I quit out of the app, go back to the link in iMessage, and launch a second time, the payload is delivered.
Long link identical to the "Long Dynamic Link" from the Firebase console for the link generated in #1 (https://xyz.app.goo.gl/?link=http://example.com/my-payload-here&isi=12345&ibi=com.example.MyApp) - behavior is identical to #1
Short link using my domain (http://example.com/redirect/my-payload-here, configured to 301 redirect to URL in #2) - Opens in App Store. I install. When I launch the app after installing, the payload is not delivered. If I quit out of the app, go back to the link in iMessage, and launch a second time, the link still goes to the App Store.
Some questions I have:
Why isn't the payload delivered on the first launch for cases 1 and 2?
How can we make this launch the app and deliver the payload instead of going to the App Store?
I've also consulted the Firebase flowchart for the deep link in case 2.
Google Firebase team added support for custom subdomains to Dynamic Links.
You can now specify up to five custom page.link subdomains for your Dynamic Links. Short links using these new custom subdomains look like the following example: https://example.page.link/abcXYZ
Firebase Dynamic Link domains assigned on projects couldn't be deleted at this time.( firebase team is working on it.)
You can now whitelist the URL patterns that can be used as a Dynamic Link's deep link (link) or fallback link (ifl, ipfl, afl, ofl). If you define a whitelist, Dynamic Links won't redirect to URLs that don't match a whitelisted pattern.
You can try both of these features in the Firebase console.
This is not currently possible with Firebase. If you need whitelabeled URLs, you either need to build it yourself or use a more powerful link platform like Branch.io (full disclosure: I'm on the Branch team).
To answer your questions specifically:
I have implemented Firebase Dynamic Links in a testbed app and can confirm that linking through installation the first time does work for both long and short URL variants. There is likely something wrong with your AppDelegate config, so we can take a look at that if you want to share code.
Firebase does not support custom domains at this time. In theory (if you can solve the first issue above) you could get this working for first install by using a redirect like you have tried. However, you'll never be able to get it to launch the app with Firebase link data once the app is installed. This is because Universal Links work based on the domain of the link, and don't even request the web destination. Even if you enable Universal Links manually on your own domain, the app will open immediately without ever calling Firebase and the link data will never be set.

Integrating Google Drive with iOS

I'm working on app in which I need to integrate with Google Drive for my iOS App.
So I started following Quick Start. Every thing worked perfectly fine and successfully able to get list of my file with the use of query in GTLQueryDrive class. But problem is that I am getting every thing for using query so for this there is no User Interface for Google Drive (like they can show all files with logos and we can get those file and some delegate may trigger as I also noticed in android integrated project). So
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries.
If possible then how can Integrate or some helping tutorial link.
Looking for help. Thanks.
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries?
It seems what you're looking for is the Google Picker.
It's is a "File Open" dialog for the information stored in Google
servers. With Google Picker, your users can access and upload photos,
videos, maps, and documents stored in Google servers. The selection is
passed back to your web page or web application for further use. You
can read more of that in the
docs.
I have to mention though that the example used is written in Javascript.
If possible then how can Integrate or some helping tutorial link.
Try this iOS Picker demo app from Github.
For additional info about implementing Picker, watch this video from Google.

Using Firebase Analytics and Google Analytics together - iOS

I am trying to add Firebase Analytics (FA) and Google Analytics (GA) together in my iOS app. We can achieve that using Google Tag Manager.
I followed this tutorial https://developers.google.com/tag-manager/ios/v5/#introduction
I setup Google Tag Manager Triggers and Tags correctly. I have chosen "GoogleAnalytics" as the product which is asking when setting the Tag in Google Tag Manager. I assume that, when I fire events using fire base analytics, the same events should appear in google analytics too. It doesn't seem to be working for me. I do see FA dashboard being updated but nothing is showing up in GA.
[FIRAnalytics logEventWithName:#"BtnPressed" parameters:nil];
Any help is greatly appreciated!
A few things to check: Did you set up the appropriate triggers for the event? Did you publish your Google Tag Manager container? Is the container file included in a container folder (not a group), and included in the binary?
Another thing to keep in mind is that it can take some time for Google Analytics events to show up. One way of checking your configuration is to run in the simulator, which will cause Google Tag Manager to log verbosely. If everything is configured correctly, you'll see log messages from Google Tag Manager when you log an event. If there's a configuration problem, you should see log messages indicating an issue.

Resources