Quality
I created a key in https://developer.apple.com/account/resources/authkeys/list
Votes
0
Replies
24
Participants
Unknown
Messages
25
Quality
I created a key in https://developer.apple.com/account/resources/authkeys/list
Quality
This key got me a file, I uploaded this file into firebase:
Quality
I also setup in general the team id and app store id
Firebase?? So you created a firebase messaging provider in Appwrite?
Quality
Yes
Quality
Right?
Quality
Quality
got the service key in there too
So where is Appwrite saying this error?
Quality
In messages
Quality
That target id looks a little odd...did you put the Appwrite target id when sending the message?
Quality
I tried following this, not entirely sure where the target id is coming from cause i cannot find it back: https://appwrite.io/docs/products/messaging/send-push-notifications
Quality
(converted it to react lol)
How are you sending the message?
Quality
From the console
Quality
and the console also shows my target correctly:
Quality
.. i think
Ah okay
Any logs in firebase?
Quality
Where do i find these logs?
🤷♂️ lol
Quality
I also did a campaign in firebase directly with a random message, that just says completed
Quality
doesn't look like firebase has any logging :2HAhaa:
Quality
This is my code for the push targets:
export const updatePushTargetWithAppwrite = async (fcmToken: string) => { const targetId = await AsyncStorage.getItem('targetId')
try { // Assuming `account` is your Appwrite Account instance const session = await account.get()
if (!session) return // User is not logged in
if (!targetId) { // Create a new push target const target = await account.createPushTarget(ID.unique(), fcmToken) await AsyncStorage.setItem('targetId', target.$id) } else { // Update the existing push target await account.updatePushTarget(targetId, fcmToken) } } catch (error) { console.error('Failed to update push target in Appwrite:', error) Sentry.captureException(error) }}But I think that seems to work fine, as it registered my iphone as a target