Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed PFAnalytics for watchOS. #323

Merged
merged 1 commit into from
Sep 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Parse/PFAnalytics.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ @implementation PFAnalytics
///--------------------------------------

+ (BFTask *)trackAppOpenedWithLaunchOptions:(NSDictionary *)launchOptions {
#if TARGET_OS_IPHONE
#if TARGET_OS_WATCH
NSDictionary *userInfo = nil;
#elif TARGET_OS_IOS
NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
#else
#elif PF_TARGET_OS_OSX
NSDictionary *userInfo = launchOptions[NSApplicationLaunchUserNotificationKey];
#endif

Expand Down
4 changes: 4 additions & 0 deletions Parse/PFConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,7 @@ extern NSString *const PF_NONNULL_S PFNetworkNotificationURLResponseBodyUserInfo
#ifndef TARGET_OS_TV
#define TARGET_OS_TV 0
#endif

#ifndef PF_TARGET_OS_OSX
# define PF_TARGET_OS_OSX TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV
#endif