Not able to find 'APIS & AUTH' or 'PUSH' under Domain Verification - push-notification

I'm trying to setup a webhook (https://app.example.com/notications) for Push Notifications coming from Google Drive API version 3.
After having set-up everything I'm getting error:
...
errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://app.example.com"
}
],
...
There are a couple of results on google (most of which are here on SE) that talk about this issue.
One of them suggested below steps to follow:
Go to the Google Developers Console.
Choose or create a project.
In the sidebar on the left, click APIs & auth, then click Push.
Click Add domains.
Fill in the form, then again click Add domains.
but I am not able to find 'APIS & AUTH' or 'PUSH' under Domain Verification option in my project. Please let me know where it would be or what would be the reason?
Quick help would really be appreciated!!
Thanks,

Related

React Native Firebase returns [auth/account-exists-with-different-credential ]

I currenlty have multiple login methods like facebook,twitter and google. If i login from facebook and then login back from twitter , it will throw me an error [auth/account-exists-with-different-credential ]. What i want to do is link all the accounts.
Some answers says, there is error.email and error.credential on [auth/account-exists-with-different-credential ] this kind of error. But there is not.
if (error.code === 'auth/account-exists-with-different-credential') {
// todo
}
What should i do in todo section to link the providers.
I think I found the cause of the error.
The error response might be different per package.
If you are using the mobile based package of firebase(#react-native-firebase/app)
or the web based variant of firebase(firebase/app).
The mobile firebase package supports more functionality for the phone, but it might only return the error message and error code. In the web based variant it support more properties as the email & credential object.
I am also working on a linking account for multiple auth service providers, whenever I get the errorCode: 'auth/account-exists-with-different-credential'. The drawback of this flow is that you might need to re-login with a different service provider to make the link work. So this can be quite a drag in the login flow.
Here is a discussion link where I received more information about this topic: https://github.com/invertase/react-native-firebase/issues/2802

Cannot add custom domain to firebase

The custom domain wizard in firebase cannot go in the "verify ownership" stage. When I look at the web dev console I see a lot of 503 errors.
Is the spark plan not enough to have a custom domain ? Is the system broken ? Have I skip a step ?
For anyone else who ends up here, I did forward this on to Firebase Support.
They responded with 'That error appears when developers have a GSuite account. To solve the issue, reach out to your GSuite organization admin/owner to get the Search Console enabled. The following Google support article will provide the steps to enable the Search Console.'
Indeed, after enabling the Google Search Console, it did proceed to the Verify Domain step.

LinkedIn Api v2 - Get company posts

I'de like to get the last posts from my LinkedIn company page for add on my website.
I'm already created the app and generated the Access Token.
I didn't understand which endpoint I need to use, I tried this:
https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:organization:MY_COMPANY_ID but I received the follow error:
"serviceErrorCode": 100,
"message": "Not enough permissions to access: GET-owners /shares",
"status": 403
Can somebody help me?
Thanks
Did You request Marketing Developer Platform in Linkedin? To get information about Your company You have to own this product. Login here:
https://www.linkedin.com/developers/
Create app and request Marketing Developer Platform in Products section

How to send firebase notifications to audience via HTTP

In Firebase Console I set up audiences based on various user properties and now am able to send notifications to different user segments via console. Is there a way to do the same by http requests to fcm servers? There should be a trick with "to" field, but I couldn't figure it out.
firebaser here
There is currently no way to send a notification to a user segment programmatically. It can only be done from the Firebase Console as you've found.
We're aware that allowing this through an API would expand the potential for Firebase Notifications a lot. So we're considering adding it to the API. But as usual: no commitment and no timelines, since those tend to change as priorities shift.
This has been a popular request, but unfortunately it is not yet possible. We are looking into this.
Please check Firebase Cloud Messaging announcements for any updates in the future.
You can try with topic subscriptions. It is not perfect solution but the best for me at this time.
{
"to": "/topics/audience1_subscription"
"data" : {
"title" : "Sample title",
"body" : "Sample body"
},
}
Yes. No solid solutions are available as of now but I have a workaround solution for it. Which is not able to handle every scenario but it will get the work done.
For that, you need to figure out the audience within the app and you need to segment them with topics. Then you can send a push notification for that particular topic via API.
Let's take an example.
Send notifications to users who didn't open the app in the last 7 days
Subscribe to a topic name "app-open?date=09-21-2022"
each time user opens the app. Just unsubscribe from the topic of the last app opened and subscribe to a new topic with the current date.
Then you just need to build a topic string based on the current day - 7 to send.
And you can create multiple topics for the same user for different behaviors and use them as topics to send push notifications via API to segmented users.
As there is no limit on topics per user or topics per project. You can create as many as topics you want and use them as your need.
Yes.There is trick with the "to" field as mentioned in below.
web URL is: https://fcm.googleapis.com/fcm/send
Content-Type: application/json
Authorization: key="YOUR_SEVER_KEY"
JSON DATA FORMAT:
{"to": "USER_FIREBASE_TOKEN",
"data": {"message": "This is a Firebase Cloud Messaging Topic Message",}
"notification": {"body": "This is firebase body",}}";

Google Analytics - cannot insert or update webproperty

I am trying to create a new WebProperty or update an existing one in Google Analytics API.
The service account is added to the Google Analytics account with all permissions checked.
Response:
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Your project does not have access to this feature."
}
]
Apart from update and insert the rest of the management API is working.
What am I missing?
it's written in documentation:
Write operations in the Management API (e.g. create, update, delete,
patch) for Web Property, View (Profile), and Goal resources is
currently available as a developer preview in limited beta. If you're
interested in using these features, request access to the beta.
Update:
To request access fill out the form at Google Analytics Account Setup and Configuration APIs it can take a few weeks to get access. You should recieve an email from google when you get access.

Resources