<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pedro Gemal on Medium]]></title>
        <description><![CDATA[Stories by Pedro Gemal on Medium]]></description>
        <link>https://medium.com/@pedro.gemal?source=rss-2336696c3bca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*6TOMtinZF_UHtPtWZq4hBQ.png</url>
            <title>Stories by Pedro Gemal on Medium</title>
            <link>https://medium.com/@pedro.gemal?source=rss-2336696c3bca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:42:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pedro.gemal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The evolution of a data-driven startup and the FOMO tracking]]></title>
            <link>https://medium.com/@pedro.gemal/the-evolution-of-a-data-driven-startup-and-the-fomo-tracking-ba60dc8c4cd1?source=rss-2336696c3bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba60dc8c4cd1</guid>
            <category><![CDATA[catalog]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[tracking]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Pedro Gemal]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 20:56:15 GMT</pubDate>
            <atom:updated>2020-07-01T17:39:26.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3UAmyPVyrzhlvRJnd3rNA.jpeg" /><figcaption>Not all these trackings will be useful. But how can you know that in advance?</figcaption></figure><blockquote>Finding out when is the time (and not anymore) to rely on Google Analytics® for basic business metrics can be a maturity challenge for your company.</blockquote><p>Notice: this is what I’ve learned in the past years, and it does not mean that it is the only way (neither the best) to solve this problem, but this is how I did it. I&#39;ve been using Google Analytics for many years and still do it, depending on business needs, timeline, and complexity. This is an awesome tool with great simplicity, but also very powerful for early-stage companies — using the free version.</p><p>Recently, I’ve been asked for a couple of entrepreneurs on how they could manage to build their startups as data-driven companies since day one.</p><p>More specifically, they wanted to know everything about what tools they should use and which frameworks they should implement to make sure “everything gets tracked the right way.” Have you ever felt this way?</p><p>So I had to get back with a straightforward question: what is the problem you are trying to solve right now that you believe that “everything tracked” would be the solution?</p><p>The answer may vary a bit, but it was not related to “increase X” or provide a better solution for “Y.” Going deeper with some other questions, it became clear to me that I was facing a new kind of FOMO — fear of missing out data, this time related to missing out the metrics (“regardless of what they are, hopefully, I will discover it in the future”). This would be the first (and simplest) approach to the common question of &quot;what success metrics should I be tracking in my product?&quot;.</p><p>That said, I hope that especially for those who are still beginning their journeys in a new product or business, these words can give you some relief: it is ok not to be perfect since the beginning. Especially in the data field, that there’s always room for incremental improvements.</p><p>That’s enough theory, let’s jump into something way more practical: can I start with a bunch of Google Analytics trackings in my site (or Firebase analytics, in the case of mobile applications)? I would say <strong>yes</strong>, as long as it is a conscious decision (considering pros and cons), and there is a long-term plan to address future issues (to be solved in the future, not now, just to reinforce here to solve one problem at a time).</p><p>In practical terms, I would say to focus on these three aspects (some of them I could experience myself, and some others, I had to learn the hard way):</p><ul><li>Organize your tracking using a Google Tag Manager container. This way, you will make sure that all your tracking codebase is centralized, making it easier to reproduce it in another tool.</li><li>Define a simple naming convention and make sure everyone will follow it — see an example below. This will ensure that, while you&#39;re scaling your tracking, you will (hopefully) make it simple to new folks to onboard.</li><li>Keep somewhere (a spreadsheet should work) two lists (maybe different tabs of the same spreadsheet): (1) a list of answered and unanswered questions — that you believe data tracking may help you address it and (2) a list of all tracking terms, aside with its business definitions and other relevant information (example: exclusive to web version).</li></ul><p>For a realistic view of a “simple” naming convention, I would use this representation and a 5 thumb rule (a few of them I&#39;ve learned after starting using schema registry from Snowplow Analytics®):</p><pre>       button_click Vs. userClickedButton Vs. clicked_button</pre><ol><li>Smallcaps characters only;</li></ol><p>2. No special characters (like accents), and always in the same language (English is recommended);</p><p>3. Use underline if a space character is needed;</p><p>4. Always use the noun before the verb, always use the same verb tense (past tense may be recommended for some use cases);</p><p>5. Avoid repeated terms (like beginning everything with user_*).</p><p>With these quick tips, you can make the following plan:</p><p>When you understand it is the time to tune up your analytics solutions, you will already have two critical bases of your data engine: (1) a unified tracking management and (2) an essential data catalog. When things get bigger, it will be clear why it is always better to keep it right simple.</p><p>In a practical way, you will be able to abstract and move all your tracking logic layer (considering both web and mobile clients) to the stack of choice, and also elaborate a data repository to be used and update by all teams. A simple template that could guide your documentation would be creating the following tabs in a spreadsheet:</p><ul><li><strong>Getting started</strong>: presenting the information class, the objective of the document, how it works (in general terms) and who is responsible for (probably the DPO contact);</li><li><strong>Glossary</strong>: most used terms and definitions (considering platform-specific issues, such as the session definition, that may vary considering many factors)</li><li><strong>Naming conventions</strong>: feel free to start with the ones I&#39;ve suggested in the previous section, including examples whenever is possible</li><li><strong>Data sources</strong>: for each tracking platform (for instance, Google Analytics) a full description of the parameters, attributes, type of data, business meaning, source, and a column stating whether is it deprecated or not.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AARWaK00wmr_BQSV7GKT5g.png" /><figcaption>The framework suggested for an initial version of a data catalog</figcaption></figure><p>Once you evolve your analytics to another stack (in my experience, going to Snowplow Analytics®), it may be provided more robust solutions for this problem of data accessibility (either in their own panel, such as in the Snowplow Data Structures), or you can look for some other tools to help to address this issue (such as Apache Atlas and/or AWS Lake Formation®).</p><p>On the other hand, if you don’t follow those simple three rules, keep in mind the following pitfalls may occur:</p><p>1. Taxonomy: Absence of catalog and lack uniformity of nomenclature;</p><p>2. Duplication of markings of the same information (with the divergence of knowledge) in the corresponding tracking tool and different means.</p><p>3. Absence of essential attributes (that may change over time) in the event tracking.</p><p>In the next post, I will talk more about transitioning from a simple Google Analytics solution to something more robust (either keeping GA or not) — when it is and when it is not the time. In the meanwhile, feel free to share your own experiences on this subject. Keep tuned for more information and happy coding :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba60dc8c4cd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering subscriptions in iOS: What’s new from WWDC 2019 — part 2]]></title>
            <link>https://medium.com/@pedro.gemal/mastering-subscriptions-in-ios-whats-new-from-wwdc-2019-part-2-14507ab5df22?source=rss-2336696c3bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/14507ab5df22</guid>
            <category><![CDATA[in-app-purchase]]></category>
            <category><![CDATA[subscription]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Pedro Gemal]]></dc:creator>
            <pubDate>Fri, 17 Jan 2020 23:51:11 GMT</pubDate>
            <atom:updated>2020-01-18T00:12:45.648Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering subscriptions in iOS: What’s new from WWDC 2019 — part 2</h3><p>If you are looking for best results using Apple&#39;s built-in in-app purchase feature, you should definitely take a look at part 1 of this post. On this topic, we will cover everything you must know about Subscription Offers Best Practices, a great resource recently available for macOS, iOS and tvOS.</p><p><strong>Subscription Offers</strong></p><blockquote>This new feature is a powerful resource to mitigate churn or bring subscribers back, with the advantage that we choose when we show it to users.</blockquote><p>To start with things cristal clear: Look out for the difference between introductory offers (for first-time users) versus subscription offers (the main topic of this post). For the initial setup of the latter, you should begin with what is called &quot;prepare your offer&quot;. Users can redeem as many offers as they are offered (always valid for current or past subscribers), and you decide the criteria for which subscribers qualify for an offer.</p><p>Look after this: redeeming an introductory offer (available only once for each product identifier) does not affect their eligibility of the user for a subscription offer.</p><h4>The 10 steps to happiness</h4><p>At a glance, you should address these 1o steps in order to fully take advantage of Promotional Offers:</p><p>1. Prepare the offer;</p><p>2. Determine eligibility;</p><p>3. Request Product details;</p><p>4. Create a signature;</p><p>5. Present your offer;</p><p>6. Complete the transaction;</p><p>7. Create a payment request;</p><p>8. Notify the user of the transaction state;</p><p>9. Verify the receipt;</p><p>10. Unlock the service.</p><p>To get started, create a subscriptions access key in Users and Access of the iTunes Connect (iTC) panel. After that, navigate through iTC&#39;s panel to select the &quot;Create Promotional Offer&quot; within the subscription plan of your choice. The product code is a unique identifier for that offer and will be useful to fetch for localized product information and available discounts.</p><p>The <em>subscription offer key</em> applies to all apps and all subscriptions. It is useful to ensure that only authorized users can redeem offers. The private key is used to sign the payload and the public key is used to validate the signature, and your backend will be responsible for signing the key when determining eligibility.</p><p>To recap: A signature is a unique string that your server generates using defined parameters and your private key. To minimize latency, it is advisable to generate the signature when you display the offer.</p><p>Once you’ve created offers in iTC, you are now free to implement the new StoreKit APIs to allow these offers to be accepted by the customer. In the client-side, after user eligibility confirmation, you should request product details by calling SKProductRequest with the product_id of the subscription from Apple server&#39;s, and then returning the offer details to your app. This way you will be able to display the appropriate offer to the customer. This feature can be tweaked in a few ways that Apple&#39;s documentation calls by &quot;eligibility to offers&quot;.</p><p>Going further into the code, the <em>SKProductDiscount</em> class had the methods to return the customization attributes of the offer, and <em>SKPaymentDiscout</em> contains the payload and subscription information. When the customer activates the purchase flow, we must add both the <em>applicationUsername</em> and <em>paymentDiscount</em> (variable with the attributes of the offer).</p><p>Please look after these new StoreKit enum errors (SKError):</p><ul><li>invalidOfferIdentifier</li><li>invalidOfferPrice</li><li>invalidSignature</li><li>missingOfferParams</li></ul><blockquote>Advice from the real world: Even if you don’t plan to make a specific state return considering these erros, please make sure to at least log them in your crash report tool as a non fatal issue.</blockquote><p>Regarding eligible customers for these features, please note that it may apply to any (self-renewing) subscriber in any group, whether a current or past subscriber user. It can be offered in the first subscription period (free trial or introductory price).</p><p>To determine eligibility, we can look at the receipt data values ​​(subscription status, unique identifier, subscription date and status). A great approach is by using the server-to-server notification DID_CHANGE_RENEWAL_STATUS to determine eligibility (more details below).</p><p>To validate whether the subscription is suspended or not, use the <em>autoRenewStatus</em> value on the receipt. Changes to these fields may be updated from notifications.</p><p>It is recommended that we start recording not only the <em>autoRenewStatus</em>, <em>billingRetryStatus</em> and also the number of user sessions, to understand which users would be eligible for offers (the hypothesis would be to offer to the most active users). This may seem, at a glance, as a more complex change in your backend side. However, this information may be of extreme value for the product team to address the best combinations of user behaviours and promotional offers.</p><p>For cohort follow-up, they recommend recording the following parameters in your backend:</p><ul><li>renewalPeriods</li><li>autoRenewStatus</li><li>billingRetryStatus</li><li>billingIssuesCount</li><li>contentConsumed (from our backend)</li><li>winbackOffer (bool)</li><li>retentionOffer (bool)</li><li>upgradeOffer (bool)</li></ul><p>Regarding the channels for presenting these offers, they would be basically pushing and in-app notifications. However, it is possible to present offers outside the app, using external channels (by applying <strong>Universal Links</strong> in Ads and emails).</p><p>It is recommended that we analyze the behaviour of subscribing users, to identify cohorts of subscribers and to offer relevant offers for each group of users. There are different opportunities: Win back, retention marketing, loyalty, customer support. The referred use case, for example, is to listen for the DID_CHANGE_RENEWAL_STATUS notification and offering a promotional offer to the customer that has just chosen not to auto-renew your product.</p><p>There are now 2 new dashboards (<strong>Subscription State </strong>— to see the result of the offers — and <strong>Subscription Event</strong> — user activity, such as refund, cancellation, successful / failed billing retry, activations, renewals — that will also be valuable resources for your team to make the most of in-app subscriptions.</p><p>Please note that customers can redeem subscription offers only on devices running iOS 12.2 and later. Make sure to set up minimum version requirements in your next release in order to take full advantage of these new resources!</p><h4>Additional resources:</h4><ul><li><a href="https://developer.apple.com/app-store-connect/whats-new/?id=02222019">https://developer.apple.com/app-store-connect/whats-new/?id=02222019</a></li><li><a href="https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_subscription_offers_in_your_app">https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_subscription_offers_in_your_app</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14507ab5df22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trabalho remoto]]></title>
            <link>https://medium.com/@pedro.gemal/trabalho-remoto-e33b59e8bbcc?source=rss-2336696c3bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/e33b59e8bbcc</guid>
            <category><![CDATA[tecnologia]]></category>
            <category><![CDATA[saúde]]></category>
            <category><![CDATA[empreendedorismo]]></category>
            <category><![CDATA[trabalho-remoto]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Pedro Gemal]]></dc:creator>
            <pubDate>Fri, 23 Aug 2019 19:59:22 GMT</pubDate>
            <atom:updated>2019-08-23T20:17:02.925Z</atom:updated>
            <content:encoded><![CDATA[<p>Lições aprendidas do que funciona e do que não funciona. Direto ao ponto.</p><blockquote>Algumas coisas não precisam ser ditas para serem entendidas… podem ser escritas.</blockquote><p>Esse texto tem sugestões baseadas na literatura e na vivência de quem trabalha remoto para maximizar o desempenho de pessoas que estejam em outros locais que não o escritório convencional. Na PEBMED, o trabalho remoto é uma realidade, seja como home office, período parcial ou integral. Essas são algumas dicas e melhores práticas para quem quer ser mestre em trabalho remoto.</p><h3><strong>Organização pessoal</strong></h3><p>Esses itens dependem apenas (ou majoritariamente) de você e das premissas que irá seguir no seu dia-a-dia.</p><p><strong>Ter horário para iniciar e terminar o trabalho</strong>: isso é importante não apenas para boa comunicação dos colegas de trabalho (para evitar que te acionem em horários em que não esteja disponível), mas também para ter uma rotina saudável com as demais pessoas da casa. Idealmente, marcar esses horários na agenda auxilia porque o lembrete ajuda a respeitar o horário (especialmente para não dar “uma esticadinha” para finalizar).</p><p>Com o tempo, você poderá descobrir os horários em que trabalha melhor. Isso pode permitir que você monte sua própria agenda pessoal (desde que alinhada com os demais integrantes do seu time).</p><p><strong>Organize o seu espaço de trabalho</strong>: quando é possível ter um escritório ou espaço reservado para o trabalho, é mais fácil poder focar nas atividades (e não ser interrompido). Caso isso não seja possível, fica ainda mais necessário o “contrato” com as outras pessoas da casa para respeitarem o seu espaço. O ideal é que seja um local onde você consiga tranquilidade e conforto para trabalhar.</p><p>- Caso o trabalho em casa não esteja funcionando, é possível tentar algumas táticas, como, por exemplo:</p><ul><li>Horários alternativos (agendas assíncronas com as demais pessoas da casa)</li><li>Espaços alternativos (coworkings) em horário parcial (quando sabe que as distrações serão maiores) ou integral. Existem opções pagas ou gratuitas nas principais cidades do Brasil.</li></ul><h3><strong>Ferramentas sugeridas</strong></h3><p><strong>Para videoconferências:</strong></p><ul><li>Com apresentação: Zoom® (pela facilidade de gravação da própria tela e de fundos de tela alternativos)</li><li>Sem apresentação: O Google meet® (pela facilidade dos links gerados no Calendar) e o Whatsapp® com vídeo (por ser a conexão mais leve/rápida) são as melhores ferramentas disponíveis atualmente.</li></ul><p>Nota: Sempre que possível, compartilhar a câmera facilita a comunicação (seja pela linguagem corporal, ou mesmo pela leitura labial — às vezes necessária quando o volume não está favorável). Nunca é demais lembrar de testar a conexão, o vídeo e o áudio antes da reunião.</p><p><strong>Para mensagens: </strong>Alguns recursos do Slack® podem facilitar bastante o dia-a-dia:</p><ul><li>Canais e/ou status específicos com sinalizações pertinentes sobre disponibilidade (ex: entrada e saída, almoço, <em>dailly_meeting</em>);</li><li>Ferramentas para sincronia da agenda pelo timezone;</li></ul><p>Uma observação importante sobre a troca de mensagens: Às vezes, uma conversa escrita pode ser útil (pois ajuda a pessoa a tornar o raciocínio mais objetivo e agilizar a tomada de decisão); por outro lado, a escrita pode dar margem a algumas interpretações (ex: a pessoa foi muito &quot;direta&quot;, ou mesmo &quot;grossa&quot;, por uma frase curta, um texto em caixa alta ou mesmo pela ausência de uma resposta). Nesses casos, vale ponderar se, em determinados contextos, uma chamada breve de vídeo pode encurtar alguns caminhos.</p><p><strong>Para reuniões: </strong>Vale sempre lembrar de marcar as salas para permitir a reunião de pessoas que estarão fisicamente no escritório.</p><p><strong>Para interação com o time: </strong>Para quem está distante do QG é ainda mais importante a sinalização de status. Seja de progresso, impedimento (ou mesmo sucesso). Afinal, é a forma de manter a unidade do time: o time caminha junto, e não como iniciativas individuais.</p><p>No nosso caso, é <strong>muito importante</strong> atualizarmos o status do Jira (seja movendo os cards pelas colunas, alterando status das subtasks ou mesmo incluindo comentários por escrito). Um card “estacionado” muitos dias, sem alteração de status ou de comentários internos pode representar um possível bloqueio. Antecipar (se necessário) e informar para o time (incluindo stakeholders) é a melhor forma de manter uma boa linha de trabalho. Dessa forma, mesmo as pessoas que não conseguem participar das reuniões diárias conseguem estar por dentro de tudo o que acontece.</p><p><strong>Empatia do time</strong></p><p>O planejamento pode ser muito bem estruturado, mas, se o restante da equipe não tiver a mentalidade de que parte do time é trabalha remotamente, será difícil fazer as coisas funcionarem bem. Lembrar de incluir a equipe remota nas discussões que acontecem, às vezes, na mesa ou no quadro, ou mesmo no corredor, é desafiador. Algumas técnicas que podem ajudar são:</p><ul><li>Ao iniciar uma reunião, ter um checklist que inclua o item “Precisamos envolver alguém que está remoto?” — seja para participar da reunião, ou mesmo para sinalizar que não estarão disponíveis</li><li>Sempre que for possível antecipar, bloquear as agendas das pessoas para garantir que estarão disponíveis para as reuniões recorrentes.</li></ul><p>Na verdade, a melhor forma é encarar essa responsabilidade como compartilhada (entre o time e as pessoas que trabalham remotamente). A comunicação boa e regular é muito importante para manter a equipe alinhada nos mesmos objetivos.</p><p><strong>Materiais complementares</strong></p><p>Aqui tem umas dicas legais para organização para quem trabalha remoto, ou mesmo em home office. São alguns materiais complementares que valem muito a pena e são de consumo rápido:</p><p><strong>Leitura</strong></p><ul><li><a href="https://github.com/DyegoCosta/trabalhando-remoto">https://github.com/DyegoCosta/trabalhando-remoto</a></li></ul><p><strong>Podcast:</strong></p><ul><li><a href="https://hipsters.tech/como-e-o-trabalho-remotodesenvolvedora-home-office/">https://hipsters.tech/como-e-o-trabalho-remotodesenvolvedora-home-office/</a></li></ul><p><strong>Cursos:</strong></p><ul><li><a href="https://www.linkedin.com/learning/working-remotely-2/the-value-of-working-remotely">https://www.linkedin.com/learning/working-remotely-2/the-value-of-working-remotely</a></li><li><a href="https://www.linkedin.com/learning/paths/become-a-successful-remote-worker">https://www.linkedin.com/learning/paths/become-a-successful-remote-worker</a></li></ul><p>Tem alguma experiência para compartilhar? Ou ficou interessado em saber mais de como é trabalhar remotamente na PEBMED? Estamos aqui para lhe ouvir 🙂!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e33b59e8bbcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering subscriptions in iOS: What's new from WWDC 2019]]></title>
            <link>https://medium.com/pebmed/mastering-subscriptions-in-ios-whats-new-from-wwdc-2019-87f8f713974e?source=rss-2336696c3bca------2</link>
            <guid isPermaLink="false">https://medium.com/p/87f8f713974e</guid>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[in-app-purchase]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[subscription]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Pedro Gemal]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 13:42:15 GMT</pubDate>
            <atom:updated>2020-01-17T23:50:24.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTla3XeXOpPuyML3txPEfg.jpeg" /><figcaption>Offering multiple products with in-app subscriptions may be tricky. Here are some tips for what to (and not to) do.</figcaption></figure><p>Every year, as Apple Worldwide Developers Conference (<strong>WWDC</strong>) 2019 takes place in San Jose, California, new features and innovations are presented to the world.</p><p>As a developer that works daily with managing products running on subscription business model, it is extremely important to be up to date to all what&#39;s new from this standpoint.</p><p>Based on sessions <a href="https://developer.apple.com/wwdc19/302">302</a> and <a href="https://developer.apple.com/wwdc19/305">305</a> of this year&#39;s WWDC, and also on the following documentations (reach them in the end of this post), I’ve written some valuable tips for anyone willing to strive on subscriptions taking all the advantages of Apple In-app Purchases.</p><p>To start, 3 sentences to sum up what will change your life from now on regarding App Store Connect:</p><ol><li>Testflight: They reinforced the value of using public links for distribution to external testers. Now they’ve done Testflight Localization and included a feedback feature.</li><li>Feedback (screenshot and crash). Through the App Store Connect, we now can manage feedbacks.</li><li>Localization: Included more languages ​​and facilitated multi-country distribution. This will even be portrayed on product pages.</li></ol><p>And now, the most expected part of this article, <strong>what is really</strong> <strong>hot and</strong> <strong>new in StoreKit and subscriptions.</strong></p><p>While coding and testing the purchase flow, please make sure to note 3 important coding tips:</p><pre>SKStorefront: Used to display customer-specific purchases (by countryCode and device type).</pre><pre>TransactionObserver: you now can reload your product list based on StoreFront return. There is now an observer to validate that the purchase items offered are correct by region.</pre><pre>Pre-Orders App: It will become a parameter within the receipt to know which customers pre-ordered the product.</pre><p>While testing your subscriptions in your backend, please note that there will be a couple of new things regarding Server-to-Server Notifications.</p><p>First of all, please make sure you always return a 200 status code when receiving any notification.</p><blockquote>If you don&#39;t return a status code, you may receive the same notification again (up to three times) and this will mess things around. Believe me, I&#39;ve been on this place before. More than once.</blockquote><p>Also, make sure to comply with App Transport Security (currently managed by the subscription library).</p><p>Regarding receipt data, new fields will be added:</p><pre>unified_receipt<br>latest_receipt<br>latest_receipt_info<br>pending_renewal_info<br>status<br>environment</pre><p>As presented, unified receipt will now return the entire receipt on trigger [with limit of last 100 purchases] (which previously returned in / verifyReceipt). For more than 100 purchases from the same receipt (if you need this history indeed) they will stick with the verifyReceipt endpoint.</p><h3><strong>What about server-side notifications?</strong></h3><p>Regarding the notifications, there is a lot of new features (similarly, but at the same time differently, from what&#39;s been developed on Google&#39;s RTDN). Please make sure to handle the new ones (always looking for the lockup with original_transaction_id):</p><ul><li>DID_CHANGE_RENEWAL_STATUS: Whether the user cancels the automatic renewal. This must be the trigger for callback actions. Look at the following payload fields: auto_renew_status (true, which means it will renew, or false — always as a string). This notification is already available for the public.</li><li>DID_FAIL_TO_RENEWAL: Renewal charge failed. This is the case with grace period (“inactive” or “billing retry”). Make sure to look for the is_in_billing_retry_period field (1 represents being charged). The expires_date is in the past, as it would be the renewal date. This notification, and the following, are not yet available.</li><li>DID_RECOVER: This mean that the user was retrieved during retry. This may replace the renewal trigger. The renewal date may not change [unlike in Google Account Hold]. Must become subscription state as “active”.</li><li>PRICE_INCREASE_CONSENT: User has entered in the price change flow; this will include a field in the payload (price_increase_date). They recommend using a flag for this subscription (something like “price increase”). Make sure to track the payload price_consent_status (0/1) field.</li></ul><p>Regarding the already known notifications, they also presented some tips:</p><ul><li>INITIAL_BUY: Sent on user’s first in-app purchase. They recommend us to use some active / subscriber flag and make sure to enable the product usage immediately; content purchase_date_ms represents the start date of the subscription; web_order_line_item_id links purchase with other notifications.</li><li>INTERACTIVE_RENEWAL: will always come with a CANCEL notification (in case of upgrade); however, if the user re-subscribed after churn, we will only receive the trigger from INTERACTIVE_RENEWAL.</li><li>DID_CHANGE_RENEWAL_PREF: When user downgrades inside a subscription group.</li><li>CANCEL: When the user cancels through customer support, but also if he has upgraded his subscription. Make sure to track cancellation_date_ms.</li></ul><h3>So, how about a full subscription lifecycle?</h3><p>This was really helpful, and I do recommend you guys checking the videos listed in the beginning of this post. Regarding the subscription lifecycle itself, they also made some recommendations. When the new user subscribes, in addition to saving the original_transaction_id, they recommend us to link web_order_line_item_id to link with notifications (at this time, you will receive INITIAL_BUY’s). <br>In the case of renewal, there is no notification at this time. We follow with `/verifyReceipt` endpoint.</p><p>In case of subscription upgrade, CANCEL and INTERACTIVE_RENEWAL notifications will be sent. At this time, they recommend us keeping track the date of the upgrade (something like &quot;upgradeDate&quot;).</p><p>In case of cancellation, we recommend that we no longer use/verify Receipt, but rather DID_CHANGE_RENEWAL_STATUS notification.</p><p>For billing errors, look for DID_FAIL_TO_RENEW notifications. From then on, wait for DID_RECOVER in case billing retry works.</p><p>A small pause to talk about billing retry: They&#39;ve updated retry models using ML and new techniques, and concluded that most recoveries (80%) are within the first 16 days. On any recovery, make sure to immediately release the service (never too much to repeat this). Also, please note that the renewal date will be modified (subscription starts a new billing cycle and the paid service days are reinstated).</p><p>Another great announcement: Billing grace period will be also available! To implement it, you will need to authorize on App Store Connect (default will be 16 days — unlike Google Play, where you may select from a few options). The verify receipt endpoint will now contain a key referred to as the grace_period_expires_date in the payload. It may make sense to keep this date in your database, as well as for other platforms. For billing retry customer messaging, they reinforce the recommendation to use deeplinks to this path: apps.apple.com/billing. Now, Apple customer&#39;s can have up to 10 forms of payment, and the best way for each case will be chosen.</p><h3>So, that&#39;s it?</h3><p>This is just the first part of this session covering what&#39;s new about subscriptions in WWDC 2019. Make sure to look for part 2, where I will cover all about subscription offer best practices. See you soon! Any feedback will be appreciated!</p><h3>Additional resources</h3><ul><li><a href="https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html">https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html</a></li><li><a href="https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html">https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html</a></li><li><a href="https://developer.apple.com/app-store/subscriptions/">https://developer.apple.com/app-store/subscriptions/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f8f713974e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pebmed/mastering-subscriptions-in-ios-whats-new-from-wwdc-2019-87f8f713974e">Mastering subscriptions in iOS: What&#39;s new from WWDC 2019</a> was originally published in <a href="https://medium.com/pebmed">PEBMED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>