-
Notifications
You must be signed in to change notification settings - Fork 77
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
Info needed for adding Native Mode in iOS #924
Comments
As an addititon: iOS works as described here: https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537172-add
The that I use is "mskNative". But nothing happens. |
There is some code already for this, as I considered creating a Gtk version of melodeon - and Gtk uses WebKit. To make this work you need to pass
e.g.
List of native params/functions(?) is:
|
Wohoooo. There we go. I could fetch nativeColors and nativeTheme!!! It was a little bit combersome not use a JSON string, but well... Concerning the nativeColors I got: Is there a way or rule how I could get the respective "font color" and "markup font color" in addition to the top and bottom background? Another issue would be to select for a dark or light status bar, but that's tricky in ios... |
This code was originally written for Melodeon, and I assumed string parsing would be quicker than having to call a json decoder each time. The problem with making it json is that I'd then need to add code to build the json, etc. and I'm not convinced its really worth it. Sorry, no current way to get text colour - but both are actually hard-coded for dark/light, so you could just do that. |
Thanks for that info. I got further... Now it seems that |
As everything else works, shall I close this? |
If you just give me a hint on what the AccentColor does as I was not able to figure that out. That would be great. |
|
Just to let you know, for 5.2.0 I'm adding the ability to set top and bottom padding for the page. e.g. for 32px top and 12px bottom you'd pass: http://server:9000/material/?topPad=32&botPad=12 I've done this so that in my Android APK I can use all the screen - so in the notification (top) and navigation (bottom) areas. As MaterialSkin 5.2.0 will allow the user to have the now-playing backgound fill the whole screen. Using this is also easier that detecting when Material changes the top/bottom toolbar colours and manually setting the OS areas to the required colour. |
Hej,
I do not know where to ask elsewhere, so please mind me asking here...
I am trying to get a kind of JavascriptInterface working for an iOS app. Just for fun so far.
Unfortunately, iOS does not come with the Android JavascriptInterface...
The question I have now is: How does the mechanism work?
Is there a messageHandler that fires up the message that will be sent to the client when I change something?
If so can you name me the message handle and how to trigger that?
My test url: http://:9000/material/?nativeColors
I am not checking for NativeReceiver and mskNative. Then I changed the Color Theme in the Skin, but I do not receive any message.
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: