Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Identical function signature with other platforms #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 3 additions & 5 deletions src/ios/AKPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ - (void)loginWithPhoneNumber:(CDVInvokedUrlCommand *)command {
NSString *defaultCountryCode = [options objectForKey:@"defaultCountryCode"];
BOOL facebookNotificationsEnabled = [[options objectForKey:@"facebookNotificationsEnabled"] boolValue];
NSArray *initialPhoneNumber = [options objectForKey:@"initialPhoneNumber"];
if ([initialPhoneNumber count] == 2) {
preFillPhoneNumber = [[AKFPhoneNumber alloc]initWithCountryCode:[initialPhoneNumber objectAtIndex:0]
phoneNumber:[initialPhoneNumber objectAtIndex:1]];
}

preFillPhoneNumber = [[AKFPhoneNumber alloc]initWithCountryCode:defaultCountryCode
phoneNumber:initialPhoneNumber];

_responseType = useAccessToken ? AKFResponseTypeAccessToken: AKFResponseTypeAuthorizationCode;
_accountKit = [[AKFAccountKit alloc] initWithResponseType:_responseType];

Expand Down