Posts

Post not yet marked as solved
606 Views

App removed from UAE App Store for 17+ Rating and Alcohol Content

We have an app that has been in the App Store for 2+ years now. The app's rating from the start has always been 17+. The main feature of the app is that it advertises local venues and events and allows people to redeem food offers and free drinks.Just recently and the end of 2018, we have submitted our app and was approved. App status for the new version is Ready for Sale. However, the app has suddenly been removed in the UAE app store. After contacting Apple Support, they mentioned that the app has been removed because of local regulations that all apps rated 17+ will become unavailable now in the country.Question is, has anybody else experience the same issue in the UAE or any other country? I will try to change our app rating to 12+ and see if it gets approved and become available again. But is there any other work around for this? Because we also see that some other apps that also advertise alcoholic content in their app is still in the App Store.
Asked Last updated
.
Post not yet marked as solved
1.6k Views

The internet connection appears to be offline intermittently

I have multiple request that I call on the viewDidLoad method of my initial view controller. Sometimes these requests are failing with `Error Code -1009 The internet connection appears to be offline.` for some user and others are not having it. Sometimes users who get the error can use it after sometime with no issues. This usually happens on a cellular network. And other apps are working in their phone and not ours.All of these requests are using the same method on my Service class. First I have an enum of the APIs and I convert them to a URLRequest using Alamofire's URLRequestConvertible protocol. Then I pass this request into Alamofire and handle the response.func get(_ api: MoonshineAPI, resultType: T.Type, completion: @escaping (_ result: T?, _ error: Error?) -> ()) { Alamofire.request(api).validate().responseJSON { response in switch response.result { case .success(let json): print("\(api.path):\n\(json)") do { if let data = response.data { let jsonDecoder = JSONDecoder() let dictionary = try jsonDecoder.decode([String: T].self, from: data) if let result = dictionary["result"] { completion(result, nil) } else { completion(nil, self.resultNotFoundError) } } } catch { completion(nil, error) } case .failure(let error): error.trackMixPanelEvent() completion(nil, error) } } }Since I am creating an instance of the Service class and calling the get method on it for each request, is it possible that the request is being deallocated? What could also be the cause of such intermittent network error?
Asked Last updated
.