Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip: Make it more iPad friendly #20

Closed
BertNienhuis opened this issue Aug 28, 2020 · 9 comments
Closed

Tip: Make it more iPad friendly #20

BertNienhuis opened this issue Aug 28, 2020 · 9 comments

Comments

@BertNienhuis
Copy link

With some easy code in top of index.html header you can make it more user friendly on the iPad as webapp. When you open the app inside the browser, you can than choose "Add to homescreen". When opened directly from the homescreen, all the controls like favorites and address bar are hidden and you will get a more native experience.

Following code inside header.

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="VFRMap">

@lian
Copy link
Owner

lian commented Aug 28, 2020

nice!

i don't have an ipad to test. did/can you test this by adding it to the your index.html as described here: https://github.com/lian/msfs2020-go/tree/master/vfrmap#change-visualisation ?

happy to add it to next release then.

@BertNienhuis
Copy link
Author

That was exactly what I did :-), I also made the font smaller. 1.2em I think. Great feature to experiment with the index.html

@lian
Copy link
Owner

lian commented Aug 28, 2020

cool, will add those header tags in next release.

was also planning to add a hide and + - button to the black header.

@BertNienhuis
Copy link
Author

Awesome! That’s great. Just make sure the font is also a bit smaller, otherwise it will take more than one line. (Even in landscape mode).

By the way; it feels running with VFRMap open that it introduces some stuttering. My fps doesn’t seem to be affected, but it feels stuttery. Do you experience the same? I saw something about performance regarding sim connect api in the upcoming patch. Hopefully that makes it more faster.

@lian
Copy link
Owner

lian commented Aug 29, 2020

lets wait if the new game update solves this.

also mentioned here #2

if not, we could decrease how often we get new values from the sim. i read that this also solves the issue. currently we fetch a new data every 200ms, and see if there is new data every 100ms

msfs2020-go/vfrmap/main.go

Lines 173 to 174 in 9e8bf05

simconnectTick := time.NewTicker(100 * time.Millisecond)
planePositionTick := time.NewTicker(200 * time.Millisecond)

lian added a commit that referenced this issue Aug 31, 2020
#20

BertNienhuis Tip: Make it more iPad friendly
@lian
Copy link
Owner

lian commented Aug 31, 2020

pushed the headers to master, will be in next release. thank you @BertNienhuis !

@lian lian closed this as completed Aug 31, 2020
@BertNienhuis
Copy link
Author

Great! I will test it tonight!

@lian lian mentioned this issue Sep 6, 2020
@zazaboeing
Copy link

Great! I will test it tonight!

Hi Bert! Did you manage to make it work? Can you help us on #35 ? Thanks

@BertNienhuis
Copy link
Author

Great! I will test it tonight!

Hi Bert! Did you manage to make it work? Can you help us on #35 ? Thanks

Yes it’s works perfectly. I think it’s already solved. You have too refer to the local network IP of the computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants