Hi, I tried looking for some similar problems but couldn't find any. Even with the doc I couldn't solve the problem.
Meanwhile, I use appwrite cloud with the latest sdk on a vue 3 js app.
I am developing a PWA and would like to set up sending notifications for various scenarios, to do this I set firebase FCM Messaging for notifications from firebase console and on my vue app.
Sending a test message actually gets received by the various clients.
Now I would like to move the handling of notifications to appwrite and to do this I set as the provider for push notifications, FCM with its congif.json file.
From here on I have various doubts: -Now do I need to add to the various users a target for notifications? if yes how can I do that? Using
messaging.createSubscriber?
In the doc I only saw examples for android or ios apps.
As a test I tried to enroll an auth client with:
const result = await messaging.createSubscriber(
'<topic_id>',
ID.unique(),
<token from firebase getToken()>
);
but i received
AppwriteException: Invalid `targetId` param: UID must contain at most 36 chars
Recommended threads
- Function was working: Failed to load ent...
I had a Bun function deployed two months ago working until 2 days ago on a daily basis, now I'm getting: Failed to load entrypoint, file src/main.js does not ex...
- Migration Help
I have a small project which I have started using Appwrite cloud and now I want to self host Appwrite and migrate the data. I'm getting this error everytime I ...
- Github Student org plan shows "Free Plan...
For few days, there is banner info appearing, says "Your Free plan includes up to 2 projects and limited resources" in github stundent org plan..?