Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26636

Android: Remove deprecated "newIntent" event in favor of "newintent"

    Details

    • Story Points:
      1
    • Sprint:
      2018 Sprint 25, 2018 Sprint 26, 2019 Sprint 1

      Description

      Summary:
      The Ti.Android.Activity object currently supports events "newIntent" and "newintent". The "newIntent" event was deprecated in the past in favor of "newintent" with a lower-case 'i'. We should remove it in Titanium 8.0.0.

      Ti.Android.currentActivity.addEventListener("newIntent", function(e) {
      	// This event is deprecated and should no longer be supported.
      	Ti.API.info("!!! Event 'newIntent' is deprecated. Should no longer be fired.");
      });
       
      Ti.Android.currentActivity.addEventListener("newintent", function(e) {
      	// This is the event name you should listen to.
      	Ti.API.info("### Event 'newintent' was received");
      });
      

      Note:
      Ideally, we should log a warning when JS code attempts to add a listener to the deprecated "newIntent" event to avoid confusion/tech-support issues.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Gary Mathews
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code