Discussions
Segment iOS SDK compatability
Is the use of <https://github.com/UserLeap/analytics-swift-sprig.git> compatible with the (older) Segment Analytics SDK - i.e. <https://github.com/segmentio/analytics-ios> ?
Or is integration with analytics-swift (their newer SPM package) required ?
Posted by Gemma Barlow about 1 month ago
No events have been received for this trigger, you will receive no responses until you do.
No events have been received for this trigger, you will receive no responses until you do.
What to do any brief..
Posted by sahil about 2 months ago
Does the "Dismiss on page change" product setting work for mobile surveys?
Yes. Under your [Product Settings](https://app.sprig.com/settings/configure), the option to "Dismiss study on page change" will be enforced across both web and mobile surveys.
For mobile surveys, this means that the iOS, Android, and React Native SDKs will check the ViewController/Activity context of which the triggering event was tracked it, and only display a survey to your visitor if they are still on that same view.
In cases where Sprig surveys are rendered under their own window, you'll need to disable this setting, to ensure that mobile surveys are being presented to your visitors.
Posted by Jonathan Hernandez about 2 months ago
in iOS SDK we are getting a freeze while presenting a survey from VC, Is there any solution to this?
**Tech Stack**
Platform: iOS Swift
Version: 4.21.0
Usage: SPM
We are using a V2 method as below:
```
func tracking(from vc: UIViewController?) {
let eventPayload: EventPayload = .init(
eventName: "someEventName",
properties: someProps
) { [weak vc] state in
guard let viewController = vc else { return }
DispatchQueue.global(qos: .userInitiated).async {
presentSurvey(from: viewController, state: state)
}
}
UserLeapKit.Sprig.shared.track(payload: eventPayload)
}
private func myPresentSurvey(from vc: UIViewController, state: SurveyState) {
guard case .ready = state else { return }
DispatchQueue.main.async {
UserLeapKit.Sprig.shared.presentSurvey(from: vc)
}
}
```
Please let us know if we are missing any usage instruction or there is some recent issue in the SDK itself
Posted by Mohshinsha Shahmadar 3 months ago
Change the share tab copy?
When a user is asked to share their tab to record their screen, the name of the tab does not match what Sprig tells them to look for. Does anyone know how to change that copy so they match?
Posted by Vincent Lai 4 months ago
Any plan for enrich filters for `who to send to` audiences?
We are sending some parameters associated with events so that the same event could receive different parameters. But, we are only able to use those parameters in the section `when to send` but not in `who to send`. It forces us to include artificial events for making these distinguishing we could do based on parameters.
Any plan in your roadmap for enabling "advanced" filters for filtering based on parameters such as `when to` such as in `who to`? Thanks!
Posted by Miguel Angel Diaz 5 months ago
Use sprig for in-app rating
How to proceed, we don't want user to go outside of the application.
Posted by Mridul 5 months ago
What are the suggested dimensions and resolution for uploading my logo to Sprig?
Sprig recommends keeping your logo under the following specs:
- Width: 555 pixels
- Height: 250 pixels
- Size: 10MB
When uploaded, Sprig will convert your logo to a PNG, but will not compress the file size or ratio as long as all of the previously mentioned criteria is met.
Posted by Sprig 5 months ago
How does "Dismiss on Page Change" work with web applications?
This setting is used to dictate how surveys should display and be dismissed with respect to your web application. It can be enabled or disabled for each of your Products within Sprig, by going to `Settings > Configure` in your dashboard and toggling the setting from the `Dismiss on Page Change` section:
- When enabled, Sprig will only show a survey if the visitor is still on the same page (URL) that the survey was triggered on. This means that a visitor navigating to another page, before the survey displays, will not see the survey.
- When disabled, Sprig will show a survey to your visitor regardless of whether or not your App's URL has changed.
Posted by Sprig 5 months ago
How can I check if an event is triggering a survey in my development environment?
### For web surveys:
When an event is tracked through the Sprig Web SDK, we'll return a JSON payload as part of the response. Please note that the recontact waiting period is not enforced in development environments.
Inside this payload, you can check the `questions[]` key:
- An empty array denotes that the visitor is not eligible for a survey.
- If you are expecting a survey to be seen, double check the visitor ID (e.g. `Sprig.visitorID` in your console, or local storage) and ensure you meet all the event and attribute criteria on your survey.
- An array of questions denotes that the visitor was seen as eligible for a survey.
- If a time delay is set on the survey, we will then wait for that amount of time to lapse before attempting to surface the survey to your visitor.
### For mobile surveys:
When an event is tracked through the Sprig iOS or Android SDK, we'll return a JSON payload as part of the response. Please note that the recontact waiting period is not enforced in development environments.
If you are able to examine the payload, you can check the `questions[]` key, similar to the Web SDK, to see whether or not a visitor is eligible for a survey. If a survey is not appearing, please double check that you are setting the necessary events and attributes to make your testing visitor record eligible for the survey.
Posted by Sprig 5 months ago