Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5400] Bug with showDatePickerDialog

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2017-12-06T20:42:15.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reportergianluca
AssigneeShak Hossain
Created2017-11-22T12:58:25.000+0000
Updated2017-12-06T20:42:15.000+0000

Description

Publish app on google store doesen't allow showDatePickerDialog on android with this error Uncaught TypeError: Cannot read property 'showDatePickerDialog' of undefined. Bug appears only after publish, it works correctly if install app from titanium. i changed var picker = Ti.UI.createPicker(); to var pickerdata = Ti.UI.createPicker({ type: Ti.UI.PICKER_TYPE_DATE, value:new Date() }); and now it works on google.

Comments

  1. Sharif AbuDarda 2017-11-22

    Hello, There seems to be a lot of information missing in your report. First, we need a full sample code. Also, the SDK you are using to build? Need the target Android API version when publishing. Also, if you are using old SDK I would suggest you upgrade to latest SDK 6.3.0.GA and try again. Try also upgrade your studio to 4.10.x version. Thanks.
  2. Mostafizur Rahman 2017-11-26

    Hello [~kreigher], I just wanted to follow up here. Did you manage to follow the instructions provided earlier? Let us know if you still experience any issue. We would be happy to assist you. Best Regards!
  3. Mostafizur Rahman 2017-11-28

    Hello [~kreigher], Are you still having the issue? Can you try SDK 6.3.0.GA?
  4. gianluca 2017-11-28

    I was using last sdk (6.3.0) and last version of titanium. I tried with api23/api24. Here a full sample code: https://pastebin.com/r3vBJPVF i changed var picker = Ti.UI.createPicker(); to var pickerdata = Ti.UI.createPicker( { type: Ti.UI.PICKER_TYPE_DATE, value:new Date() } ); and now it works on google.
  5. Sharif AbuDarda 2017-11-29

    Hello, Please send a full reproducible code or a sample app that we can test to verify the issue. we need the full sample code not a portion of it. Thanks.
  6. Mostafizur Rahman 2017-12-05

    [~kreigher],I just wanted to follow up here. Did you manage to follow the instructions provided earlier? Let us know if you still experience any issue. We would be happy to assist you. Best Regards!

JSON Source