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

Not working correctly with inAppBrowser #6

Open
tbh726 opened this issue Dec 4, 2014 · 5 comments
Open

Not working correctly with inAppBrowser #6

tbh726 opened this issue Dec 4, 2014 · 5 comments

Comments

@tbh726
Copy link

tbh726 commented Dec 4, 2014

great plugin. in testing i did run into an issue. i used the apache "inAppBrowser" and just used google.com as the url. I then simply hit the home button. in the console i get the message "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates." testing the rest of the app in all the other functions it worked great. I am using cordova 3.6.3 on a iPad Air 2 running ios 8.1. Not that it should matter, but i am also using JqueryMobile 1.4.3. Any idea on how to fix this i did not see any settings that i had to change.

thanks for any input...

@santoshanand
Copy link

You can modify "InAppBrowser" plugin.

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);

add above line into "InAppBrowserDialog" constructor.

@devgeeks
Copy link
Owner

There is a PR for inAppBrowser right now that might be what we need.

apache/cordova-plugin-inappbrowser#164

If it works, I am hoping to have a look and get consensus to merge it in.

@devgeeks
Copy link
Owner

Ugh. The PR was never merged in it looks like.

Not sure what the next step is here...

@yelban
Copy link

yelban commented Feb 8, 2017

apache/cordova-plugin-inappbrowser#164 is work for inAppBrowser,

but can't work on themeableBrowser


error: cannot find symbol

...

if (!features.disableAnimation) {
dialog.getWindow().getAttributes().windowAnimations
= android.R.style.Animation_Dialog;
}

            int flags = cordova.getActivity().getWindow().getAttributes().flags;
            if ((flags & WindowManager.LayoutParams.FLAG_SECURE) != 0) {
                // dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
                dialog.getWindow().addFlags(LayoutParams.FLAG_SECURE);
            }

@ForrestWang
Copy link

this plugin doesn't work on iOS10.0-10.3

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

5 participants