eclipsesource / tabris-plugin-firebase

A firebase plugin for Tabris.js
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Missing information for configuring app #76

Open jumpjack opened 2 years ago

jumpjack commented 2 years ago

The documentation does not clearly explain how to "register" a tabris app on firebase server to enable the app to receive notifications:

Send to a single device From Firebase console Notification section, click New Message. Enter the text of your message in the Message Text field. Set the target to Single Device. Check the logs for the InstanceID token, copy and paste it into the Firebase console Token field. If you cannot find the token in your logs, click on the LOG TOKEN button in the application and the token will be logged in logcat. Click on the Send Message button. If your application is in the foreground you should see the incoming message printed in the logs. If it is in the background, a system notification should be displayed. When the notification is tapped, the application should return to the quickstart application.

Is the app registered by "token"? Is there a single token for each tabris app or is there a single token for developer app? How to access/generate these tokens?

Or does it register by its url/name? (com.my.app.whatelse)

There is no (more) "send message" in firebase console, there is "new campaign" with many variants and options, some screenshots would help.

cookieguru commented 2 years ago

The documentation does not clearly explain how to "register" a tabris app on firebase server to enable the app to receive notifications

It's the first link in the Readme you linked to


Is there a single token for each tabris app or is there a single token for developer app? How to access/generate these tokens? https://firebase.google.com/docs/cloud-messaging/manage-tokens

From the Firebase token docs: "On initial startup of your app, the FCM SDK generates a registration token for the client app instance". Simply put, the token refers to an installed instance of your app.

There is no (more) "send message" in firebase console, there is "new campaign" with many variants and options, some screenshots would help.

The Firebase docs suggest using the notifications composer--is that what you're trying?

jumpjack commented 2 years ago

Yes, I created a project, I associated an app (using a random package name):

image

I created a campaign

image

using the token provided by this example source and inserted here:

image

But I am not sure at all of what I am doing, I am proceedingly randomly, documentation is quite focused on offline development, while I need to develop online, using playground and developer app. Maybe I should use the package name of the developer app? Where do I find it?