Flutter Build APK - Firebase disappear - firebase

This is the normal view that I should see, but when I build APK and install it on the phone this happens.
This is a listview of a stream builder it loads from a firestore the app works fine until the moment I try to use the APK version.

Related

Unity macos xcode with app sandbox problem

Unity editor version: 2021.3.17f1 and 2021.3.15f1
Firebase Unity SDK version: 10.4.0
Source you installed the SDK: .unitypackage
Problematic Firebase Component: Auth
Other Firebase Components in use: Firestore
Additional SDKs you are using: -
Platform you are using the Unity editor on: Mac (for mac build) and Windows (for win build)
Platform you are targeting: Macos and Windows (iOS, Android, and/or desktop)
Scripting Runtime: Mono (Mono, and/or IL2CPP)
Pre-built SDK from the website or open-source from this repo: website
I built my Unity project with Firebase for both MacOS and Windows platforms. Both sides are working without any problems, but I want to sign my project on MacOS, so I need to add an app sandbox. After adding the app sandbox, my project crashes at the following line:
Image
source file of this crash is "google-services-desktop.json and google-services.json" if i remove this file by xcode it doesn't crash but firebase is not working.
Image
Image
Image
I moved the "google-services.json" and "google-services-desktop.json" files from within xcode to get them out of appsandbox. This saved my game from crashing but I couldn't access firebase.
i tried with latest xcode version
I didn't intend to upload it to the App Store, which made the app sandbox optional for me. I found that the application can be signed without the app sandbox by using the DeveloperID. I solved the problem by turning off the app sandbox.

Cannot get Firebase working for Xamarin Forms iOS

I am using Visual Studio 2019 on Windows, developing an App using Xamarin Forms, for Android and iOS. Everything is the latest version.
I am trying to use Firebase to add Push Notification functionality. I have been able to get this functioning for the Android App, but whatever I do seems to fail / not work for iOS.
I have tried using both Xamarin.Firebase.iOS.CloudMessaging and Plugin.FirebasePushNotification with the same result. Starting from a basic app created in Visual Studio, as soon as I add the basic code for the iOS project, the app stops working and just times out after 17 seconds with running any of the project code (no breakpoints are hit).
I also tried downloading this demo app https://github.com/jfversluis/XFFCMPushNotificationsSample. I created my versions of google-services.json (Android) and GoogleService-Info.plist (iOS). The Android app runs but the iOS app does not (times out after 17 seconds).
Having tried so many different samples, examples, options, etc - I am at a complete loss as to what the issue might be. The situation is not helped by me being new to App development & Xamarin Forms!
I appreciate that I haven't added any "I tried this" code, but I'm hoping someone can help me with debugging this. Visual Studio doesn't appear to show anything, can I get more helpful info from the iPhone?
Edit:
For iOS,
I have created a Key and enabled Apple Push Notifications.
I have uploaded the key to the iOS project in Firebase (Cloud Messaging).
I have downloaded the GoogleService-Info.plist file and added it to the iOS project in Visual Studio, and set it to BundleResource
I have enabled Push Notifications in Entitlements.plist
I have enabled Background Modes & Remote Notifications in Info.plist
I am using Automatic Provisioning
I have checked that Bundle Identifier is correct
I have added FirebaseAppDelegateProxyEnabled to info.plist
EDIT 2:
I have manged to get an error message, which happens during the call to
FirebasePushNotificationManager.Initialize(options, true);
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.FirebasePushNotification.FirebasePushNotificationManager.Initialize (Foundation.NSDictionary options, System.Boolean autoRegistration) [0x00029] in /Users/runner/runners/2.169.1/work/1/s/Plugin.FirebasePushNotification/FirebasePushNotificationManager.ios.cs:141
at MyApp.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00014] in \MyKRing.iOS\AppDelegate.cs:34 }

Flutter Web App Blank Screen in Release mode

I have a Flutter Web App which renders just fine on running
flutter run -d chrome
But if I run flutter run -d chrome --release It gives me a blank screen.
How should I sort out this issue?
flutter build web
use this code

How to Sync Project with Gradle Files when Adding Firebase to Flutter Android App in Android Studio (April 2020)

Edit: This question refers to Flutter apps.
When adding Firebase to my Android app, the instructions say: "Finally, press "Sync now" in the bar that appears in the IDE"
However, no bar appears in Android Studio.
It seems that there used to be a button in the tool bar: Where is a "Sync project with gradle files" button in Android Studio 3?
And that more recently it could be found at "File > Sync Project with Gradle Files": Syncing Android Studio project with Gradle files
But neither of those options exist in Android Studio as of April 4, 2020. The closest thing I can find is an item in the dropdown menu that says "Sync with File System."
I thought maybe it was the same thing, but they are not:
What is the difference between Sync project with gradle files and Sync with File System?
Any ideas how I can sync project with gradle files in Android Studio in April 2020?
Thank you!
According to your picture, it looks like you are using flutter and not native android development. If you want to add firebase analytics to your flutter app then you need to go to the pubspec.yaml file, and you can add the dependency:
dependencies:
firebase_analytics: ^5.0.11
After adding it a top bar will appear to that will automatically execute pub get
https://pub.dev/packages/firebase_analytics#-installing-tab-
what I do is open the android folder of our Flutter project as a new project,
** Archivo> Abrir> Proyect-android **
in this way the IDE recognizes it, and enables the Gradle synchronization button ( only enabled in native android projects)
Image Example
once synced, you can close the native Android project, and it would be synced to your Flutter project

React Native Firebase. Platform specific installation. Where to get bundle ID?

I am on the step of platform specific installation, iOS.
It is said in instructions:
A GoogleService-Info.plist file contains all of the information
required by the Firebase iOS SDK to connect to your Firebase project.
To automatically generate the plist file, follow the instructions on
the Firebase console to "Add Firebase to your app".
I enter the console and press "Add Firebase to my iOS app".
There I should enter some required iOS Bundle (packet) ID. It is said that I can see it in my xcode project. But I do not use xcode, I use react native. Where I can find this ID?
Open up your project under
projectroot/ios
Click your project from the folder menu, select your target and go the 'General' Tab.
Under there you will find the 'Bundler Identifier'.
I've figured out by myself what to do.
I've used react-native init projectname to create react native project.
In this case android project and ios project are created in root directory in android and ios folders respectively.
You need to open ios folder in Xcode and in General tab you can see the ID (as Brockify told; the only thing he didn't tell me - how to create ios project).

Resources