PhoneGap InAppBrowser not loading pdf - pdf

I am using PhoneGap InAppBrowser to load pdf in my app. It is loading pdf in IOS, but there is no location bar shown, and on Android pdf is never loaded.
Here is my code to load pdf
iabRef = window.open('sample.pdf', '_blank', 'location=yes');

Not sure if this counts as an answer, but I believe this is a known bug. It is marked as fixed in the 2.4.0 RC here.

Ran into the same with 2.4.0. I switched to using the _system browser in my open call. It's not ideal, as it opens a browser that simply downloads the file, but at least it works.

Related

Copy pages at the push of a button without Javascript for Apple devices

i want to use a button to copy an existing pdf page in the form itself. this works with javascript by spawning a page template. Unfortunately this does not work on apple devices.
Adobe Acrobat Pro DC
var a = this.getTemplate ("template");
a.spawn();
Works on Windows and not for ios
You can't. If you are using Adobe Acrobat Reader on iOS (or Android) the JavaScript to spawn pages isn't supported. I don't see that it's supported in PDF Expert by Readdle either. That functionality is only supported on Windows and macOS.
For the list of supported JavaScript on iOS, see the link below. It's a quick read; the list is very short.
https://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/iosapi/index.html

Safari 12 Extensions and NativeMessaging

With the release of Safari 12, Safari will no longer support NPAPI plugins. My use case is to be able to launch a java application located on a client from a browser extension which I can currently do in Chrome and Firefox with NativeMessaging. From my reasearch, I do not see a way to do this in Safari 12. The closest I can see is their "Safari App Extension" project but this looks like it requires that you package up your native app with the extension and distribute it through the App Store. I am not at all a Mac developer so I am looking for some advice. Does anyone know if Safari supports my use case?
We can create a extension that will download our dmg app with the native code.And run the dmg app after it is getting downloaded.
Then we can place our extension in the safari extension gallery.
We have implemented it in the similar way where our extension look for the json file which in turns download the DMG app that we have kept in the server.

Implement pdf.js in Apache Cordova

I am trying to develop an Apache Cordova Application with Visual Studio 2013 for Android, using Typescript. I am unable to display my PDF. My program begins by downloading the PDF file to the Android Device from a website. After this though, I am unaware as to how to use pdf.js to display the downloaded PDF. I tried looking at the examples and implementing them on a HTML file in IE, but I've been unsuccessful with all attempts to display any kind of PDF, so a sample that works, but not on Android is also appreciated.
so a sample that works, but not on Android is also appreciated.
The PDF js hello world : http://mozilla.github.io/pdf.js/examples/learning/helloworld.html You can open it on android too.

Javafx webkit loading HTML content

I have a javafx application which is loading HTML content using webkit. I have created a stage and a scene and do webEngine.load(html). It works fine. But when I minimize the application and then again maximize it after sometime, the stage shows black screen for 2-3 seconds before loading the html again.
My question is why is this happening and how can I avoid this?
Thanks,
Nitin
You are using very old JavaFX. Can you try with latest version 2.2.21 which can be found here:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
It's cobundled with jdk 7u21, just download and install jdk and you get JavaFX with it.

Cocoa WebView SWF

I am trying to load an SWF inside a WebView in my cococa app, it works fine when I load an HTML which references the SWF. But i'd like do load the flash file alone, with no HTML. Is that possible??
Yes.
It's broken in currently-released WebKit (even on Snow Leopard), but last I checked, it was fixed in WebKit nightlies, so it'll work again someday.
I finally found an answer for that. It is not quite a fix, but it can get my app working for now.
Every time swf is loaded it make a call to debugger and XCode stops.
According to this post, I should disable the option "Stop on debugger" at run menu in XCode.
Now my project is up and running.
Thanks!