function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sahitya Tarumani 11Sahitya Tarumani 11 

how do i fetch articles from lightning knowledge on Salesforce using Native iOS Mobile SDK

In our native iOS app, I included the ServiceSDK using Cocoapods. Referring to https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/servicesdk_ios_dev_guide.htm

Now, I want to fetch articles from Salesforce. So, I want to use the KnowledgeManager class. But as a prequisite, I need to establish the SCSServiceConfiguration object. This requires a CommunityURL.

We do not use communities in our org.

So, I use the current user's login credentials as directed here: https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/knowledge_authenticated_user.htm

Next step, I try to fetch the data categories as directed here: https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/ios_cache_offline.htm


I have 2 errors in XCode:
 
[general] Community URL appears to be configured incorrectly. Please refer to the Service SDK Developer's Guide for more information on configuring your organization. https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/error_community.htm
 
load failed with error Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSLocalizedDescription=unsupported URL, NSErrorFailingURLStringKey=//test.salesforce.com/services/data/v44.0/support/dataCategoryGroups?sObjectName=KnowledgeArticleVersion&topCategoriesOnly=false, NSErrorFailingURLKey=//test.salesforce.com/services/data/v44.0/support/dataCategoryGroups?sObjectName=KnowledgeArticleVersion&topCategoriesOnly=false, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <E6B620D0-AC3F-4FDF-996D-317D17AB2DEE>.<2>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E6B620D0-AC3F-4FDF-996D-317D17AB2DEE>.<2>, NSUnderlyingError=0x600000047a80 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}} [-1002]
  • Why would Salesforce make it mandatory to have Communities in order for us to access Knowledge from Mobile SDK? 
  • Am i missing something? Is there a cleaner way to include and use the ServiceSDK?
Jennifer ssJennifer ss
Hi, its fastidious post on the topic of media print, we all be aware of media is a enormous source of information Shareit (https://shareitpc.one).
shareit for pc  (https://shareitforpcis.com" target="_blank)
xender for pc (https://xenderforpcis.com
  http://www.softwarelearnings.com