[jira] [Commented] (CB-2627) HTML File Input should support accept/source attributes

2018-08-26 Thread Niklas Merz (JIRA)


[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16593033#comment-16593033
 ] 

Niklas Merz commented on CB-2627:
-

Looks like I deleted this fork accidentally. As far as I remember this was a 
dirty path in cordova-android and not really useful.

> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2018-01-02 Thread Niklas Merz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niklas Merz updated CB-13659:
-
Priority: Major  (was: Minor)

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>  Labels: newbie, starter
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-14 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16290680#comment-16290680
 ] 

Niklas Merz edited comment on CB-13659 at 12/14/17 10:25 AM:
-

This PR and issue only adds the option for disabling the spinner on iOS. 

@[~Sujan12] The Android implementation lacks a spinner completely (see 
[CB-1247|https://issues.apache.org/jira/browse/CB-12479]), but the PR looks 
like this should be fairly simple to add. As soon as I get my build environment 
ready for Android, I will have a look at redoing this PR.


was (Author: niklasmerz):
This PR and issue only adds the option for disabling the spinner on iOS. 

@[~Sujan12] The Android implementation lacks a spinner completely (see 
[CB-1247|https://issues.apache.org/jira/browse/CB-12479]), but the PR looks 
like this should be fairly simple to add.As soon as I get my build environment 
ready for Android, I will have a look at redoing this PR.

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>  Labels: newbie, starter
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-14 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16290680#comment-16290680
 ] 

Niklas Merz commented on CB-13659:
--

This PR and issue only adds the option for disabling the spinner on iOS. 

@[~Sujan12] The Android implementation lacks a spinner completely (see 
[CB-1247|https://issues.apache.org/jira/browse/CB-12479]), but the PR looks 
like this should be fairly simple to add.As soon as I get my build environment 
ready for Android, I will have a look at redoing this PR.

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>  Labels: newbie, starter
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-13 Thread Niklas Merz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niklas Merz updated CB-13659:
-
 Flags: Patch
Labels: newbie starter  (was: )

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>  Labels: newbie, starter
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-13 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16290008#comment-16290008
 ] 

Niklas Merz commented on CB-13659:
--

I have submitted a PR which adds the option to disabe the spinner. 

I think adding the loading indicator to android should be done as a seperate 
issue and PR.

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-12 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16288822#comment-16288822
 ] 

Niklas Merz commented on CB-13659:
--

This is the PR for Android 
[https://github.com/apache/cordova-plugin-inappbrowser/pull/88/files]

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-12 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16287785#comment-16287785
 ] 

Niklas Merz commented on CB-13659:
--

The Android implementation is an open pull request. I already have figured out 
how to do that. I will create a proper pull request as soon as possible. 

> InAppBrowser: Add option to disable spinner on iOS
> --
>
> Key: CB-13659
> URL: https://issues.apache.org/jira/browse/CB-13659
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-inappbrowser
>Reporter: Niklas Merz
>Priority: Minor
>
> Like mentioned in this pull request 
> [https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
> inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-13659) InAppBrowser: Add option to disable spinner on iOS

2017-12-12 Thread Niklas Merz (JIRA)
Niklas Merz created CB-13659:


 Summary: InAppBrowser: Add option to disable spinner on iOS
 Key: CB-13659
 URL: https://issues.apache.org/jira/browse/CB-13659
 Project: Apache Cordova
  Issue Type: Improvement
  Components: cordova-plugin-inappbrowser
Reporter: Niklas Merz
Priority: Minor


Like mentioned in this pull request 
[https://github.com/apache/cordova-plugin-inappbrowser/pull/89], the 
inappbrowser needs flags to disable the loading spinner



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-09-09 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159864#comment-16159864
 ] 

Niklas Merz commented on CB-7179:
-

Merging Daves changes back to the original plugin would be really cool. From my 
point of view this is not impossible.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-07-22 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097209#comment-16097209
 ] 

Niklas Merz edited comment on CB-7179 at 7/22/17 9:49 AM:
--

Dave Alden has taken my simple approach and improved it. I am linking the [pull 
request|https://github.com/NiklasMerz/cordova-plugin-inappbrowser/pull/1#pullrequestreview-51619777]
 here, if someone wants to contribute or review.


was (Author: niklasmerz):
Dave Alden has taken my simple approach and improved it. I am linking the [pull 
request|https://github.com/NiklasMerz/cordova-plugin-inappbrowser/pull/1#pullrequestreview-51619777]
 here, if someone wants to contribute.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-07-22 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097209#comment-16097209
 ] 

Niklas Merz commented on CB-7179:
-

Dave Alden has taken my simple approach and improved it. I am linking the [pull 
request|https://github.com/NiklasMerz/cordova-plugin-inappbrowser/pull/1#pullrequestreview-51619777]
 here, if someone wants to contribute.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-07-11 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082447#comment-16082447
 ] 

Niklas Merz commented on CB-7179:
-

Please consider that Cordova itself must also run in WKWebview if the 
ressources like cookies should be shared between Cordova and the plugin.

I have managed to get the InAppBrowser in WKWebview running, but this needs 
some work to make it run like UIWebview did. If I find some time, I could 
propose some changes.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-06-29 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16068218#comment-16068218
 ] 

Niklas Merz commented on CB-7179:
-

Yes session sharing is possible with CDVWKProcessPoolFactory from the Cordova 
WKWebview plugin. I am working on this a pull request for the inappbrowser 
plugin if the Cordova developers want to support WKWebview (or as an option). 
Otherwise this could be a separate plugin.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-06-29 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062939#comment-16062939
 ] 

Niklas Merz edited comment on CB-7179 at 6/29/17 7:34 AM:
--

Hello,

We are experiencing a strange bug in InAppBrowser with UIWebView. Using the 
WKWebview plugin with Cordova solves this. I am currently trying to get the 
wkwebview branch working by myself but with my few ObjectiveC skill it is 
difficult to get it running.

WkWebview has introduced some improvements since opening this issue. Have you 
any plans on working on this? 

Edit: Now I am at a point where the InAppBrowser is working in WKWebview. How 
do the plans of the Cordova team look like? Do you want to support WKWebview 
and UIWebview?

Thanks
Niklas


was (Author: niklasmerz):
Hello,

We are experiencing a strange bug in InAppBrowser with UIWebView. Using the 
WKWebview plugin with Cordova solves this. I am currently trying to get the 
wkwebview branch working by myself but with my few ObjectiveC skill it is 
difficult to get it running.

WkWebview has introduced some improvements since opening this issue. Have you 
any plans on working on this? 

Thanks
Niklas

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Issue Comment Deleted] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-06-29 Thread Niklas Merz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niklas Merz updated CB-7179:

Comment: was deleted

(was: I am now at a point where the InAppBrowser runs in WKWebview and the 
Javascript bridge is working. But now I have recognized that the Cordova 
webview and InAppBrowser webview don't share the session / cookies. Has anybody 
experience with WkWebview and can tell if this is possible?

Thanks for any feedback.)

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-06-28 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066537#comment-16066537
 ] 

Niklas Merz commented on CB-7179:
-

I am now at a point where the InAppBrowser runs in WKWebview and the Javascript 
bridge is working. But now I have recognized that the Cordova webview and 
InAppBrowser webview don't share the session / cookies. Has anybody experience 
with WkWebview and can tell if this is possible?

Thanks for any feedback.

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7179) [InAppBrowser][iOS 8] Update to support WKWebView

2017-06-26 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062939#comment-16062939
 ] 

Niklas Merz commented on CB-7179:
-

Hello,

We are experiencing a strange bug in InAppBrowser with UIWebView. Using the 
WKWebview plugin with Cordova solves this. I am currently trying to get the 
wkwebview branch working by myself but with my few ObjectiveC skill it is 
difficult to get it running.

WkWebview has introduced some improvements since opening this issue. Have you 
any plans on working on this? 

Thanks
Niklas

> [InAppBrowser][iOS 8] Update to support WKWebView
> -
>
> Key: CB-7179
> URL: https://issues.apache.org/jira/browse/CB-7179
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: cordova-plugin-inappbrowser
> Environment: iOS 8
>Reporter: Shazron Abdullah
>
> support dual use with UIWebView



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-2627) HTML File Input should support accept/source attributes

2017-04-09 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962061#comment-15962061
 ] 

Niklas Merz commented on CB-2627:
-

My solution works somehow so far. But right now I doubt this is really useful 
in Android core. I am the same opinion as [~bowserj], that this is very 
fragile. Personally I would prefer this to be solved in InAppBrowser. The 
InAppBrowser always opens the file picker for input file elements. I would like 
the InAppBrowser plugin behave more like Chrome.

File uploads in a Cordova app can be done with plugins.

> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-2627) HTML File Input should support accept/source attributes

2017-04-08 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961757#comment-15961757
 ] 

Niklas Merz edited comment on CB-2627 at 4/8/17 10:34 AM:
--

I am trying to add intents right now. I have also stumbled on this while using 
the InAppBrowser plugin. The InAppBrowser does not support file capture, too.

The thing is that Android webview offers a simple way to open file picker. See 
my comment above.  I think Android WebView should support [W3C recommendation | 
 https://www.w3.org/TR/html-media-capture/].


At the moment I have gotten so far to that, if the capture attribute is set, 
the suitable intent should be triggered.
For example:
{code}

{code}
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look: 
https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c

My code is derived from the old Android browser. I could not find how Chrome is 
doing this.
[Google 
Code|https://android.googlesource.com/platform/packages/apps/Browser/+/master/src/com/android/browser/UploadHandler.java]



was (Author: niklasmerz):
I am trying to add intents right now. I have also stumbled on this while using 
the InAppBrowser plugin. 

The thing is that Android webview offers a simple way to open file picker. See 
my comment above.  I think Android WebView should support [W3C recommendation | 
 https://www.w3.org/TR/html-media-capture/].


At the moment I have gotten so far to that, if the capture attribute is set, 
the suitable intent should be triggered.
For example:
{code}

{code}
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look: 
https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c

My code is derived from the old Android browser. I could not find how Chrome is 
doing this.
[Google 
Code|https://android.googlesource.com/platform/packages/apps/Browser/+/master/src/com/android/browser/UploadHandler.java]


> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-2627) HTML File Input should support accept/source attributes

2017-04-08 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961757#comment-15961757
 ] 

Niklas Merz edited comment on CB-2627 at 4/8/17 10:15 AM:
--

I am trying to add intents right now. I have also stumbled on this while using 
the InAppBrowser plugin. 

The thing is that Android webview offers a simple way to open file picker. See 
my comment above.  I think Android WebView should support [W3C recommendation | 
 https://www.w3.org/TR/html-media-capture/].


At the moment I have gotten so far to that, if the capture attribute is set, 
the suitable intent should be triggered.
For example:
{code}

{code}
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look: 
https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c

My code is derived from the old Android browser. I could not find how Chrome is 
doing this.
[Google 
Code|https://android.googlesource.com/platform/packages/apps/Browser/+/master/src/com/android/browser/UploadHandler.java]



was (Author: niklasmerz):
I am trying to add intents right now. I have also stumbled on this while using 
the InAppBrowser plugin. 

The thing is that Android webview offers a simple way to open file picker. See 
my comment above.  I think Android WebView should support W3C recommendation: 
https://www.w3.org/TR/html-media-capture/ .


At the moment I have gotten so far to that, if the capture attribute is set, 
the suitable intent should be triggered.
For example:
{code}

{code}
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look: 
https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c




> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-2627) HTML File Input should support accept/source attributes

2017-04-08 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961757#comment-15961757
 ] 

Niklas Merz commented on CB-2627:
-

I am trying to add intents right now. I have also stumbled on this while using 
the InAppBrowser plugin. 

The thing is that Android webview offers a simple way to open file picker. See 
my comment above.  I think Android WebView should support W3C recommendation: 
https://www.w3.org/TR/html-media-capture/ .


At the moment I have gotten so far to that, if the capture attribute is set, 
the suitable intent should be triggered.
For example:
{code}

{code}
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look: 
https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c




> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-2627) HTML File Input should support accept/source attributes

2017-04-07 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961199#comment-15961199
 ] 

Niklas Merz edited comment on CB-2627 at 4/7/17 8:36 PM:
-

The file chooser is created by:

{code:title=SystemWebChromeClient.java|borderStyle=solid}
Intent uploadIntent = fileChooserParams.createIntent();
{code}

>From Android docs:
{quote}
createIntent
added in API level 21

Intent createIntent ()

Creates an intent that would start a file picker for file selection. The Intent 
supports choosing files from simple file sources available on the device. Some 
advanced sources (for example, live media capture) may not be supported and 
applications wishing to support these sources or more advanced file operations 
should build their own Intent. 
{quote}

Android WebChromeClient seems to open file upload all the time.



was (Author: niklasmerz):
The file chooser is created by:

{code:title=SystemWebChromeClient.java|borderStyle=solid}
Intent uploadIntent = fileChooserParams.createIntent();
{code}

>From Android docs:
{quote}
createIntent
added in API level 21

Intent createIntent ()

Creates an intent that would start a file picker for file selection. The Intent 
supports choosing files from simple file sources available on the device. Some 
advanced sources (for example, live media capture) may not be supported and 
applications wishing to support these sources or more advanced file operations 
should build their own Intent. 
{quote}

I am trying to add itents depending on capture attributes now.


> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-2627) HTML File Input should support accept/source attributes

2017-04-07 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961199#comment-15961199
 ] 

Niklas Merz commented on CB-2627:
-

The file chooser is created by:

{code:title=SystemWebChromeClient.java|borderStyle=solid}
Intent uploadIntent = fileChooserParams.createIntent();
{code}

>From Android docs:
{quote}
createIntent
added in API level 21

Intent createIntent ()

Creates an intent that would start a file picker for file selection. The Intent 
supports choosing files from simple file sources available on the device. Some 
advanced sources (for example, live media capture) may not be supported and 
applications wishing to support these sources or more advanced file operations 
should build their own Intent. 
{quote}

I am trying to add itents depending on capture attributes now.


> HTML File Input should support accept/source attributes
> ---
>
> Key: CB-2627
> URL: https://issues.apache.org/jira/browse/CB-2627
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Michael Migdol
>Priority: Minor
>
> [CB-2086] always opens a generic File Picker, regardless of the values passed 
> in for the mimetypes in the accept attribute, or the source attribute.  The 
> Android Browser correctly examines these attributes and starts up an activity 
> with either: a camera intent, a camera/image intent, a camcorder intent, a 
> sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase 
> and Cordova's, but it appears that 
> packages/apps/Browser/src/com/android/browser/UploadHandler.java from the 
> Android source tree contains exactly what we need to accomplish the same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-7212) Could not open camera with

2017-04-07 Thread Niklas Merz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-7212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960697#comment-15960697
 ] 

Niklas Merz commented on CB-7212:
-

I am having the same issue as Max von Preuschen and Amrit.

Did you find andy solution?

> Could not open camera with 
> --
>
> Key: CB-7212
> URL: https://issues.apache.org/jira/browse/CB-7212
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Affects Versions: 3.5.0
>Reporter: Gao Chun
>Assignee: jcesarmobile
>Priority: Minor
>
> Reproduce Test Steps
> ===
> 1. create index.html which includes the following tag:
> 
> 2. Wrap the web app to android apk with cordova-android
> 3. Launch app in device, and click the input tag.
> Expected Outcome
> ===
> The camera can be selected to take a phone
> Actual Outcome
> ===
> Failed to launch camera when tapping the the input tag.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org