I haven't any PC. I enable developer console by Edura apps. But I can't edit any code on it.
Is there any option to edit dev console on mobile?
Related
I using firebase_app_check in my flutter app. And I use AppCheck in Firebase. it turned out to be not easy to set up, there are a lot of "white spots" in the documentation. so in order:
I enabled AppCheck on Firebase(for starage and Firestore).
I selected "Play Integrity"(so the documentation recommends) as attestation providers.
I added plugin firebase_app_check to my app.
But it not worked. the app(in debug mode) cannot retrieve data from the firestore.
Then I added "SafetyNet" as attestation provider. After this app worked(debug mode).
I publised my appbundle to Google Play. When I downloaded app from Google Play it not worked(cannot retrieve data from the firestore). I using obfuscation for my appbundle.
Why my app not worked with AppChecker in release mode?
Why "Play Integrity" not worked?
do I have to add code at the platform level? according to this document?
like this:
val firebaseAppCheck = FirebaseAppCheck.getInstance()
firebaseAppCheck.installAppCheckProviderFactory(
SafetyNetAppCheckProviderFactory.getInstance()
)
or is one plugin enough?
How I can fix it?
So I finally figured this one out, documentation is very scattered, so here is a summary:
WARNING: if you want to debug against your firebase backend with AppCheck enabled you have to get a debug token and add it in Firebase every hour or so. Only a physical iOS device can be debugged without this token. For iOS emulator you must first run your app via Xcode and get the token there. This is quite a drawback in AppCheck imo.
Android Debugging (Device and Simulator):
You have to use androidProvider: AndroidProvider.debug as described here
Then run your app, it wont work, BUT look inside the console for the following line: Enter this debug secret into the allow list in the Firebase Console for your project: 49367303-30f3-4913-a596-... if you don't see this line: hit Hot Restart.
Copy this code and open Firebase Console > App Check > Apps > click the 3 dots behind your Android app > Manage debug tokens, add your token here:
Android Production:
For production you first have to follow the steps in 1. Set up your Firebase project. NOTE Especially step 3 is very vague:
Register your apps to use App Check with the Play Integrity provider in the App Check section of the Firebase console. You will need to provide the SHA-256 fingerprint of your app's signing certificate.
What they mean is:
In google Play Console under: Release > Setup > App Integrity > App Signing > copy the SHA-256 certificate fingerprint.
Add this fingerprint in Firebase console > App Check > Apps > click your Android app > Play integrity
Now create a new build and upload it to Play Store.
iOS
I got this to work on iOS by following these docs:
1. Set up your Firebase project, follow all the links in that documentation, (which takes you to apple.com and back)
for debugging on iOS emulator follow this documentation
If you encounter build errors in Xcode (like I did), see my answer here
I want to release my app on google play store. After uploading the apk file to console. I am getting following error :
"you must accept the android auto addendum before uploading an android auto-enabled apk or android app bundle.you can do this from the advanced distribution page."
how to fix this?
It looks like you've uploaded an APK/Bundle with Android Auto support.
If you don't intend to release anything specific for Android Auto, just check the manifest file and see if it contains anything releated to Android Auto (check for meta-data tags related to Android Auto). You can remove those and you'll be able to publish your app.
If you want to release your app with Android Auto enabled, you can find the settings related to accepting the terms.
Go to your app on Play Console
Go to Setup -> Advanced Settings from left panel
Go to Form factors tab
Select Add form factor -> Android Auto
It'll look like this once you select Android Auto:
Ref: https://developer.android.com/distribute/best-practices/launch/distribute-cars#opt_in
I have an android app which uses firebase authentication (Facebook,Twitter,Gmail,Phone,Email). The following steps I have followed
Enabled all the authentication's in firebase console
Added the app debug and release "SHA-1" & "SHA-256" values in firebase project settings
Downloaded the latest google-services.json
Built the app using release config
The app is working fine in the debug environment, but when it does made a beta release in the google play. I get the following error:
For Phone Auth:
"And Internal error has occured.[INVALID_APP_CREDENTIAL:App validation failed"
For Gmail Auth
"Developer error in toast message"
"An Unknown error occurred" in snacker.
Please help me, I tried a lot. I don't know what i am missing here.
Any help is appreciated.
I see there are so many answers "INVALID_APP_CREDENTIAL" title for firebase. But there is one important step.
Please make sure you have added the SHA (SHA1 , SHA256) Fingerprint in project settings.
Navigate to Project Settings > Account Linking > Google Play "Manage Linking".
Download the latest "google-services.json" and update in the app.
Important: You need to Unlink the app from Google play and link it again.
The 4th step is very important for all other solutions to work.
Thanks :)
I'm currently working on an add-in for OWA for desktop and mobile.
I have some issues when testing on my device and so I would like to use my desktop browser's Developer Tools to debug the JS and check the HTML / CSS.
Is there a solution to do so with my device or with an Android emulator ?
Thanks in advance
I haven't tried any of the Android browser emulators, but I've found the Emulation modes in Internet Explorer's dev tools to be very helpful. The various options for document mode, browser profile, user agent string, orientation and resolution should simulate most scenarios. Note that I believe that these are what are used by the testers at the Office Store who review add-ins submitted for publishing.
Otherwise I've relied on very liberal usage of logging to the console, but debugging JavaScript with the Outlook client from Visual Studio is the easiest by far.
This option may be helpful as well:
HOW TO: Debug Office Add-in In Office Clients without Visual Studio: https://www.itunity.com/article/debug-office-addin-office-clients-visual-studio-2783
I am deploying debug builds to my android phone via ionic run android.
How can I view console.log messages?
When you deploy app to your android phone, you can show the error log in google chrome.
Steps by step instructions:
Connect your device to your computer
Run adb devices ("C:\Users\AppData\Local\Android\sdk\platform-tools") to display name of devices (you may not need this step)
Run google chrome and type "chrome://inspect/#devices" .
Choose "inspect" for your app.