About Inappbrowser View

Asked 1 years ago, Updated 1 years ago, 88 views

When using Inappbrowser, I don't know how to implement:
Please let me know.

·How to display the header part of the lower layer surface
·How to display the footer prepared by the app after displaying it

In order to inform users that it is an in-app browser, I think the above-mentioned ingenuity is essential.
For example, when I click on a specific site in the link collection and display it in the in-app browser, I cannot recognize that it is displayed in the application...

Also, when I use Inappbrowser, if I use location=yes, I get <> and x which look pretty bad.
I would appreciate it if you could let me know how to correct this.

If possible, I would appreciate it if you could give me an example.
(If it is implemented by someone's app, I would like to install it and check it.)

Thank you for your cooperation.

javascript monaca html html5

2022-09-30 21:13

1 Answers

I don't know the prerequisites such as the plan you are using, but there are about two...

InAppBrowser is Monaca's Cordova plug-in.
If the UI provided by the Cordova plug-in does not suit your purpose,
Create your own plug-in to view WebView or
Either give the sandbox attribute and display it in iframe.

It depends on the app, but
If it is an iframe, it is not difficult.
However, it is dangerous to wander around unfamiliar web pages.
I think it's safe to add sandbox just in case.

As for creating plug-ins,
If you want to use Monaca, you need an account with Gold plan or higher.
...if you have the ability to create plugins in the first place
I honestly recommend that you develop it with Cordova.

add
By the way, the cordova plug-in we use is here.
Monaca documentation is here.
I don't know what kind of web page you're going to see, but
If you only want to show your managed web pages,
Hide the toolbar and create a UI on the web page
You can also control the URL by adding a hash or request while reading it on the app side.
I think Cordova has a higher threshold than Monaca.
Creating a Cordova plug-in also requires knowledge of Java and Objective-C or Swift or Swift2.
It may be a consultation between time and time, but
If you clarify what to adopt, prioritize, and how to achieve it, you will be asked for detailed advice.


2022-09-30 21:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.