Experimenting with AIOHA package & trying to integrate it in flutter project
threespeak·@sagarkothari88·
0.000 HBDExperimenting with AIOHA package & trying to integrate it in flutter project
Hello @techcoderx Saw your annoucement that now you are @vibecoderx & was april-fooled for almost 1 hour 🤣 Realized only after reading comments ## Understanding Setup Let's get to the subject. I am experimenting with AIOHA & trying to integrate it in Flutter project. As you know that, flutter project supports multiple platforms. My flutter project intends to support web, iOS & Android. To start with, I'm focusing on web support. Here is how flutter-web-app folder structure looks like.  I have added following script tag in body. ``` <script type="module"> import * as Aioha from "./aioha@1.6.0-beta.4.js"; window.Aioha = Aioha; console.log("Aioha initialized", aioha); aiohaInitialized = true; </script> ``` In another script tag, I've added following code to make sure that I access AIOHA only after it is available. ``` var aiohaInitialized = false; let aioha = null; async function someFunctionToUse(some, params) { if (!aiohaInitialized) { console.error("Aioha not initialized"); // try again after few miliseconds when aioha@1.6.0-beta.4.js is available/downloaded return; } if (aioha === null) { // we have aioha.js, let's set up an aioha instance aioha = window.Aioha.initAioha({ hiveauth: { name: "AiohaExperiments", description: "Testing aioha login - keychain & hiveauth methods", }, }); } // we are good to go to use aioha } ``` ### Understanding Error HiveKeychain based login works very well & I didn't face any error. However, HiveAuth started giving me error.  So, when I tried logging in with HiveAuth, I got error.  Error from console  Network Tab from Chrome Inspector  ### Next Steps - I request @techcoderx to look into this issue. - I assume by bundling together, we can avoid that issue. I'm not js/front-end expert here so may be I am wrong. - Once, this issue is solved, I'll switch to iOS & Android integration ----- ❤️ Love the work I do, support @threespeak & me ❤️ <center> [](https://witness.the-hive-mobile.app/#/witnesses/@sagarkothari88) ### [Vote sagarkothari88 as Hive Witness](https://witness.the-hive-mobile.app/#/witnesses/@sagarkothari88) [](https://witness.the-hive-mobile.app/#/witnesses/@threespeak) ### [Vote for 3Speak as Witness](https://witness.the-hive-mobile.app/#/witnesses/@threespeak)
👍 theindiankid, threespeakvoter, somecallmejake, bhr-curation, djblendah, mv-curacion, midnight-studio, freed99, cryptoferyel, pleo1542, s3rg4, chechostreet, alicia2022, gornat, galaxiavtuber, hashkings, hk-curation, rondonshneezy, ripperone, cocaaladioxine, idea-make-rich, unpopular, nainaztengra, meanbees, piensocrates, tekraze, letusbuyhive, oneray, josequintana, humoalex, balvinder294, leomolina, penguinpablo, cryptonized, funnyman, alphacore, hungrybear, jacuzzi, hive.friends, aafeng, quochuy, steemulant, pocketjs, steemtelly, techcoderx, onelovedtube, hive-134220, silasvogt, gaborockstar, bishoppeter1, happymichael, originalmrspice, mrchef111, darkfuseion, gisi, illuminationst8, joeytechtalks, brettblue, toddmck, qila, melor9, icepee, dlike, cowboysblog, iamangierose, zeruxanime, gabrieljr, chrono88, reyn-is-chillin, aletoalonewolf, gabbyg86, humanearl, bigbos99, iamleicester, neeqi, neopatriarch, sku77-poprocks, crowbarmama, brainpod, smacommunity, st3llar, adventuroussoul, jeronimorubio, raoufwilly, shermanedwards, gray00, amymya, camuel, openmind3000, melinda010100, good-karma, esteemapp, esteem.app, ecency, ecency.stats, ecency.waves, tonysayers33, aperterikk, rt395, sayee, sorin.cristescu, ahmadmangazap, digi-me, blumela, imfarhad, archon-gov, pokerarema, winly, capp, menzo, ketcom, ykretz, vixmemon, vikbuddy, ryanaa, nenio, thekittygirl, innerblocks, thedolphincocoon, ladyangelwolf, theterminal, cescajove, rc-assist, yummycruz1, sustainablyyours, joeyarnoldvn, thegreatdayne, szr-network, hive-108278, corvidae, bambukah, eonwarped, chris-uk, stayten, failingforward, pinkchic, salicj, yzamazing, monkeymanking, itz.inno, dandelion24, bananaklatbarat, tryskele, madilyn02, wesphilbin, hive-193566, simms50, yisusth, mdakash62, sanjeevm, indiaunited, inuke, bobinson, bala41288, dynamicrypto, kamaleshwar, codingdefined, jatinhota, lifecruiser, vishire, frames, bhattg, vinamra, rainbowbala, ashley4u, ragavee, khan.dayyanz, badfinger, r-nyn, muterra, gamerzaza, deimage, prosocialise, kilvnrex, emreal, eunice9200, solumviz, abhay2695, dev.maverick, flourishandflora, adeade123, bbypanda4, hardikv, etblink, shonyishere, spydo, indiaunited-bot, ezunjoshy, karishmasingh711, bozz.sports, dikshabihani, yogeshbhatt, okluvmee, disha30, chandra.shekar, kannannv, heteroclite, marynn, fasacity, imacryptogeek, kanibot, godfather.ftw, photolovers1, tebesc, balaz, jellyvine, wend1go, fieryfootprints, silenteyes, maujmasti, bsameep, ahlawat, acgalarza, herman-german, deepresearch, szukamnemo, techguard, mohammadsajad, tanzil2024, mengao, gadrian, imbartley, magic.byte,