[jira] [Commented] (CB-8684) support onStart/onStop lifecycle events in plugins for Android
[ https://issues.apache.org/jira/browse/CB-8684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15452741#comment-15452741 ] Roderick Gadellaa commented on CB-8684: --- Hey it looks like this was fixed in 2015 but I can't find any documentation about this in cordova 6.3.1 (latest)? > support onStart/onStop lifecycle events in plugins for Android > -- > > Key: CB-8684 > URL: https://issues.apache.org/jira/browse/CB-8684 > Project: Apache Cordova > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Android >Reporter: Tony Homer >Assignee: Andrew Grieve > > Enable plugins to handle onStart/onStop lifecycle events in Android > implementation. Currently plugin authors that need this feature instruct > their users to modify the CordovaActivity in their project in order to > support these lifecycle events. > For example, the Flurry plugin instructions direct users to override > onStart and onStop in their activity in order to handle onStop: > https://github.com/Initsogar/cordova-flurry > There are other analytics plugins that want to know about onStart/onStop > instead of onPause/onResume. > This change will enable native Android support only - there will be no > corresponding Cordova lifecycle events generated because these events are > platform specific. > In addition to the Android platform change, a "quirk"-type notation should be > added to the Android Plugin Development guide, along with possible update to > the example code provided there. > For reference, here is the conversation from the dev mailing list between > [~agrieve] and [~tony--]: > {quote} > On 3/9/15, 12:05 PM, "Andrew Grieve"wrote: > >I see no reason we couldn't add onStart / onStop. > > > >As an aside, if you're okay with supporting only ICS+, you can use > >Application.registerActivityLifecycleCallbacks() as a work-around. > > > > > >On Mon, Mar 9, 2015 at 11:23 AM, Homer, Tony > wrote: > > > >> I assumed that this must have been discussed at some point, but I > >>couldn¹t > >> find anything in the list archives or JIRA. > >> I¹m guessing that there might be some practical issues with > >>onStart/onStop > >> and plugin loading timing, but it seems like if there are issues like > >>this > >> they could be addressed somehow. > >> > >> I¹m asking about this because we have an internal request to enable apps > >> to override onStart/onStop in the Intel XDK build system in order to > >> support plugins that want to handle onStart/onStop. > >> My initial response was ³why not use onResume/onPause², but some plugin > >> authors apparently believe that onStart/onStop are the lifecycle events > >> they need. > >> > >> For example, the Flurry plugin instructions direct users to override > >> onStart and onStop in their activity in order to handle onStop: > >> https://github.com/Initsogar/cordova-flurry > >> There are other analytics plugins that want to know about onStart/onStop > >> instead of onPause/onResume. > >> Obviously it is possible to modify your activity in order to do this in > >> your project, but if this capability is important, it should be possible > >> without abandoning the Cordova Way. > >> > >> So I was wondering what you guys think? > >> onPause/onResume should be good enough for anyone? > >> onStart/onStop are edge cases that users need to handle by modifying > >>their > >> activity? > >> onStart/onStop cannot be handled by plugins due to timing issues? > >> > >> Thanks! > >> Tony > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-11601) Html/body scrolls when overflow-y is set to hidden
[ https://issues.apache.org/jira/browse/CB-11601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15394073#comment-15394073 ] Roderick Gadellaa commented on CB-11601: No, I'll have a look at that. It would be weird if this is a chromium issue since its the same version as chrome for android (v51 if i'm not mistaken), I checked that via chrome debugging. Anyway, thanks for the reply, I hope to get back to this soon :) > Html/body scrolls when overflow-y is set to hidden > -- > > Key: CB-11601 > URL: https://issues.apache.org/jira/browse/CB-11601 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 6.2.0 > Environment: At least Android 5.1 (Moto X 2013) up until Android > Nougat Preview 5 (Pixel C) >Reporter: Roderick Gadellaa >Priority: Minor > > I have a script that disables scrolling by setting > $("html").css("overflow-y","hidden"). This works in Chrome (desktop and > android) but doesn't when I embed this in a cordova app. I did notice that > the scroll behaviour is a bit non-standard as it stops scrolling as soon as > you let go (where android typically keeps the momentum of the scroll and then > slowly stops). > I have an apk of the app here: > https://stor4ge.rejh.nl/_stored/res/cordova-issues/cordova-android-overscroll-y-issue.apk > You can reproduce this by opening the app, tapping the hamburger menu and > then swiping up and down anywhere on the screen. The content does need to > have more content than fits the screen obviously but the home section should > have this. > This might have to do with an issue in the chromium webview but since it is > very close to Chrome for Android I'm inclined to think it's not so that's why > I'm putting this here. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-11601) Html/body scrolls when overflow-y is set to hidden
Roderick Gadellaa created CB-11601: -- Summary: Html/body scrolls when overflow-y is set to hidden Key: CB-11601 URL: https://issues.apache.org/jira/browse/CB-11601 Project: Apache Cordova Issue Type: Bug Components: Android Affects Versions: 6.2.0 Environment: At least Android 5.1 (Moto X 2013) up until Android Nougat Preview 5 (Pixel C) Reporter: Roderick Gadellaa Priority: Minor I have a script that disables scrolling by setting $("html").css("overflow-y","hidden"). This works in Chrome (desktop and android) but doesn't when I embed this in a cordova app. I did notice that the scroll behaviour is a bit non-standard as it stops scrolling as soon as you let go (where android typically keeps the momentum of the scroll and then slowly stops). I have an apk of the app here: https://stor4ge.rejh.nl/_stored/res/cordova-issues/cordova-android-overscroll-y-issue.apk You can reproduce this by opening the app, tapping the hamburger menu and then swiping up and down anywhere on the screen. The content does need to have more content than fits the screen obviously but the home section should have this. This might have to do with an issue in the chromium webview but since it is very close to Chrome for Android I'm inclined to think it's not so that's why I'm putting this here. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-3787) Documentation on android camera quirck(s)
[ https://issues.apache.org/jira/browse/CB-3787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13683177#comment-13683177 ] Roderick Gadellaa commented on CB-3787: --- Nice! Like the response-time :) Sorry for sounding a bit bitter when I reported the issue, I guess I was (a bit bitter). Documentation on android camera quirck(s) - Key: CB-3787 URL: https://issues.apache.org/jira/browse/CB-3787 Project: Apache Cordova Issue Type: Improvement Components: Android Affects Versions: 2.6.0 Environment: Typically Android phones with small memory Reporter: Roderick Gadellaa Assignee: Joe Bowser Labels: documentation Android may kill the cordova-activity when opening the camera with camera.getPicture resulting in a Force Close when the photo is taken. Since this is a well known problem (I've found numerous reports and no solution) it would be nice to have this documented as an 'Android Quirck'. I just found out about it after 3 weeks of developing an app that uses the camera as it's primary component. That sucks. -- 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] [Created] (CB-3787) Documentation on android camera quirck(s)
Roderick Gadellaa created CB-3787: - Summary: Documentation on android camera quirck(s) Key: CB-3787 URL: https://issues.apache.org/jira/browse/CB-3787 Project: Apache Cordova Issue Type: Improvement Components: Android Affects Versions: 2.6.0 Environment: Typically Android phones with small memory Reporter: Roderick Gadellaa Assignee: Joe Bowser Android may kill the cordova-activity when opening the camera with camera.getPicture resulting in a Force Close when the photo is taken. Since this is a well known problem (I've found numerous reports and no solution) it would be nice to have this documented as an 'Android Quirck'. I just found out about it after 3 weeks of developing an app that uses the camera as it's primary component. That sucks. -- 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