I'm going to submit my app to the AppStore and this is the first time I'm using Firebase in order to register analytics.
I only used Firebase/Core but there is still Advertising info in the POD :
grep -r advertisingIdentifier .
Binary file ./Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/FirebaseAnalytics matches
And :
The AdSupport Framework is not currently linked.
I already got some apps refused because of Advertising using GoogleAnalytics, should I worry using Firebase and submitting my application ? Have you ever been rejected because of this ? Do you have any advice to prevent a rejection ?
Thanks.
Ok validation has passed with "NO" for IDFA
Related
I follow these steps in google cloud console :-
Google Cloud Console-> Select Our project -> Select API & Services -> Select Enable API & Services -> Search Android Device Verification API -> it gives "No Result Found"
why it gives this message while I want to enable Android Device Verification API feature. By Default Android Device Verification API does not show in API List on page Enable API & Services page and i want to include this feature in our project.
For another project when I search "Android Device Verification API" with above process it gives following error:-
There was an error while loading /apis/library/androidcheck.googleapis.com?project=chatme-342307. Please try again.
Request ID: 9929714032143206958
Kindly support above two problems.
First of all thanks for all viewing my question.
My problem has solved but i do not know it is exact answer or not.
I just remove app from project setting of my app in Firebase console then again create app in project setting and add with SHA1 and SHA256 then I search Android Device Verification it show in Result
I am planning to use Firebase App Check to verify that requests made to my backend services (including Firebase) will be from my app only.
I would like to know how can i validate / verify that the App Check token sent from the method FirebaseAppCheck.instance.getToken() on my backend ?
PS : my backend is in python but i am more asking about the way to verify than the code, but if you provide the code in python as an example it will be appreciated.
This may be what you're looking for firebasedocs
You can only take advantage of that verifyToken api if you're using a Node.js server, otherwise it's not available yet.
You can manually verify the token though:
https://firebase.blog/posts/2021/10/protecting-backends-with-app-check
I try to get App Check working in my vue.js pwa. Using the latest firebase sdk and by following steps here https://firebase.google.com/docs/app-check/web/recaptcha-provider
My api key (https://console.cloud.google.com/apis/credentials/key..) is not limited to any API restrictions. I did add some Application Restrictions on https tho including my project domains.
Everything works fine till i activate appCheck with recaptcha v3 and i get following console errors:
FirebaseError: [code=unknown]: Fetching auth token failed: AppCheck: Fetch server returned an HTTP error status. HTTP status: 403. (appCheck/fetch-status-error)
Further more the app can't get any firebase data or auth. I tried in several browsers and without any vpn stuff.
In my already installed pwa the App Check error occurs but connection to firebase still works..
Without App Check activated it both works without an issue. Also with an App Check debug token the whole thing just works. I don't understand why it breaks firebase connection even if i haven't enabled enforcement.
I appreciate any tips on how to solve this.
I found the problem i accidently left self.FIREBASE_APPCHECK_DEBUG_TOKEN = true; in my production code.
Remove this line or only use when in development envirement solved the whole problem
if (location.hostname === "localhost") {
self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
}
I didn't expect this line to impact browsers where i haven't registered a debug token to fail with the regular appCheck but of course it doesn't make sense to use it in production anyways.
Based on your question, you want to enable Firebase App Check for Firestore with Web Application. Currently, Firestore App Check does not support it.
As per this Documentation:
Cloud Firestore support is currently available only for Android and iOS clients. If your project has a web app, don't enable Cloud Firestore enforcement until web client support is available.
I'll leave an answer for people who have problems with the setup. For the more detailed answer, you can check this question.
In short, you need to do a few steps.
Set up a firebase.
Go to how to set up app check.
Register reCAPTCHA here and add the secret_key to the Firebase console, and the site_key to your web code.
Initialize the Firebase in your code based on how to set up app check docs.
Get your debug_key and add it to your firebase console and code.
Finally, the code should look something like this:
Don't forget to save your key to a .env file or firebase.js or somewhere where you won't upload it to git.
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {
window.FIREBASE_APPCHECK_DEBUG_TOKEN = 'your_debug_token';
}
const appCheck = initializeAppCheck(app, {
provider: new ReCaptchaV3Provider('your_site_key_from_register'),
// Optional argument. If true, the SDK automatically refreshes App Check
// tokens as needed.
isTokenAutoRefreshEnabled: true
});
I followed this setup to authenticate my extension with firebase.
https://github.com/firebase/quickstart-js/tree/master/auth/chromextension
I want to push data and receive messages from the firebase db. I registered on the gcm client app. Not sure how to proceed next.
You will find this quickstart helpful. Specifically take a look at https://github.com/firebase/quickstart-js/blob/master/database/scripts/main.js
.. it will show you how to go about Firebase architecture in a JS environment like Chrome.
I've been trying to use AWS SNS service to send notifications to Apple Sandbox environment . I think I setup everything ok and my dev iPhone can get notification without trouble.
But when I start to send notifications to others who install the test app , I keep seeing error message state that
Platform token associated with the endpoint is not valid
With a messageId :147975e0-8a09-5223-8537-256320ab3733
From what I understand , if one device can success, others can success too.
Could anyone tell me how to debug this probelm.
Thanks.
I believe that the apps that the other people are installing were not built with a dev cert (probably built with an adhoc or production provisioning profile), so you probably should use the production certificate.
You could try adding another application on SNS using the production certificate (or the same one, but not using Sandbox, depending on how you generated it), if it works, that this is it.
Also make sure you are using the correct bundle id associated with the certificate.