Skip to content

Commit

Permalink
Fixed:
Browse files Browse the repository at this point in the history
- URL scheme is not applied for the "grabButton" method
  • Loading branch information
dukhanov committed May 30, 2016
1 parent 625e26a commit b542eef
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 b542eef

Please sign in to comment.