In-app-purchase integration journey & Next Steps

in blurt •  last year 

Hello Blurt Community Members,

With this post, I'll explain about the in-app-purchase integration journey for MyBlurtApp.

In-App-Purchase

  • In-app-purchase is slightly complex than a regular app development.
  • One is supposed to add products under AppStoreConnect
  • One needs to specify pricing for each country.
  • One is also required to provide screenshots from App which indicates where to locate in-app-purchase in the app & this can be useful for AppReviewers
  • Provide all possible details for AppReviewers to test & validate in-app-purchase.
  • Above all are just actions required on the AppStoreConnect admin side.
  • Development activities are different.
  • Developer is required to handle if iOS Device is Jailbroken or not.
  • Developer is required to check if internet connectivity is available or not.
  • Developer is required to handle if payment methods are invalid.
  • Developer is required to check if in-app-purchase is available in such country or not.
  • Handle If user cancels the payment in between.
  • Handle if purchase is completed.
  • What if user tries to restore the purchase?
  • And the list goes on.

Hunt for Libraries

  • By looking at complexity, My first thought was to go with a third-party service.
  • I must not invest time & energy in re-inventing the wheel.
  • There should be some service which I can use & avoid all the hassle.
  • With simpler & easier solution, I can complete IAP at earliest.

RevenueCat

  • RevenueCat is leading service provider.
  • It only charges 1% ONLY if your business goes above $2500
  • So, I was happy with their pricing.
  • I went ahead & integrated RevenueCat SDK.
  • After integrating, I realised that I missed something.
  • I wish, I read that line carefully on the their homepage.
  • RevenueCat is for SUBSCRIPTIONS

Screenshot 2023-09-30 at 8.08.27 PM.png

  • Subscriptions are for e.g. upgrading user to PRO / ULTIMATE memberships.
  • We don't want subscriptions in MyBlurtApp.
  • We want user to paid-sign-up.
  • So, I realised, I took a wrong turn here.

SwiftyStoreKit

  • I have now implemented Swift Code with library called SwiftyStoreKit
  • MyBlurtApp is written in FlutterSDK with Dart Programming language.
  • So, I am calling a bridge with which I can execute Swift programming language code from Dart Code. (Native Code from Flutter App)

Wrong Product type selected

  • I first created a non-consumable product.
  • "Non-Consumable Product" = you purchase once in life time.
  • I was wrong here.
  • User can use the app to create more accounts / multiple sign-ups.
  • So, I had to delete "Non-Consumable Product" & create a "Consumable Product"
  • One Consumable product = One Sign up.

In-App-Purchase issue

  • I filled entire form correctly but in-app-purchase stayed in draft mode.
  • Due to this, I couldn't trigger in-app-purchase from the app.

Screenshot 2023-09-30 at 8.06.49 PM.png

  • I tried hard to find the root cause but found none.
  • I even attempted submitting app with in-app-purchase but it didn't help.
  • Once of my guess is - it is due to unaccepted iOS Paid Applications contract. I've asked Nalexadre to look into it.

What to do now?

  • I'm waiting for Nalexadre to take an action & give confirmation on it.
  • Once In-app-purchase is moved to a different state (other than Draft mode), I'll be able to implement it.
  • I've started looking into account creation script.

ChatGPT.

  • At first, I asked ChatGPT to give me account creation script.
  • Here is the piece of code which it gave it to me.
const blurtjs = require('blurt-js');
const blurtApi = 'https://api.blurt.blog';
blurtjs.api.setOptions({ url: blurtApi });
const { PrivateKey, PublicKey, key_utils } = blurtjs;
const privateKey = PrivateKey.generate();
const publicKey = privateKey.toPublicKey();
const newAccountUsername = 'your_new_account_name';
const creatorUsername = 'existing_account_name';
const creatorPrivateKey = 'your_existing_account_private_key';

const createAccountOp = blurtjs.operations.createAccount(
  creatorUsername,
  newAccountUsername,
  publicKey,
  publicKey,
  creatorPrivateKey
);
blurtjs.broadcast.send(
  { operations: [createAccountOp] },
  { posting: creatorPrivateKey },
  (err, result) => {
    if (err) {
      console.error('Error creating account:', err);
    } else {
      console.log('Account created successfully!', result);
    }
  }
);
  • I must say, not bad for the ChatGPT but it's not entirely correct.

SelfHelp

image

What's next?

  • Resolve AppStoreConnect IAP issues
  • Integrate Account Creation Script
  • Get a solution to unpublish all the posts & comments from an account
  • Get a solution for deleting an account (just the state - like a mute button)

Support me back

Vote me as witness


2023-09-29 - @sagarkothari88's Curation ❤️ Report

  • My curation bot (or I've) decided to ❤️ love the posts of following users.
  • Don't forget to motivate below mentioned users by clicking the links provided.

UsernameLink
@romanos.briannehttps://blurt.blog/@romanos.brianne/instant-breakfast
@circlebubblehttps://blurt.blog/@circlebubble/daredevil
@afjal01https://blurt.blog/@afjal01/hello-guys-it-takes-a-lot-of-hard-work-to-cultivate-potatoes-sometimes-it-happens-that-the-farmer-also-incurs-loss-what-has-to
@cryptopiehttps://blurt.blog/@cryptopie/it-is-too-late-for-gardening-now-but-it-is-also-my-priority-to-happen-again-because-of-soaring-prices-of-food
@cleanenergygarrohttps://blurt.blog/@cleanenergygarro/2e4swk-righty-tighty-lefty-lucy-motorcycle-tai-chi
@nasoehttps://blurt.blog/@nasoe/gmrke-blurt-diary
@boddhisattvahttps://blurt.blog/@boddhisattva/4ebcbg-river-landscape
@manuverthttps://blurt.blog/@manuvert/actifit-manuvert-20230929t011232790z
@lightsplasherhttps://blurt.blog/@lightsplasher/actifit-lightsplasher-20230929t015909163z
@bennywb56https://blurt.blog/@bennywb56/71ihep-koes-plus-album-selalu-di-hatiku-jiwa-nusantara
@chorockhttps://blurt.blog/@chorock/leo-price-chart-has-descending-wedge-pattern
@jb123https://blurt.blog/@jb123/a-quick-tour-in-hyper-mart-in-iligan-city-mindanao-philippines
@brian77https://blurt.blog/@brian77/water-melon-fruits
@mein-senf-dazuhttps://blurt.blog/@mein-senf-dazu/unwanted-time-for-my-game-ungewollt-zeit-fuer-mein-spiel
@mariyamsiddiquihttps://blurt.blog/@mariyamsiddiqui/lighting-everywhere
@osjhttps://blurt.blog/@osj/4mcv96
@deemmosquedahttps://blurt.blog/@deemmosqueda/mangaon-ta-linabug-nilabug-nga-ubod-halawig
@bangsamhttps://blurt.blog/@bangsam/fotografi-hitam-putih-28-september-2023
@annesantoshttps://blurt.blog/@annesantos/adobong-pusit-squid
@khanarshiyahttps://blurt.blog/@khanarshiya/indian-cuisine-egg-curry
@jujukimhttps://blurt.blog/@jujukim/6m5aap
@yoieuqudniramhttps://blurt.blog/@yoieuqudniram/actifit-yoieuqudniram-20230928t153015687z
@nainaztengrahttps://blurt.blog/@nainaztengra/memorial-tower-in-ahmednagar
@jlphotographyhttps://blurt.blog/@jlphotography/my-new-and-dear-client-yenny-executive-photos
@onerayhttps://blurt.blog/@oneray/women-are-not-accepted-no-exception-1695463162627
@joyrojashttps://blurt.blog/@joyrojas/my-first-time-experiencing-sore-eyes
@psychkrhozhttps://blurt.blog/@psychkrhoz/feeling-lazy-today-mcdelivery-is-the-key
@animal-shelterhttps://blurt.blog/@animal-shelter/tales-about-animals-how-the-dog-was-looking-for-a-friend
@r2cornellhttps://blurt.blog/@r2cornell/curation-report-52-blurt-for-r2cornell-s-discord-community
@puspasari75https://blurt.blog/@puspasari75/wsrxe-lidah-buaya
@nenengbasmayorhttps://blurt.blog/@nenengbasmayor/backyard-gardening
@strikeopawhttps://blurt.blog/@strikeopaw/blurt-power-up-from-15k-to-30k-100k-goal
@shahira.arthttps://blurt.blog/@shahira.art/college-life-exam-time-solo-travel
@rubelynmacionhttps://blurt.blog/@rubelynmacion/word-scramble-game25
@shaungerowhttps://blurt.blog/@shaungerow/actifit-shaungerow-20230929t054934145z
@cryptovijayhttps://blurt.blog/@cryptovijay/38am74n811d
@danmaruschakhttps://blurt.blog/@danmaruschak/actifit-danmaruschak-20230929t035309129z
@zzan.atomyhttps://blurt.blog/@zzan.atomy/rm-2022-9-6
@kyjuhttps://blurt.blog/@kyju/7tgtj9
@we1https://blurt.blog/@we1/2wszqb
@dodoimhttps://blurt.blog/@dodoim/7btgva
@bendotrihttps://blurt.blog/@bendotri/2duqkc-mydailyflower-friday-asoka
@sonsona2017https://blurt.blog/@sonsona2017/swimmingpool
@hanginhttps://blurt.blog/@hangin/spooky-beach-angourie-and-why-is-it-call-spooky-beach
@baibouahttps://blurt.blog/@baiboua/immerse-in-nature-and-delicious-food-at-the-river-coffee-1695972027493
@krevasilishttps://blurt.blog/@krevasilis/daily-meal-55-lasagna
@kryptodennohttps://blurt.blog/@kryptodenno/7000-blurtpower-delegation-raffle-delegationsverlosung-1079-incl-winner-of-1071
@matthew.buahttps://blurt.blog/@matthew.bua/blurt-jackpot-challenge-guess-the-thai-price-at-eleven-1695906197345
@headcornerhttps://blurt.blog/@headcorner/blurt-daily-progress-last-day-of-the-boat-vacation
@dobartimhttps://blurt.blog/@dobartim/between-dreams
@abbak7https://blurt.blog/@abbak7/actifit-abbak7-20230929t053940442z
@ieronimushttps://blurt.blog/@ieronimus/weird-dreams-249
@khrom-proposalshttps://blurt.blog/@khrom-proposals/post-financing-blurt-promotion-proposal-2023-09-29-eng-pl
@tezzmaxhttps://blurt.blog/@tezzmax/thoughts-and-strokes-v-scribble-drawing
@allaboutphhttps://blurt.blog/@allaboutph/savor-the-symphony-of-flavors-sauteed-mixed-veggies-delight
@annlocsinhttps://blurt.blog/@annlocsin/christmas-tree-decoration
@vek2xhttps://blurt.blog/@vek2x/chicken-inasal-with-rwcipe
@imransoudagarhttps://blurt.blog/@imransoudagar/x7hxf-healthy-living-24th-september
@jasonmunapaseehttps://blurt.blog/@jasonmunapasee/7sjbpx-yellow-trumpet-flower
@dsc-r2cornellhttps://blurt.blog/@dsc-r2cornell/curation-report-47-blurt-for-r2cornell-s-discord-community
@lxsxlhttps://blurt.blog/@lxsxl/next-stop-london-deu-eng
@bai123https://blurt.blog/@bai123/2oaqqv
@justyyhttps://blurt.blog/@justyy/another-hacktoberfest-2023
@franciscoluishttps://blurt.blog/@franciscoluis/sonnet-giving-time-to-time-by-francisco-luis-arroyave-tabares-1695426240682
@bastilinhttps://blurt.blog/@bastilin/edificio-voxelart-con-modificaciones-y-acabado-final-1695996090831
@eisshttps://blurt.blog/@eiss/world-rabies-day
@ace108https://blurt.blog/@ace108/5stvvq-happy-mid-autumn-festival-video-or-by-ace108
@marc-allariahttps://blurt.blog/@marc-allaria/sunsets
@susanli3769https://blurt.blog/@susanli3769/3dgtpi
@myanmarkokohttps://blurt.blog/@myanmarkoko/1695998810518
@helengutier2https://blurt.blog/@helengutier2/have-several-alternatives-tener-varias-alternativas-1695912506289
@sabushttps://blurt.blog/@sabus/healthy-teeth-tips
@bonyenglucerohttps://blurt.blog/@bonyenglucero/eating-santol
@bo022https://blurt.blog/@bo022/actifit-bo022-20230929t152006258z
@tonybadhttps://blurt.blog/@tonybad/actifit-tonybad-20230928t223052494z
@asifniazi01https://blurt.blog/@asifniazi01/benefits-of-eating-bananas
@tomoyanhttps://blurt.blog/@tomoyan/daily-delegation-payout---2023-09-29-20230929t120152z
@tekrazehttps://blurt.blog/@tekraze/hj5vs1um3uv
@cryptospahttps://blurt.blog/@cryptospa/actifit-cryptospa-20230929t064317755z
@joshbamhttps://blurt.blog/@joshbam/moderation
@wwdhttps://blurt.blog/@wwd/6ckcmp
@jasonroblon05https://blurt.blog/@jasonroblon05/pink-sun-talagsaong-panghitabo
@powerclubhttps://blurt.blog/@powerclub/let-s-win-blurtpower-delegation-with-powerclub-5
@md-sagorhttps://blurt.blog/@md-sagor/3b7nt2
@yopekshttps://blurt.blog/@yopeks/game147-guess-the-pictures-and-win-blurt
@afjal01https://blurt.blog/@afjal01/how-to-earn-lakhs-of-rupees-from-tomato-farming-know-when-it-should-be-done-and-how-much-it-will-cost
@kgakakillerghttps://blurt.blog/@kgakakillerg/beautiful-alien-glitchy-monkey-original-digitalart-i-post-new-creations-daily
@andy4475https://blurt.blog/@andy4475/my-thursday-nature-themed-blurt-photography-blog-28-09-2023
@kahkashanrkployhttps://blurt.blog/@kahkashanrkploy/terracore-upgraded-my-stash-size-and-favor-for-better-crit-hit-luck-and-dodge-percentage
@kamranrkployhttps://blurt.blog/@kamranrkploy/here-is-why-we-might-see-something-big-from-golem-overlord-in-coming-days
@cryptopiehttps://blurt.blog/@cryptopie/it-is-too-late-for-gardening-now-but-it-is-also-my-priority-to-happen-again-because-of-soaring-prices-of-food
@ilovemylifehttps://blurt.blog/@ilovemylife/park-scenery
@nainaztengrahttps://blurt.blog/@nainaztengra/riayy-flowers-on-the-way
@hugo1954https://blurt.blog/@hugo1954/auditoria-y-seguridad-informatica-en-general-en-una-distribucion-de-codigo-libre-y-abierto-kali-linux-esp-eng
@cosmicboy123https://blurt.blog/@cosmicboy123/fauna-de-la-peninsula-de-yucatan-arana-patona-de-casa
@onchain-curatorhttps://blurt.blog/@onchain-curator/occ-s-art-of-curation-or-29th-september-2023
@cupvoterhttps://blurt.blog/@cupvoter/announcing-of-winner-s-from-our-riddle-challenge-12
@steemmillionairehttps://blurt.blog/@steemmillionaire/actifit-steemmillionaire-20230929t170645541z
@soniaphttps://blurt.blog/@soniap/alicante
@bigbdphttps://blurt.blog/@bigbdp/cronica-de-una-muerte-anunciada-4-bigverso
@mc5punkhttps://blurt.blog/@mc5punk/eng-esp-drawing-mickey-mouse-dibujando-a-mickey-mouse
@aaronplandohttps://blurt.blog/@aaronplando/lechon-manok-para-panihapon
@animal-shelterhttps://blurt.blog/@animal-shelter/the-comedy-of-chicken-coop-politics-bringing-three-chicken-families-together
@sariana23https://blurt.blog/@sariana23/playa-el-yaque-margarita-venezuela
@rubelynmacionhttps://blurt.blog/@rubelynmacion/have-some-fun-solve-and-earn-blurt-game-171
@benwb56https://blurt.blog/@benwb56/my-black-and-white-photography-1092
@larasbpnhttps://blurt.blog/@larasbpn/indahnya-bunga-damiana
@sweetpiebpnhttps://blurt.blog/@sweetpiebpn/black-and-white-photography-28-september-2023
@bangsamhttps://blurt.blog/@bangsam/fotografi-hitam-putih-28-september-2023
@ydavgonzalezhttps://blurt.blog/@ydavgonzalez/problema-matematico-del-dia28-09-2023
@strikeopawhttps://blurt.blog/@strikeopaw/did-you-know-courtesy-flag
@brian77https://blurt.blog/@brian77/playing-baseball
@circlebubblehttps://blurt.blog/@circlebubble/off-track-ur-spar
@mtravelhttps://blurt.blog/@mtravel/batumi-sunset-over-the-black-sea
@boddhisattvahttps://blurt.blog/@boddhisattva/2paad5-sunset-river-landscape
@lightsplasherhttps://blurt.blog/@lightsplasher/actifit-lightsplasher-20230929t015909163z
@manuverthttps://blurt.blog/@manuvert/actifit-manuvert-20230929t011232790z
@aresterishttps://blurt.blog/@aresteris/actifit-aresteris-20230928t013313261z
---

Support me back

Vote me as witness

Download Android App from Google Play Store.

https://play.google.com/store/apps/details?id=app.blurt.my

Download PWA App on iOS or Android


Cheers
Have a good one

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!
Sort Order:  
  ·  last year  ·  

I hope that you can be able to create a mobile app soon by solving these complications that Apple is requiring you to do despite of the conflict on how Blurt blockchain works which is different from the sister chains. @sagarkothari88 plus the fact that almost all devs doesn't want to involve themselves in this platform due to the pressure of their peers, being coerced, and all that but at least we are in a peaceful platform with more potential to grow and we might see it soon.


Posted from https://blurtlatam.intinte.org

Can't agree more. Let's just hope that Apple resolve all these issues & we make it on the AppStore.

  ·  last year  ·  

Already supported your witness.

Screenshot_20231001-195023_Chrome.jpg

Thank you

  ·  last year  ·  

Thanks for mention and for your support!

  ·  last year  ·  

image

Hi @sagarkothari88, great news! Your content was selected by curators @nalexadre, @oneray to receive a special curation from BeBlurt 🎉 Don't hesitate to upvote this comment as the curators will receive 80% of the rewards for their involvement.

You can support us by voting for our witness, our decentralized funding proposal, or through delegation. You're also welcome to join our Discord server 👉 https://discord.beblurt.com

image
*For a delegation of 45,000 BLURT 👉 https://beblurt.com/mydelegation/@beblurt

image
BeBlurt (Blurt frontend) 👉 https://beblurt.com
on IOS/Android 👉 https://beblurt.com/s/aMGBrg

  ·  last year  ·  

Thank you for your support 🙏🙏🙏

  ·  last year  ·  

Waah bhai sahi h .. Badhiya kr rahe ho

kya badhiya. kuchh ho nai raha. attempt pe attempt. attempt pe attempt.

Apple ko chahiye Full account deletion - bolo kaha se lau?

Apple ko chahiye - yaa to free, yaa to paid sign-up, bolo kaha se lau?

Akele ho ni sakta - sirf app dev hun :(

Congratulations! 🏆

You have recieved a coconutty upvote! 🥥
Thank you for contributing to the Blurt Blockchain!
Keep up the great work!

Curated by @outofthematrix!



Posted from https://blurtlatam.intinte.org