Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9737] iOS: using number for facebook appID account causes crash on IPad

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-25T15:28:55.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-13 API, Release 3.0.0
ComponentsiOS
Labelsapi, qe-acs060112, qe-port
ReporterMukesh Gadiya
AssigneeBlain Hamon
Created2012-06-22T17:28:19.000+0000
Updated2012-08-07T17:06:49.000+0000

Description

UPDATE UPDATE: Changing this from a crasher to a feature request to compensate for setting facebook module's appID to a number, not a string. UPDATE: this test fails on all Ipad 1 - 5.1.1, Ipad 2 - 4.3.5 and Ipad 3 - 5.1.1 Clicking on Users->Social->External Link->Login with facebook Repro steps: 1. Switch to DNS: 184.73.81.90 on IPad 1.5 edit Resources/windows/social/externalLink.js and set Ti.Facebook.appid to 378694535499807 b. edit Resources/windows/social/externalLogin.js and set Ti.Facebook.appid to 378694535499807 2. launch ti.cloud sample app 3. click on Users->Social->External Link->Login with facebook Actual: App quits, crash log is attached. Expected: Bring up facebook login window Note: This works correctly on android ICS galaxy nexus

Attachments

FileDateSize
ticloud_21_june_2012-06-22-165229_iPad3-wifi.crash2012-06-22T17:28:19.000+000031911
ticloud_21_june_2012-06-22-170256_iPad3-wifi.crash2012-06-22T17:28:19.000+000030103
ticloud_21_june_2012-06-22-170643_iPad3-wifi.crash2012-06-22T17:28:19.000+000029888
ticloud_21_june 2.zip2012-06-25T11:49:15.000+00003207534

Comments

  1. Jeff English 2012-06-22

    Please try logging in to facebook on this device with the kitchen sink app first. The Cloud example app simply calls the Facebook api in platform to create the button and perform the login when clicked. It isn't until receipt of the 'login' event that the token is passed to ACS.
  2. Jeff English 2012-06-22

    The stack trace in the 3rd crash log shows that the issue is in the facebook code. This does not appear to be a ti.cloud module issue.
  3. Mukesh Gadiya 2012-06-25

    Update: I am NOT able to reproduce this issue in kitchensink as well as any other brand new mobile app with example files copied from ticloud 2.1.0 module folder, with the same SDK build, IDE and ticloud module builds. I can only reproduce this issue consistently with the attached zipped application. environment: SDK: 2.1.0.v20120622174154 Studio: 2.1.0.201206221045 tiCloud 2.1.0 xCode 4.3.2/3 OS: Lion 10.7.3 Devices: Iphone4s, Ipad1/2/3 with iOS 4.3.2 and 5.1
  4. Mukesh Gadiya 2012-06-25

    Attached is the zipped application file which is consistently failing for FB linking issue.
  5. Blain Hamon 2012-06-25

    Tried on both device and simulator, login comes up with no issues. Can't reproduce. :(
  6. Mukesh Gadiya 2012-06-25

    Blain, Can you try with attached zip app and see if you can reproduce?
  7. Blain Hamon 2012-06-25

    The test JS was using " Ti.Facebook.appid = 378694535499807;" HOWEVER, the docs say Ti.Facebook.appid must be a string. If the test JS uses " Ti.Facebook.appid = '378694535499807';" the app runs fine.
  8. Blain Hamon 2012-06-25

    Lowering priority since this is not a regression, but now an edge case.
  9. Blain Hamon 2012-06-25

    Pull https://github.com/appcelerator/titanium_mobile/pull/2468 pending.
  10. Stephen Tramer 2012-06-25

    Merged to master but no fixversion 2.2.0 yet.

JSON Source