tiktok / tiktok-opensdk-ios

The TikTok OpenSDK features Login Kit and Share Kit which allow your users to log in using their TikTok account and share content from your app to TikTok.
https://developers.tiktok.com
Other
80 stars 31 forks source link

How to run ShareDemo to work #5

Open sjzwwy opened 1 year ago

sjzwwy commented 1 year ago

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

stephen-boyle commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

I am very fress man show me the way thanks

Selhdin commented 1 year ago

Iam happy by this apps