AIOHA + Flutter - Plugin - facing issues with web-app

By sagarkothari88 on 4/24/2025

Hello People on Hive,

AIOHA based flutter plugin for iOS & Android App is working fine but for web-app, it is giving me several errors & to be honest headache as well 🥺

Javascript won't load

Javascript won't load

At first, javascript it self won't load from plugin. If I add it directly into the project, it works fine. but If I do it via plugin, it simply won't work. On App side, script won't appear inside html as illustrated above.

Injection using iFrame

Injection using iFrame

So, I managed to inject using iFrame from flutter-plugin & it would appear in the example application's web-app. However, js won't execute. javascript under that iFrame simply won't execute most probably due to safety reasons.

Injection using Div

Injection using Div

After looking for options, I found div based injection. That to worked but javascript won't execute :(

Only if App uses JS directly

Only if App uses JS directly

it works only in this scenario - Example app must update it's HTML & bring js inside it. but that's not how plugin works. Manual drag & drop - isn't considered plugin However, at the moment, this manual drag & drop / copy-paste works

manual copy paste works

As you can see in the screenshot above, manual copy-paste in html works well. But as I said, it's not the expected solution for a plugin.

Goal

My Goal is that, any developer, who uses this package, just specify the name of package & start using it & it shouldn't require any manual copy-paste. However, I am far from that goal, at least for web-app. I am trying to achieve it.

Next Steps

  • ✅ iOS - HiveAuth integration
  • ✅ Android - HiveAuth integration
  • ✅ Upvote, Comment, Reblog, Follow, Unfollow etc
  • ⏳ Build a plugin so that we can use it in any internal application

❤️ Love the work I do, support @threespeak & me ❤️

Support @sagarkothari88

Vote sagarkothari88 as Hive Witness

Support @threespeak

Vote for 3Speak as Witness


Uploaded using 3Speak Mobile App

Comments (6)

bhr-curation's avatar @bhr-curation 4/24/2025

Ouch, that JS loading issue with the web-app looks rough! Hope you find a fix soon! 🐎

indiaunited's avatar @indiaunited 4/24/2025

This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens. HP delegators and IUC token holders also get upto 20% additional vote weight.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

image.png

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited.

aftabirshad's avatar @aftabirshad 4/24/2025

Great well done 👍

hivebuzz's avatar @hivebuzz 4/26/2025

Congratulations @sagarkothari88! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 34000 HP as payout for your posts, comments and curation.
Your next payout target is 35000 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD

You can view your badges on your board and compare yourself to others in the Ranking If you no longer want to receive notifications, reply to this comment with the word STOP

eolianpariah2's avatar @eolianpariah2 4/26/2025

good luck finding solutions to your challenges !INDEED

sagarkothari88's avatar @sagarkothari88 4/29/2025

@eolianpariah2

Your wishes helped. All issues are resolved.
via Inbox

ecoinstant's avatar @ecoinstant 4/28/2025

Hello Sagar! I spent the week using the distrator technology and talking a lot with @starkerz !! I am super excited to use this in my town in Colombia - would you mind sharing the link to the open source repository for the app?

sagarkothari88's avatar @sagarkothari88 4/29/2025

Hello @ecoinstant

You can start with apis.

Open distriator, right-click-inspect & take a look at network tab. Take a look at login request.

Implement log-in.

Start wth that. We'll continue discussion from there.
via Inbox

ecoinstant's avatar @ecoinstant 4/29/2025

Thank you for sharing - that's a beautiful swagger you have there! I am on the case!