Web Developer
Hello, yesterday I was able to install the new version of Appwrite 1.5.1 in self-hosted mode. Everything seems to work correctly at first glance. This morning, I wanted to try implementing push notifications.
I took an existing Flutter project and updated the SDK to 12.0.0.
The application (iOS) only allows login with an account and navigates to a page with user information.
I followed the tutorial to add push notifications with APNs.
https://appwrite.io/docs/products/messaging/send-push-notifications
I may not have understood everything (I'm not very proficient in Swift) but I think I "succeeded."
Then, in my Flutter code, I added the "createPushTarget" function with targetId I used a unique ID, and for the identifier, not knowing exactly what to put, I used the user's ID.
I launched my application, logged in with a test account, and the application asked me to accept notifications (I accepted).
I went back to my Appwrite database, and there I saw in: test user -> Target: a new line appearing with a mention of push, etc.
So, I went to the messaging section -> create message -> Push notification: entered the "title and message" fields, pressed next, selected the target (FYI, it displays poorly on Safari), selected the user, clicked next, it asked me when to send I said now, and when I pressed send, I got this error message: Cannot read properties of null (reading 'bucketId').
I don't know what's going on, can you help me? Will there be a more developed tutorial for implementation with Flutter in the coming days?