Skip to content

Commit 2937ec3

Browse files
fix: support tvos implementation (#73)
1 parent 57383bb commit 2937ec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/RNMParticle/RNMParticle.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ + (void)load {
9696
user.consentState = consentState;
9797
}
9898

99+
#if TARGET_OS_IOS == 1
99100
RCT_EXPORT_METHOD(logPushRegistration:(NSString *)iosToken androidField:(NSString *)androidField)
100101
{
101102
if (iosToken != nil) {
@@ -104,6 +105,7 @@ + (void)load {
104105
instance.pushNotificationToken = pushTokenData;
105106
}
106107
}
108+
#endif
107109

108110
RCT_EXPORT_METHOD(isKitActive:(nonnull NSNumber*)kitId completion:(RCTResponseSenderBlock)completion)
109111
{

0 commit comments

Comments
 (0)