heb12 / heb12mobile

Legacy Code for Heb12 Android App
https://heb12.github.io/heb12mobile/app/src/main/assets/index.html
GNU General Public License v3.0
8 stars 3 forks source link

Common Issues with WebView - May Need Standalone #26

Open AmazingMech2418 opened 4 years ago

AmazingMech2418 commented 4 years ago

I've tried using WebView in the past and know it will not work properly on all devices due to the inability to read certain CSS properties. It may be best to create a standalone version using basic Android XMLHTTP requests and using a textview object to store the Bible verses instead of a div in a web app. Making it work in a standalone version may also allow an offline version as well.

petabyt commented 4 years ago

I have tried a few times to make the app without a WebView, but it's just too difficult. It was much easier to use something I already am very familiar with than to spend a few years trying to learn how to make classic Android Apps.

Making it in HTML/CSS/JS also had some benefits, like being able to use the app without installing it. (v.ht/heb12)

I have tested the app on many different versions of Android, and they work well. I'm not sure what you mean by an offline version, Heb12 Mobile already works offline.

MasterOfTheTiger commented 4 years ago

This program simply is a webview loader for HTML, CSS, and JavaScript which is also downloaded onto the device. It is not native as it could be, but it works pretty well.

I would like to learn Java/Kotlin as well, but I don't have the time to learn a completely different programming language at the moment.

AmazingMech2418 commented 4 years ago

@pufflegamerz I was talking about issues I've experienced in the past that may arise here during updates of this app. These issues were specifically the WebView being unable to read certain CSS properties including the display property.

petabyt commented 4 years ago

I've tested it on old Android Versions, and the display property works fine.

petabyt commented 4 years ago

@amazinigmech2418 I know this is closed, but we are actually working on a new rewrite in Golang.

It should work natively, as you requested.

AmazingMech2418 commented 4 years ago

Okay. I was thinking more of native as in Java or Kotlin, but I guess Go would work. However, Go is one of the languages I do not yet know, so I don't think I would be much of a help with that one.

MasterOfTheTiger commented 4 years ago

Learn Go. It is simple. Also, Kotlin/Java is not easily portable as we'd like. And there are some good libraries for cross platform Go apps. Plus Go is nice to work with most of the time. It is simple, unlike many alternatives. But it is also fast, and we can reuse code on all platforms, plus server.

petabyt commented 4 years ago

Learn Go.

I think there are some other areas @amazinigmech2418
can help out in that are not written in Go.

It is simple.

Go is not easy. It takes a while to get used to.

petabyt commented 4 years ago

@amazinigmech2418 We have some web-based projects I am working on if you would like to help out on. And thanks for your contributions here.

AmazingMech2418 commented 4 years ago

@pufflegamerz So, what are the web-based projects? Also, anything Node or Python I should be able to help with.

AmazingMech2418 commented 4 years ago

@MasterOfTheTiger I'm actually planning on learning Go soon. I just need to learn it still.

petabyt commented 4 years ago

@pufflegamerz So, what are the web-based projects? Also, anything Node or Python I should be able to help with.

One is http://api.heb12.com/www/ GithubFan also wanted to help out on that.

AmazingMech2418 commented 4 years ago

@pufflegamerz So, what is the repo?

petabyt commented 4 years ago

https://code.heb12.com/heb12/www It is not on Github.

AmazingMech2418 commented 4 years ago

@pufflegamerz How do I edit it since it isn't on GitHub?

petabyt commented 4 years ago

@pufflegamerz How do I edit it since it isn't on GitHub? You probably will have to make an account there. I could mirror it on Github, but that I'm not sure how that would work.

petabyt commented 4 years ago

I will consider adding Github sign in to our code site. That would be helpful.

AmazingMech2418 commented 4 years ago

@pufflegamerz Could you add a GitHub sign in? By the way, I know Go now. I still have to learn string manipulation and stuff, but I know the overall syntax.

petabyt commented 4 years ago

@amazinigmech2418 That won't be easy. Could not find any documentation on how to add Github sign in.

AmazingMech2418 commented 4 years ago

@pufflegamerz https://developer.github.com/v3/guides/basics-of-authentication/ https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/ Maybe that could help?

MasterOfTheTiger commented 4 years ago

Maybe. But we can't dig deep into the Gitea source code. Gitea has OAuth, but we couldn't get it working for some reason.

petabyt commented 4 years ago

OpenID looks good, I would just make an account on that.

AmazingMech2418 commented 4 years ago

@pufflegamerz @MasterOfTheTiger I just signed up. Though, it seems like I still have to be added to the Heb12 organization there.

MasterOfTheTiger commented 4 years ago

Yep. I just invited you.