Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplitude don't work with AppClip #182

Closed
Chargos opened this issue Jun 14, 2024 · 1 comment
Closed

Amplitude don't work with AppClip #182

Chargos opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Chargos
Copy link

Chargos commented Jun 14, 2024

Expected Behavior

I want to see events from users who use my appClip with amplitude (https://developer.apple.com/app-clips/)

Current Behavior

I receive error 400 error from server for session.uploadTask() in HttpClient.swift file:

  error
  value : Invalid id provided: omit the user_id or device_id field if they are unknown

  key : "code"
  value : 400

  key : "events_with_invalid_fields"
  key : device_id

Apple returns "00000000-0000-0000-0000-000000000000" for identifierForVendor for all AppClips
Functionality provided by SKAdNetwork isn’t available for AppClips
Both name and identifierForVendor return an empty string for AppClips

Possible Solution

Apple returns "00000000-0000-0000-0000-000000000000" for identifierForVendor for all AppClips, but amplitude can generate some temp id for appClips, then I could track Appclip users
(Generate some "id", save, then possibly merge events after the user installs the full version of the application, the saved identifier can be transmitted via App group shared user defaults)

Steps to Reproduce

Just create AppClip, install amplitude into it and try send some event.

Environment

  • SDK Version: 1.6.1
  • OS Info: iOS 16
@Chargos Chargos added the bug Something isn't working label Jun 14, 2024
@crleona
Copy link
Collaborator

crleona commented Jun 14, 2024

This should be fixed with #183, and released in 1.6.2. Note that you'll have to either set a device id or reset the amplitude instance on affected devices.

@crleona crleona closed this as completed Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants