When I am passing string "1_new" in $phoneNumber attribute than not showing attribute in revenuecat dashboard
react-native-purchases:^7.3.0
I have set $phoneNumber attribute in react-native-purchases. -
Purchases.setAttributes({
onBoardingTypePurchase: 'default_onboard',
$phoneNumber: '1_new'
});
$phoneNumber not showing this attribute in revenue cat dashboard
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi, I saw your community post here and responded there as well. Looking at your project I can actually see this value set for one of your users. When you go to set this value, were you getting any errors? Please enable our debug logs here on this. Can you please open a support ticket here with those debug logs, the app user id you are seeing this with, and a bit more code so I can see where you are calling this in your flow?
@HaleyRevcat Here is all logs no any errors -
DEBUG: ℹ️ Configuring SDK using RevenueCat's UserDefaults suite. DEBUG: 👤 Identifying App User ID DEBUG: ℹ️ Debug logging enabled DEBUG: ℹ️ SDK Version - 4.30.2 DEBUG: ℹ️ Bundle ID - com.XXXX.XXX DEBUG: ℹ️ System Version - Version 19.0 (Build 23A5260n) DEBUG: ℹ️ Not using a simulator. DEBUG: 👤 No initial App User ID DEBUG: ℹ️ Purchases is configured with response verification disabled DEBUG: ℹ️ Delegate set DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground DEBUG: ℹ️ GetOfferingsOperation: Started DEBUG: ℹ️ There are no requests currently running, starting request GET /v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf/offerings DEBUG: ℹ️ API request started: GET '/v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf/offerings' DEBUG: ℹ️ setting values for attributes: ["$phoneNumber", "onBoardingTypePurchase"] DEBUG: ℹ️ API request completed: GET '/v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf/offerings' (304) DEBUG: ℹ️ GetOfferingsOperation: Finished DEBUG: ℹ️ Serial request done: GET /v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf/offerings, 0 requests left in the queue DEBUG: ℹ️ GetCustomerInfoOperation: Started DEBUG: ℹ️ There are no requests currently running, starting request GET /v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf DEBUG: ℹ️ API request started: GET '/v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf' DEBUG: ℹ️ API request completed: GET '/v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf' (304) DEBUG: 😻 CustomerInfo updated from network. DEBUG: ℹ️ GetCustomerInfoOperation: Finished DEBUG: ℹ️ Serial request done: GET /v1/subscribers/$RCAnonymousID%3A84e47b0fd98a42f393328f1baf8822cf, 0 requests left in the queue DEBUG: 😻 Store products request finished DEBUG: 😻 Store products request received response DEBUG: 😻 Offerings updated from network.
Hi @AjayGol apologies for the delay here, when auditing our system we found this ticket was never resolved. What might be happening here is that the attributes aren't synced as syncing of the attributes happens when the app is foregrounded, backgrounded, or when making a purchase. You can actually use the syncAttributesAndOfferingsIfNeeded() method to explicitly sync attributes mid-session, so can you try calling this after setting the attributes and let me know if it works?