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

How to run ShareDemo to work #5

Open
sjzwwy opened this issue Jul 4, 2023 · 6 comments
Open

How to run ShareDemo to work #5

sjzwwy opened this issue Jul 4, 2023 · 6 comments

Comments

@sjzwwy
Copy link

sjzwwy commented Jul 4, 2023

How to run ShareDemo, do I need to change the bundle id?

@stephen-boyle
Copy link
Collaborator

Sorry! We plan on updating the bundle ID so that it is com.tiktok.open.sharekitdemo instead of com.tiktok.open.shraekitdemo.inhouse. If the bundle ID is causing an issue, you can update it to resolve it.

@SergioDRivas
Copy link

Hi.
We are trying to run ShareDemo and doesn't work. (sign in & capabilites issue -> The app identifier "com.tiktok.open.sharekitdemo" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.)

And, when we try to use in our project, the following error is shown:

Optional(https://OUR_URI/?from_platform=tiktoksharesdk&request_id=1C0EC468-5543-464A-9CE3-4C06CD5C40CA&error_code=-1&error_description=Too%20many%20videos%20were%20shared.%2012%20videos%20maximum&share_state=20002&response_id=DD5A1901-1808-4A75-926D-246F55F1F515)

ERROR: apiKey cannot be nil or empty, set apiKey with initializeApiKey: before calling uploadEvents:
10.2.0 - [FirebaseAnalytics][I-ACS023001] Deep Link does not contain valid required params. URL params: {
"error_code" = "-1";
"error_description" = "Too many videos were shared. 12 videos maximum";
"from_platform" = tiktoksharesdk;
"request_id" = "1C0EC468-5543-464A-9CE3-4C06CD5C40CA";
"response_id" = "DD5A1901-1808-4A75-926D-246F55F1F515";
"share_state" = 20002;
}
can you help us?
Thanks!

@stephen-boyle
Copy link
Collaborator

To run the demos on a physical iOS device, you must do the following:

  1. Have a working universal link and a provisioning profile with the Associated Domains capability. Import your provisioning profile, update the bundle ID, and add your universal link domain to the Associated Domains section. If you are running the LoginDemo, make sure you have added your universal link to the Redirect URI portion of the Login Kit section in the TikTok developer portal. See here for the Apple developer documentation. https://developer.apple.com/documentation/xcode/supporting-associated-domains
  2. Open the Info.plist file as source code and replace the uses of ${TikTokClientKey} with your own client key from the developer portal.
  3. Run the project to view the kit in action.

How to run ShareDemo, do I need to change the bundle id?

@stephen-boyle
Copy link
Collaborator

Hi. We are trying to run ShareDemo and doesn't work. (sign in & capabilites issue -> The app identifier "com.tiktok.open.sharekitdemo" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.)

And, when we try to use in our project, the following error is shown:

Optional(https://OUR_URI/?from_platform=tiktoksharesdk&request_id=1C0EC468-5543-464A-9CE3-4C06CD5C40CA&error_code=-1&error_description=Too%20many%20videos%20were%20shared.%2012%20videos%20maximum&share_state=20002&response_id=DD5A1901-1808-4A75-926D-246F55F1F515)

ERROR: apiKey cannot be nil or empty, set apiKey with initializeApiKey: before calling uploadEvents: 10.2.0 - [FirebaseAnalytics][I-ACS023001] Deep Link does not contain valid required params. URL params: { "error_code" = "-1"; "error_description" = "Too many videos were shared. 12 videos maximum"; "from_platform" = tiktoksharesdk; "request_id" = "1C0EC468-5543-464A-9CE3-4C06CD5C40CA"; "response_id" = "DD5A1901-1808-4A75-926D-246F55F1F515"; "share_state" = 20002; } can you help us? Thanks!

How many videos are you trying to send in one request. It seems like you may have hit the max number of videos shared in one request, which is 12.

As for your additional question regarding the demos, take a look at my response to sjzwwy

@Selhdin
Copy link

Selhdin commented Aug 11, 2023

I am very fress man show me the way thanks

@Selhdin
Copy link

Selhdin commented Aug 11, 2023

Iam happy by this apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants