• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

apptentive/apptentive-kit-ios: ApptentiveKit SDK for iOS and iPadOS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

apptentive/apptentive-kit-ios

开源软件地址:

https://github.com/apptentive/apptentive-kit-ios

开源编程语言:

Swift 98.9%

开源软件介绍:

ApptentiveKit

ApptentiveKit lets you integrate your iPhone and iPad apps with Apptentive's customer communications platform.

Use Apptentive features to improve your app's App Store ratings, collect and respond to customer feedback, show surveys at specific points within your app, and more.

Adding the ApptentiveKit Dependency

We recommend using Swift Package Manager to include ApptentiveKit in your project.

In Xcode, choose File > Add Packages… and add the URL for this repository.

Using ApptentiveKit in Your App

To use Apptentive features in your Swift files, you will have to import the ApptentiveKit module:

import ApptentiveKit

Early in your app's lifecycle, call the register(with:completion:) method on the shared Apptentive instance:

Apptentive.shared.register(with: .init(key: "<#Your Apptentive App Key#>", signature: "<#Your Apptentive App Signature#>"))

At various points in your app, use the engage(event:from:completion:) method to record events with ApptentiveKit. When an event is engaged, the SDK can be configured to display an interaction, such as a Note, Survey, or Love Dialog, and you can define segments based on which events were engaged on your customer's device.

@IBAction func completePurchase(sender: UIButton) {
    // ...
    
    Apptentive.shared.engage("purchase_complete", from: self) // where `self` is a UIViewController instance.
}

If you plan to use Message Center, you should have a button in your app where your customers can open Message Center:

@IBAction func openMessageCenter(sender: UIButton) {
    // ...
    
    Apptentive.shared.presentMessageCenter(from: self) // where `self` is a UIViewController instance.
}

Further Reading

Please visit our Customer Learning Center for more extensive integration and migration guides, as well as guides for product owners and developers for other platforms.

Contributing

Our client code is completely open source, and we welcome contributions to the Apptentive SDK! If you have an improvement or bug fix, please first read our contribution agreement.

Reporting Issues

If you experience an issue with the Apptentive SDK, please open a GitHub issue.

If the request is urgent, please contact mailto:[email protected].




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap