sebreh / sbrxcallbackurlkit Goto Github PK
View Code? Open in Web Editor NEWSimple library that makes it easy to add x-callback-url support to your app.
License: MIT License
Simple library that makes it easy to add x-callback-url support to your app.
License: MIT License
Originally posted by @roberteason500 in Alamofire/Foundation#7
Originally posted by @roberteason500 in Alamofire/Foundation#8
Hi thank for this awesome library, I'm trying to use it one of my projects, can you please explain to me how can I use this part
:
// For two-way app communication, When you are ready to trigger the
// callbacks provided by the external app, call the completion
// block provided. This happens asynchronously for your to determine
// when you are ready to make the callback. This callback can be omitted
// if the action is not a two-way type action.
completion(nil, nil, YES);
i'm not good with completion, for exemple if i want to passe an authentication methode to the completion handler how could it be ? so that one the authentication done i'll go back to the app where the request comed from.
thanks a lot
- (void)callSourceCallbackURLString:(NSString *)URLString parameters:(NSDictionary *)parameters
defined in SBRCallbackParser.m
doesn't really the call the URL given. It had to be refactored like below for me to work.
- (void)callSourceCallbackURLString:(NSString *)URLString parameters:(NSDictionary *)parameters {
NSURL *url = [self callbackURLFromOriginalURLString:URLString parameters:parameters];
if ([self.delegate respondsToSelector:@selector(xCallbackURLParser:shouldOpenSourceCallbackURL:)]) {
[self.delegate xCallbackURLParser:self shouldOpenSourceCallbackURL:url];
}
[[SBRCallbackAction actionWithURL:url parameters:parameters] trigger];
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.