Hi,
we are implementing Amplitude React-native SDK to track our mobile app (iOS/Android)
But event automatically record Platform as “Web”, not “Android” or “iOS”
Have you had such a problem? How to solve it without custom development
Hi,
we are implementing Amplitude React-native SDK to track our mobile app (iOS/Android)
But event automatically record Platform as “Web”, not “Android” or “iOS”
Have you had such a problem? How to solve it without custom development
Hi
Would you be able to confirm which SDK/Version you are using? Our legacy React-Native SDK was built on top of the mobile (iOS/Android) SDKs, whereas our new React Native SDK was built with TypeScript so this was primarily built with Browsers in mind. This is most likely why we are interpreting the Web platform here. For example, the when the SDK is run on web, the identity is stored in the browser cookie by default, whereas on native platforms identity is stored in async storage. (docs)
Hope this helps!
If you’re using the newest Typescript SDK, then all events during development will appear as ‘web’. But once it goes into production, the events report properly. See:
https://github.com/amplitude/Amplitude-TypeScript/issues/293
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.