Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Sharing to Custom Activity causes BAD_ACCESS #178

Open
rlustemberg opened this issue Mar 27, 2019 · 0 comments
Open

Sharing to Custom Activity causes BAD_ACCESS #178

rlustemberg opened this issue Mar 27, 2019 · 0 comments

Comments

@rlustemberg
Copy link
Contributor

When the completion callback is executed, and the 'complete' event is fired, [self ACTIVITY_CUSTOM] is passed as the activity key to the event before being instantiated.

 NSString *activity = activityType;
      if ([activityType rangeOfString:@"com.apple.UIKit.activity"].location == NSNotFound) {
        activity = [self ACTIVITY_CUSTOM];
      }

      NSDictionary *event = @{
        @"success" : @YES,
        @"platform" : @"activityView",
        @"activity" : activity,
        @"activityName" : activityType
      };
      [self fireEvent:@"complete" withObject:event];

I'll provide a PR

viezel pushed a commit that referenced this issue Mar 29, 2019
Instantiated ACTIVITY_CUSTOM
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant