App Check for Expo/React Native app using Firebase JS SDK - iphone

My Expo based React Native app worked perfectly fine until I added Firebase App Check.
I am using Firebase JS SDK and not React Native Firebase because it is suggested here for cross platform development.
Now how can I get and then send context.auth (link) to Firebase Functions? Or How can I send what Firebase Storage needs to functions manually?
Storage seems to work fine with AppCheck and AppAttest enabled if it's not Enforced but as soon as I enforce it, the app throws a an error every time there is image load from storage that User is not authenticated.
https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck

As I understand, you can't because the JS SDK uses reCAPTCHA and native apps have to use either SafetyNet (Android) or DeviceCheck or App Attest (iOS).
I think the only option is using react-native-firebase instead of JS SDK.
You'd have to use config plugins as described here and then configure the app-check module as described here.

Related

Detect the app version in Google play via Flutter

Google has updated its UI for Google Play Store. I was able to get the app version from a simple request/response for an app with the old UI.
My app is written with Flutter & Dart.
How to detect the app version in Google play? is there any way to fix it.
I got this from Google play via email: If you would like to fetch these details from an API, you may review our Google Play Developer API setup documentation to enable our Publishing API methods. You may refer to edits.tracks method in order to fetch the release versions of all your active tracks.
How to call Google play api from fluttar app and get the published app version?
Best regards

Changing published mobile application developing language from ionic to flutter

I have a mobile application developed using Ionic. Now I want to redevelop it in flutter and publish a new update, would that be possible? will google play and AppStore allow that?
There is no constraint on development language. But,
You need to use same certificates/keys for iOS App
You need to use same key-store/keys for Android App
If you are using local database or file storage, then you should follow the same path in your newly created app as well. If you are using any third-party library to manage the db or file paths, then it may be in different location altogether. (This one actually happened to me. When I migrated my app from a cross-platform framework to Native the database path got changed in release version)

Check if my ionic app has a new version on AppStore and PlayStore

I would like to add functionality to my Ionic based application to check the respective app store for a newer version, and if present, prompt the user to download once (not repeatedly- they should be able to skip and not be nagged). Similar to Siren, but for Ionic and both Google Play and Apple App Store. I see this similar request for native apps and AppStore and this similar request for Play Store, but nothing specific to Ionic. I feel like I could stitch it together using App Version and ajax calls listed from those requests, but that there has to be other people who have done this already and have existing Cordova/Capacitor plugins for this. Also that there may be nuance that a naive solution could fail (ie ajax call fails, app stores change API, newer version is not supported on device, etc).
Is there an existing plugin or code that will implement the behavior described above?
You can use Market plugin in addition to the App version plugin..
I haven't come across a solution which directly checks the app store, instead i have to maintain the app version in my server db and check it at app start.
Here is the flow that can be used..
App Launches
Checks the current app version using APP VERSION plugin
Calls an API endpoint to my server to compare for the deployed app store version (which is maintained in the db)
If the app version is outdated, use the MARKET plugin to take the user to the app store.
A Capacitor alternative to the market plugin is there, but didn't test it out.
Follow Capacitor plugins proposals, for an upcoming solution.

What is a good development setup for Ionicframework

I’m using Ionic with Angular to write an iOS and Android app.
But most of the development I use ionic serve with Chrome, it’s fast and simple.
But now I realized that it’s getting harder when I have to use the native HTTP API to do fundamental things like talking to a rest api on my server. The native HTTP api is working for the iOS/Android app in production, but not in the web app mode I’m using for development.
I know that I there are options like live reload for iOS and Android but they are still lazy in my point of view.
So I’m asking you:
Do you prefer developing directly with iOS/Android emulator/devices or are you also using the web app and found a way around the troubles above?
there is no way you can test native HTTP on the browser. you have to use an emulator or a native device. BUT, for testing UI you can run the command ionic serve --lab instead of ionic serve. do it and see the difference.
to test HTTP on the browser you must use HttpClient.

FIREBASE + UNITY [duplicate]

I am struggling a little bit while trying to implement firebase in unity, firebase do not yet provide a unity sdk and I was considering these options:
1) create native plugins for iOS and Android that wraps the firebase sdk and methods that I need
2) use IKVM to create a dll from the firebase .jar, I know someone has done it but I have not read yet about a 100% working method
3) build everything from scratch on top of the firebase REST api
what do you advice? have you got some experience with the topic, someone out there has made firebase work with unity?? :D
thanks
Firebase has officially Unity supported now.
https://firebase.google.com/docs/unity/setup
Import FirebaseAnalytics.unitypackage(Download From Firebase Website Or direct link https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_1.0.0.zip)
You can look this beta tool, with this u can build for Android and IOS from Unity.
Each Plugin have firebase fun.
https://github.com/unity-plugins/Firebase-Admob-Unity
Google Firebase Unity Admob Plugin
Google Firebase Unity Admob Plugin provides a way to integrate firebase admob ads in Unity3D Game and u3d app. You can use it for Unity iOS and Android App with the same c# or js code.It support all native firebase admob features such as Native Express Ad
Google Firebase Unity Admob Plugin Features
Platforms supported in one plugin :
Android, Based Admob SDK v9.0 (part of Google Firebase service)
iOS, via SDK v7.8.0
Support all native events
AdRequest targeting methods,such as children target,test mode
Not need change Android package name
Very simple API
Based on FireBase SDK Version
Ad Types:
Banner(All Banner Type and Custom banner sizes)
Interstitial (text, picture, video)
Rewarded Video
Native Express Ad
https://github.com/unity-plugins/google-service-unity
Google Service Unity Plugin
Google Service Unity Plugin is a Unity Plugin For Google Service.Include Google Admob Unity,Firebase Analytic Unity,Google Game API Unity. Login,Achievement,Leaderboard,Event,Quest,Snapshot,RealTimePlayGame,TurnbasedPlayGame API are supported and easy to use with c# or js.
Currently it's very easy to add Firebase to your Unity project as long as you follow specific prerequisites. If you're building for Android or iOS then you're good to go, but the same doesn't happen if you're building for WebGL.
According to the documentation, it can be done following the next steps
Create a Firebase project
Register your app with Firebase
Add Firebase configuration files
Add Firebase Unity SDKs