Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritaamro committed Aug 4, 2021
1 parent 49d0569 commit c16e9e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion uni_links/ios/Classes/UniLinksPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ - (BOOL)application:(UIApplication *)application

- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
if ([@"getInitialLink" isEqualToString:call.method]) {
result(self.initialLink);
if(self.initialLink) {
result(self.initialLink);
} else if(self.latestLink) {
result(self.initialLink);
} else result(FlutterMethodNotImplemented);
// } else if ([@"getLatestLink" isEqualToString:call.method]) {
// result(self.latestLink);
} else {
Expand Down

0 comments on commit c16e9e9

Please sign in to comment.