firebase / firebase/functions-samples

Calling "sendFollowerNotification" from Android

Open
#432 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

Regrettably, Google Groups says that they are NOT for questions about code, and I received absolutely no help from Stackoverflow. I've read all of the docs and scoured the internet, but I have not found a single answer... or even the question:

How would you call the "sendFollowerNotification" function from an Android app?

There is LITERALLY nowhere else on the face of the Earth I can ask this question... unfortunately. And I have thoroughly exhausted myself for the better part of two months looking.

I've reached a point where my app automatically adds users and notification tokens to the realtime database... but I still have no idea how to trigger the function that will ultimately send those users a follower notification.

I'm aware that you can call functions like this:

```java
FirebaseFunctions.getInstance()
.getHttpsCallable("myCoolFunction")
.call(optionalObject)
.addOnFailureListener {
Log.wtf("FF", it)
}
.addOnSuccessListener {

}
```

...but I'm unsure of what variable to send to something like sendFollowerNotification... or how to send it. If you could explain it here that would already be great... and even better if you added that information to the official README.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.