EricOriginal post
Rank 2: Process
I'm attempting to subscribe to a topic from the client as an anon user. the app does not require a login. Not sure where im coming up short here the targetId is my providerId i got straight from the appwrite console.
Plain text
do { print("Creating anonymous session...") let session = try await account.createAnonymousSession() print("session creation: \(session.userId)") let subId = UUID().uuidString let subscriber = try await messaging.createSubscriber( topicId: "67d8c32a032423423434", subscriberId: subId, targetId: "provideId") print("Successfully subscribed") } catch { print("Error in SubscribeAnon: \(error)") } }Summary
Issue: Developer is attempting to subscribe to a topic as an anonymous user but encountering the error "The target could not be found."
Solution: The issue is with the `targetId` parameter in the `createSubscriber` call, which should be corrected to the actual `providerId` obtained from the Appwrite console.