在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:uservoice/uservoice-ios-sdk开源软件地址:https://github.com/uservoice/uservoice-ios-sdk开源编程语言:Objective-C 98.3%开源软件介绍:UserVoice iOS SDKThe UserVoice iOS SDK allows you to integrate a native UserVoice experience directly in your iPhone or iPad app, allowing you to provide Instant Answers to your customers’ questions, a searchable knowledge base, and feedback forum. Our contact form is a friendlier experience than an email composer filled with debug information, and also eliminates those blank requests clogging up your inbox. InstallationThe recommended way to install the UserVoice SDK is to use CocoaPods.
Alternatively, you can install by hand:
SwiftThe SDK is easily callable from Swift. You just need to:
See the swift example repo for a working example. APIOnce you have completed these steps, you are ready to launch the UserVoice UI from your code. Import ConfigurationStart by creating a
Once you've set up your config the way you want it, you should go ahead and pass it to initialize:
This should be called when your app starts up so that we can provide accurate metrics in your UserVoice admin console. User identificationIf you know who your user is, you can pass in their identity so that they won't have to enter their name or email to send tickets or post ideas.
GUID can be the same as email, but if you have an internal user id, you can pass that so that the user's account will have continuity if they later change their email address. Note: One limitation is that this will not work if the email address matches an admin on your UserVoice account (for security reasons). Admins will still be able to use the iOS SDK but they will need to sign in the first time they do. If you are testing this feature, make sure you are not testing with an admin account. Specify a forumYou can specify which forum users will interact with by id. If you do not specify a forum, it will use the default forum for your account.
Toggle featuresYou can turn off certain features of the SDK if you do not want to use them. By default, all features are enabled if they are available on your account. 1. Turn off browsing the forum. The user will still be able to post ideas, and view ideas that they find by searching.
2. Turn off posting ideas. The user will still be able to browse and search existing ideas.
3. Turn off the contact form.
4. Turn of the knowledge base. This only affects the knowledge base browser on the portal screen. Instant answers will still include articles.
If you deep-link to an area that is turned off (such as the contact form), it will still work. Turning off the feature only prevents it from being accessible anywhere in the UserVoice UI. Invocation (Deep Linking)There are 4 options for how to launch UserVoice from within your app: 1. Standard UserVoice Interface: This launches the UserVoice for iOS portal page where the user can browse suggestions, contact you or browse the knowledgebase. This is the full experience of everything the SDK can do.
2. Direct link to contact form: Launches user directly into the contact form, with Instant Answers, experience. Useful to link to from error or setup pages in your app.
3. Direct link to feedback forum: Launches the user directly into the feedback forum where they can browse, vote on or give their own feedback. Useful for linking from a "Give us your ideas?" prompt from within your app.
4. Direct link to idea form: Launches user directly into the idea form, with Instant Answers, experience.
Passing user traitsYou can optionally pass further information about your users into UserVoice. This will allow us to provide you more useful reports about your users.
Customizing ColorsYou can also customize the appearance of the UserVoice user interface by setting certain key colors.
See User LanguageThe library will detect and display in the language the device is set to provided that language is supported by the SDK (see currently supported languages.). Private SitesNote: UserVoice for iOS does not support private forums. This section is relevant to those using sitewide privacy. The SDK relies on being able to obtain a client key to communicate with the UserVoice API. If you have a public UserVoice site (the default) then it can obtain this key automatically, so you only need to pass your site URL. However, if you turn on site privacy, this key is also private, so you will need to pass it in. You can obtain a client key pair from the "Integrations" settings section of the UserVoice admin console. Private sites are not supported unless the user is authenticated.
Kids AppsThe UserVoice Platform, including iOS & Android SDKs, is not COPPA compliant and should not be used in apps marketed at children. Upgrading from 2.0.x
Specify a help topicYou can also specify a help topic by id. If you don't then it will display a list of all topics in your account, as long as they contain at least one article.
Ticket FieldsYou can set ticket field values on the Note: You must first configure these fields in the UserVoice admin console. If you pass fields that are not recognized by the server, they will be ignored.
Give us feedback!You can share feedback on our Mobile SDKs forum. FAQsWhat if I only want to collect feedback? What if I only want a contact form? Don’t worry. UserVoice is a modular system and you can link to only the parts of the SDK you want to use. Check out how you can configure invocation. Why would I use this over a Mail link? There are a lot of reasons why UserVoice for iOS is superior to a Mail link:
What if I have a web app as well? No problemo! Every UserVoice account comes with a yourname.uservoice.com site and web widgets so you can administer both your mobile and web users from your UserVoice admin console. What about users who still send in email for support? UserVoice can handle that as well. Simply setup your existing support email forward to your UserVoice tickets email address ([email protected]). Does it pass device ids or anything that would get me in trouble with Apple? Nope. UserVoice for iOS follows all of Apple’s policies to make sure you can confidently include our SDK in your app. Can I customize the look and feel to match my app? Yes. You can customize the colors of the UserVoice modal dialogs by creating your own stylesheet. Check out the customization for more info. TranslationsUserVoice for iOS now has support for the following locales: af, ca, cs, da, de, el, en-GB, en, es, fi, fr, hr, hu, id, it, ja, ko, ms, nb, nl, pl, pt-PT, pt, ro, ru, sk, sv, th, tr, uk, vi, zh-Hans, zh-Hant. If you have done an additional translation, we would love to pull it in so that everyone can benefit. Just fork the project and submit a pull request. Some strings that show up in the SDK may come directly from the UserVoice API. If a translation is missing for a string that does not appear in the SDK codebase, you will need to contribute to the main UserVoice translation site. iOS Versions
If you want to use UserVoice for iOS 3.0 in your app, but your app also supports iOS 5 or earlier, you will need to tweak your build settings to prevent your app from crashing on launch on old versions of iOS. This is because UserVoice for iOS is typically installed as a static library, and it references classes that are not available on iOS 5. There are 2 options:
In either case, you will also need to prevent your users from launching UserVoice on an unsupported version of iOS. Something like this should suffice:
ContributorsSpecial thanks to:
LicenseCopyright 2010 UserVoice Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论