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

Hyperloop: iOS - Constructor with block-argument is unable to return valid instance

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Hyperloop 3.0.5
    • Fix Version/s: None
    • Component/s: Hyperloop, iOS
    • Labels:
      None
    • Environment:

      Hyperloop 3.0.5
      SDK 7.1.1.GA

      Description

      Trying to implement BraintreeDropIn the controller instance return null, as a result it can't be presented.

      var BraintreeDropIn = require('BraintreeDropIn/BraintreeDropIn');
      	var BTDropInRequest = require('BraintreeDropIn/BTDropInRequest');
      	var BTDropInController = require('BraintreeDropIn/BTDropInController');
      	var BTDropInResult = require('BraintreeDropIn/BTDropInResult');
      	var NSError = require('Foundation/NSError');
      	var TiApp = require('Titanium/TiApp');
      	var request = BTDropInRequest.alloc().init();
      	var token ="sometoken"
      var controller = BTDropInController.alloc().init();
      	var result = BTDropInResult.alloc().init();
      	var error = new NSError();
      	console.log(controller, result, error);
      	var dropIn = BTDropInController.alloc().initWithAuthorizationRequestHandler(token, request, function (controller, result, error) {
      		console.log('here');
      	});
      	console.log(request);
      	console.log(dropIn);
       
      	TiApp.app().showModalController(dropIn, true);
      

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              bgarcia Brian García
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6335
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code