I have a subclass of MSStickerBrowserViewController that contains a MSStickerBrowserView with a couple dozen MSStickers. For analytics, we're trying to track which stickers are the most popular in the sticker app. Is there any way to tell which MSSticker was selected by the user?
In an MSStickerBrowserViewController on iOS 10, how can I tell which sticker a user selected?
1k Views Asked by David M At
1
There are 1 best solutions below
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IOS10
- How to make .endswith work in OS 11 chrome and safari?
- How to fetch/store cookies from WKWebView in ios10?
- iOS simulator version doesn't appear - Xcode 12.2
- Convert a video into an IOS Live Photo format without an Apple device
- unable to open url: tel xxx by Linking.openURL(jumpUrl) in ios 10
- Paytm payments integration doesn't work on iOS 10
- iOS app crash at launch iOS 10 using XCode 11.3.1
- Create-react-app: Invalid unicode escape in identifier on Safari iOS10
- iOS 10 NSNumber crash with enumerations
- UiTableView Swipe Actions at left or leading on iOS10
- crash in iOS 10 and iOS 9 with CoreFoundation - common_removeAllObjects
- KVO: Could not demangle keypath on iOS 10.3.4 iPhone 5
- Custom Class Sprite Kit, don't work init by name for iOS 10 (Xcode 11.3.1)
- iOS Build to Device Not Working when Deployment Target is below iOS 13.0
- Xcode 11, with an iOS 10.3.3 device, there is no "Connect via Network" in Devices and Simulators dialog
Related Questions in IMESSAGE
- How to send message to recipients individually?
- Why does my vCard display as *.vcf file on iOS?
- How to change iMessage group chat photo using AppleScript or Javascript?
- iOS UITableView content goes under UINavigationBar weird bug when inputAccessoryView containing UITextView shows keyboard
- AppleScript iMessage to SMS accounts not working MacOSX Sonoma
- iMessage User Agent firing crawler twice
- Sending MSMessage in iOS 17 Simulator Fails
- activeConversation is always nil while developing iMessage App
- IMessage can't show applicps banner after iOS 16.4
- OpenGraph message preview messages are not showing in iMessage, but they're showing everywhere else
- Open Graph meta tags not fully recognized
- How to scrape iMessages in Python?
- Can we send iMessages hooked up to a backend application?
- Trouble adding message.framework and messages module
- Applescript for iMessage to do a tap back (heart, like, etc) on a message
Related Questions in MSSTICKERVIEW
- Export an UIImage as a sticker for Messages app
- IMessage MSSticker view created from UIView incorrect sizing
- MSSticker image from remote url with lazy loading (add loader)
- How can I show Stickers from Document directory in Swift
- MSStickerView animation high memory usage
- Creating Sticker Pack programmatically, issue with casting UICollectionViewCell as MSStickerView
- How to edit stickerview text on long click Listener in android
- How to scale MSStickerView to the size of MSSticker?
- How to block the selection of a sticker in iMessage
- MSStickerView randomly raises NSInvalidArgumentException in iMessageExtension
- How to provide different sizes for iMessage Sticker App Grid Sticker
- MSStickerBrowserView stickers going out of frame
- Trigger tap on MSSticker or view programmatically?
- How to add sticker VIEWS to browser view in swift?
- iOS 10 Swift programmatically get sticker from Stickers.xcstickers
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are no delegate methods to tell us that information, unfortunately. I got around this by making my own UICollectionView of MSStickerViews, then adding tap and long press gesture recognizers to the sticker views.
Make sure the gesture's shouldRecognizeSimultaneouslyWith delegate method returns true so they don't get in the way.
To track whether a sticker is actually sent vs. selected takes a bit more work. Tapping and sending a sticker is pretty straightforward to track - the MSMessagesAppViewController methods didStartSending and didCancelSending can tell you if a message was sent or discarded from the input view.
Tracking the peeled and applied sticker analytics is trickier. Applying a sticker to a previous message in the conversation doesn't trigger any of those methods. Best I've come up with so far is to track where the long press ended and make an educated guess as to whether or not the sticker had been sent or cancelled.