Posts

Post not yet marked as solved
2 Replies
705 Views
We currently have a food app on the app store which already asks for user authentication to access some functionnalities/content (shaker mixes, specific recipes, add comments, customize a recipe etc...). In this app we have recipes organised in bundles we call packs (all meat recipes, recipes for children etc...) In order to make the app a bit more profitable, we want to add premium packs that can be bought (non-consumable). We also wanted to allow only logged in users to buy such packs to avoid complexity in managing anonymous users. The question is : Is this kind of practice allowed or is it subject to rejection during review to force users to sign-in before making a purchase ? The same question goes for a feature of meal planification that we wanted to monetize as well via a subscription. For this feature, the sign-in would be hard to escape as the meals are synced on user profiles and need to be accessible accross all user devices. We didn't find anything prohibiting such practices in Apple guidelines but found some posts that would indicate it is in fact forbidden by Apple . Any help or previous experience would be appreciated :) Thanks in advance
Posted
by bioche_.
Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
I just witnessed an unexpected behaviour from Zip publisher when combined with flatMap operator and I'm not sure if this is a bug or just incomplete knowledge on my part given that I used RxSwift up until now.Here is the code :let trigger = CurrentValueSubject<Void, Never>(()) C.cancellable = Just([String]()) .flatMap { Publishers.Zip($0.publisher.print("publisher"), trigger).print("Zip") } .print("flatMap") .sink(receiveCompletion: { _ in print("completed") }, receiveValue: { print($0) })The cancellable is kept as a static variable so that it doesn't get cleaned up.I expected to fall into the "receiveCompletion" closure and see the "completed" displayed in the console as Zip should finish once one of the sources finishes. Instead it seems the finished message seems to be lost in the flatmap. Here is the console content :flatMap: receive subscription: (FlatMap) flatMap: request unlimited publisher: receive subscription: (Empty) publisher: receive finished Zip: receive finishedI also tried to put values in the String sequence :Just(["lo", "la", "li"]) .flatMap ...and the first value arrives but the finished doesn't make his way out of the flatMap.Does somebody have an explanation for this ? What can I do to avoid this ?Thanks in advance !
Posted
by bioche_.
Last updated
.