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
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in IOS10
- Send a command to Siri
- I can not test my App on my device anymore
- UNNotificationTrigger about fireDate
- MPMediaItemArtwork init(image:) deprecated in iOS 10.0
- Xcode 8.1 Still has Autolayout issue in Storyboard
- Copying files from bundle to Libraries folder (IOS10, Swift3, xcode 8.2)
- Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode
- unable to have a unique ios device, as advertising identifier returned as 00000000-0000-0000-0000-000000000000 after ios 10
- Run any app in iOS 10+ from command line without jailbreaking
- Local notification does not show custom action button
- Memory leaks when using UIImagePickerController in camera mode
- Custom Controls are not displaying in MobileVLCKit media player
- how to implement multiple local notification not a single notification for swift 3
- How to persist the state in IMessage in ios when user switches from one chat to another
- Siri is recognising phrases from my AppIntentVocabulary.plist, but it's not using the VocabularyItemIdentifier values associated with those phrases
Related Questions in IMESSAGE
- How to make an UI as it is in the screenshot?
- iMessage app icons dimensions
- How to persist the state in IMessage in ios when user switches from one chat to another
- iMessage App Xcode
- How to track the stickers usage and its installation in iOS devices
- I want to use or detect message present in Messages, in my iphone app
- iMessage app won't insert message into active conversation
- UIActivityViewController - sharing text, url, image shown differently on iOS 10
- How to force transition of iMessage Extension view from .expanded to .compact?
- Change background color of MSMessage app icon slot
- What is the user agent string for iOS / MacOS iMessage?
- Restore OS X iMessages History from chat.db
- Calculation Frame of a UILabel Subclass
- how to broadcast sms through iPhone apps
- Programmatically access iMessages
Related Questions in MSSTICKERVIEW
- IMessage MSSticker view created from UIView incorrect sizing
- MSStickerView randomly raises NSInvalidArgumentException in iMessageExtension
- MSSticker image from remote url with lazy loading (add loader)
- How to block the selection of a sticker in iMessage
- How to scale MSStickerView to the size of MSSticker?
- How to edit stickerview text on long click Listener in android
- Export an UIImage as a sticker for Messages app
- Creating Sticker Pack programmatically, issue with casting UICollectionViewCell as MSStickerView
- Trigger tap on MSSticker or view programmatically?
- MSStickerBrowserView stickers going out of frame
- How to provide different sizes for iMessage Sticker App Grid Sticker
- In an MSStickerBrowserViewController on iOS 10, how can I tell which sticker a user selected?
- iOS 10 Swift programmatically get sticker from Stickers.xcstickers
- How to add sticker VIEWS to browser view in swift?
- MSStickerView animation high memory usage
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 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.