[Zendesk support provider sdk ] voting feature as Anonymous is working for android and not for iOS ?
Data ultimo post: 16 mar 2022
Please inform why voting feature as Anonymous is working for android and not for iOS ?
NOTE
1. both iOS and android have init the support sdk with same app id and client id.
2. both iOS and android have set identity as Anonymous like below
let identity = Identity.createAnonymous()
Zendesk.instance?.setIdentity(identity)
trying to vote on article using below code
func upVoteArticles(artId: String) {
let helpCenterProvider = ZDKHelpCenterProvider()
helpCenterProvider.upVoteArticle(withId: artId) { result, error in
print(result)
print(error)
}
}
for iOS below error is coming
[ERROR]: This request shouldn't request an access token.
Optional(Error Domain=com.zendesk.sdk Code=403 "forbidden" UserInfo={NSLocalizedDescription=forbidden, status_code=HTTP Error: 403})
FOR ANDROID PLATFORM WITH SAME SETTING AND CODE ITS WORKING FINE. NOT ERROR RECEIVED. PLS CHECK BELOW SCREENSHOT
SO QUESTION IS WHY ANDROID PLATFORM IS WORKING FINE BUT NOT IOS. BOTH HAVE INIT THE SDK WITH APP-ID, CLIENT-ID AND URL. BOTH HAVE SET THE IDENTITY AS ANNONMOUS
0
4 commenti
shanti verma
Hello anyone reply from zendesk ? i am stuck at my development.
1
shanti verma
is there any update on it ?
Thanks
0
shanti verma
Hi Greg,
Thanks for your reply.
Please check the below code block. Please note that we are using the same support provider sdk for both ios and android to voting. we are using the same app id, client id and url to init the sdk. we are using the same api to vote.
We have set identity as anonymous for both platform.
My main problem is voting is working in android but no in iOS even using the same settings.
For android zendesk initialisation using below code block
For ios zendesk initialisation using below code block
For voting we are using the support provider sdk for both iOS and android
for iOS sdk github url : https://github.com/zendesk/support_providers_sdk_ios
and voting code is as below
Response for iOS
for Android sdk following: https://zendesk.github.io/mobile_sdk_javadocs/supportv2/v301/index.html?zendesk/support/HelpCenterProvider.html
and voting code is as below
0
Greg Katechis
Hi Shanti! When it comes to the voting functionality within our SDKs, both iOS and Android will route through the exact same APIs, with the same permissions. This means that rather than there being a difference between the functionality of the two SDKs, there is a difference in the way that these requests are being authenticated.
To get to the root of what's happening here, we need to understand what is and is not allowed via the Create Vote API. There are two important things to note here:
Could you check the way that you're sending these requests to ensure that when the request is sent is not being sent with an agent or admin's credentials? If it isn't, please share the code block for both platforms so that we can look further into this for you!
1
Accedi per lasciare un commento.