Skip to content

Commit

Permalink
Merge pull request #3 from dukhanov/fix_use_correct_url_scheme_in_ios
Browse files Browse the repository at this point in the history
Fix: use correct url scheme in ios
  • Loading branch information
jguix committed May 30, 2016
2 parents 064a3b4 + b542eef commit 99ff74c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="FlicUrlScheme">
<string>$URL_SCHEME</string>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="Flic">
<param name="ios-package" value="Flic"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ios/Flic.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ - (void) grabButton:(CDVInvokedUrlCommand*)command
[self.commandDelegate sendPluginResult:result callbackId:command.callbackId];
return;
}

[[SCLFlicManager sharedManager] grabFlicFromFlicAppWithCallbackUrlScheme:@"winfleet-tracker"];
NSString *FlicUrlScheme = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"FlicUrlScheme"];
[[SCLFlicManager sharedManager] grabFlicFromFlicAppWithCallbackUrlScheme:FlicUrlScheme];
result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[self.commandDelegate sendPluginResult:result callbackId:command.callbackId];
}
Expand Down

0 comments on commit 99ff74c

Please sign in to comment.