Hi there, I am playing around with push notifications for my flutter application. I'm struggling to figure out how to setup android push notifications because of the native kotlin part. The guide says I should edit the MainActivity to save the fcmToken into the sharedPreferences and create a FirebaseMessagingService to handle updates of the fcmToken that will then be saved to the signed-in Appwrite account. But doesn't that mean that I have to manage the andoid appwrite sdk and the flutter sdk seperately in one project and call native kotlin code from my flutter project when e.g. the user signs in? Maybe I got something wrong here. Is there a flutter sdk function to get the current fcmToken so that I can handle this part in flutter?
Thank you for helping! 🤗
Saw this post and I will try that 🙂 https://discord.com/channels/564160730845151244/1215970955298344970/1216358068250480651
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- How to determine if a user is anonymous?
This is probably a silly question, but I have not yet found a good answer. Is there a method to determine if the current session is anonymous aside from seein...