My app and pawwall is in landscape. I want the payflow, when I click ‘subscribe’ in my paywall to come in landscape too. However, it is coming in portrait. How do I change? Here’s my code
#ifndef PAID_APP
-(IBAction)premiumButtonPressed:(id)sender{
NSLog(@"premiumButtonPressed");
// Start Progress
[progressIndicator startAnimating];
#ifndef PAID_APP
[FIRAnalytics logEventWithName:@"ShopViewController"
parameters:@{@"ShopPremiumButtonPressed": @"Monthly"}];
#endif
// TEST HARNESS
//[self processPremiumSubscriber];
//return;
// TEST END
NSLog(@"RevenueCat - Purchase monthly product called");
[progressIndicator startAnimating];
[[RCPurchases sharedPurchases] purchaseProduct:rcStoreMonthlyProduct withCompletion:^(RCStoreTransaction *transaction, RCCustomerInfo *customerInfo, NSError *error, BOOL cancelled) {
//if (customerInfo.entitlements.all[@"your_entitlement_id"].isActive) {
// User is "premium"
//}
[progressIndicator stopAnimating];
NSLog(@"RevenueCat - Purchase monthly product completed cancelled:%d error:%@",cancelled,error);
// Need to show message
if (error!=nil){
#ifndef PAID_APP
[FIRAnalytics logEventWithName:@"ShopViewController"
parameters:@{@"ShopPurchaseMonthly": [NSString stringWithFormat:@"Error:\n%ld",(long)error.code] }];
#endif
[self showErrorAlert:[NSString stringWithFormat:@"Sorry but subscribing failed.\n\nError:%@ %ld\n\nPlease try again later." ,error.domain,error.code]];
}
if (customerInfo.entitlements[REVENUECAT_PREMIUM_ENTITLEMENT].isActive) {
NSLog(@"RevenueCat - Purchase monthly product completed and active.");
// Unlock that great "pro" content
[self processPremiumSubscriber];
}
else{
#ifndef PAID_APP
[FIRAnalytics logEventWithName:@"ShopViewController"
parameters:@{@"ShopPurchaseMonthly": @"Not Active" }];
#endif
}
}];
}
#endif