[F] Link [A] signout
This commit is contained in:
15
sdk-intergration/Packages/tysdk/Plugins/iOS/RequestReview.mm
Normal file
15
sdk-intergration/Packages/tysdk/Plugins/iOS/RequestReview.mm
Normal file
@@ -0,0 +1,15 @@
|
||||
// iOSReview.m
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <StoreKit/StoreKit.h>
|
||||
|
||||
extern "C" {
|
||||
void RequestReview(const char* customReviewURL) {
|
||||
if (@available(iOS 10.3, *)) {
|
||||
[SKStoreReviewController requestReview];
|
||||
} else {
|
||||
NSString *url = [NSString stringWithUTF8String:customReviewURL];
|
||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user