Skip to content

Commit 4e068f4

Browse files
committed
APNS method
1 parent ee3f014 commit 4e068f4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Branch-SDK/Branch-SDK/Branch.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,14 @@ typedef NS_ENUM(NSUInteger, BranchPromoCodeUsageType) {
407407

408408
#pragma mark - Push Notification support
409409

410-
/* Extract the short URL if there is one */
411-
- (void)handlePushNotification:(NSDictionary*) userInfo;
410+
/**
411+
Allow Branch to handle a push notification with a Branch link.
412+
413+
To make use of this, when creating a push notification, specify the Branch Link as an NSString, for key @"branch".
414+
415+
NSDictionary userInfo = @{@"branch": @"https://bnc.lt/...", ... };
416+
*/
417+
- (void)handlePushNotification:(NSDictionary *)userInfo;
412418

413419
#pragma mark - Deep Link Controller methods
414420

0 commit comments

Comments
 (0)