[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13690696#comment-13690696 ] jeremy henson commented on CB-3302: --- Ben - how did you end up getting around this? I'm having the same problem. I tried to target a local page which would just redirects to my data url, but it looks like you cant use _system on local links either. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13690711#comment-13690711 ] Ben N commented on CB-3302: --- I wound up using the externalFileUtil with some slight modifications. It now reads a base64 pdf, saves it locally, and then launches the apple share sheet. After exploring a few options, that turned out to be the only viable route. My app over-writes the file each time (using the same file name), since persistence in the app isn't needed, but you could always modify the plugin to save with a new file name for whatever purpose. Happy to share my version of the plugin with you (the one in the github repo doesn't work)... Email me and I can send it over. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644882#comment-13644882 ] Ben N commented on CB-3302: --- _blank works to open inappbrowser, but I'm trying to push to safari because it has the 'share' button, and I need the print functionality. Not being an obj. C developer, this was the easiest way to implement a method to print a PDF that is generated in the app. The SO link says that this should be possible, but is this a limitation in apple's API? window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644885#comment-13644885 ] Shazron Abdullah commented on CB-3302: -- Exactly what I said. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644904#comment-13644904 ] Ben N commented on CB-3302: --- yeah, that's what I'm asking... You said it's a limitation, but SO link says it should be possible... Just making sure I understand where the issue lies. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644909#comment-13644909 ] Shazron Abdullah commented on CB-3302: -- It's possible to call into Safari with the data url, but it won't render. Thus it's a limitation, effectively useless. In either case, it's not a Cordova API problem that we can solve. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-3302) window.open('_system') does not work with data:application/pdf;base64
[ https://issues.apache.org/jira/browse/CB-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13644919#comment-13644919 ] Ben N commented on CB-3302: --- Just in case I'm not clear on this, using _system does not even pull up Safari. doesn't even get to the point of rendering or anything else, just does nothing at all. So my only option will be to either create the 'share' link in the inappbrowser, or something similar to externalfileutil in the phone gap plugin directory okay, thanks for the help. window.open('_system') does not work with data:application/pdf;base64 - Key: CB-3302 URL: https://issues.apache.org/jira/browse/CB-3302 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.6.0 Environment: iOS simulator / device Reporter: Ben N Assignee: Shazron Abdullah Priority: Minor generate a data URI: var url = data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9Ue... window.open(url, _system); - nothing happens. the URL is not opened in the system browser, and nothing seems to happen in this instance. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira