iterable-android-sdk icon indicating copy to clipboard operation
iterable-android-sdk copied to clipboard

Fetch subscribed channel ids

Open ryanrampage1 opened this issue 2 years ago • 9 comments
trafficstars

Looking for a way to get the channel ids that a user is subscribed to. I saw you can unsubscribe by sending the list up.

Because the setting is a user setting not a per device one, it would be great to see what the user is subscribed to on new devices, or if local data gets cleared out.

ryanrampage1 avatar Mar 27 '23 21:03 ryanrampage1

Bump here

ryanrampage1 avatar Apr 13 '23 18:04 ryanrampage1

I really hope that you @ryanrampage1 will have more luck than me #453 😅

kdybicz avatar May 08 '23 07:05 kdybicz

Thank you for this feature request @ryanrampage1 and @kdybicz

Acknowledging that it as an important feature request and appreciate it :) . We will definitely consider it for inclusion in our roadmap later this year.

Ayyanchira avatar May 10 '23 20:05 Ayyanchira

@Ayyanchira Any update on this? and if this is not supported in android SDK is there any Rest API available to retrieve user's subscription list?

amit3vedi avatar Apr 24 '24 11:04 amit3vedi

@Ayyanchira i'm also curious if there's an update on this. I don't understand why /api/users/updateSubscriptions overwrites fields instead of merging them if there's no API for fetching the current user subscriptions. Without being able to grab the current user subscriptions, it's impossible to subscribe a user to a certain messageType without also unsubscribing him from all the other messageTypes.

Edjees avatar Apr 29 '24 20:04 Edjees

ah nevermind, there is Rest API for getting the subscriptions for a user: /api/users/byUserId https://api.iterable.com/api/docs#users_getUserById_0. (the email one works too) @amit3vedi I think this ^ should be the answer to your question: "is there any Rest API available to retrieve user's subscription list"

@Ayyanchira I think the docs should be updated to provide more clarity....I don't see anywhere that says that getting a user will also return the subscriptions. It might be worth it to have a dedicated Rest API for just grabbing user subscriptions without also grabbing all their datafields.

Edjees avatar Apr 29 '24 22:04 Edjees

My opinion on this one year later is this is still core functionality that should be in the mobile SDK. This is an open source repo but it is an expensive tool. I would open a pr for it but I can't justify the cost of my time to add what should be expected functionality of an SDK or a product we pay for. Also not worth the tech debt to add in an Iterable only rest client next to the SDK.

Because the functionality is in a rest API already it should take the dev team a day at most to add. Really disappointing that they don't just get it done especially with the number of people requesting it here.

ryanrampage1 avatar Apr 30 '24 12:04 ryanrampage1