Skip to main content

Device token issues + application opened event

  • July 24, 2024
  • 1 reply
  • 66 views

Forum|alt.badge.img+1

Hello!

We have a React Native mobile app and are having some trouble with our device tokens for the Application Opened lifecycle event.

I’ve been looking at documentation but haven’t been able to find clear answers.

Our application opened event is not sending the device_id and hence failing to reach the customer.io destination. What is a foolproof way to fetch the device token for both iOS and Android?

1 reply

Chauntel Greaves
Segmenter
Forum|alt.badge.img+3

Hi@Shweta S - there are a couple things we’d suggest looking to better understand why device_id might not be sending for this event. 

  1. Do you have the most recent version of React Native Library installed?
  2. Is the ‘Application Opened lifecycle’ event the only event that this is happening on? If so, is it positioned differently for the others?
  3. In the destination settings, is “collect device_id” turned on? 

https://segment.com/docs/connections/sources/catalog/libraries/mobile/react-native/#getting-started

https://segment.com/docs/connections/sources/catalog/libraries/mobile/react-native/#device-identifiers