omorandi / TiSMSDialog

Appcelerator Titanium Mobile module implementing an SMS sending dialog (similar to Ti.UI.EmailDialog)
MIT License
141 stars 27 forks source link

Error sending SMS from iphone #18

Closed sed76 closed 9 years ago

sed76 commented 9 years ago
[INFO] :   <CKSMSComposeRemoteViewController: 0x17f57c60> timed out waiting for fence barrier from com.apple.mobilesms.compose
[INFO] :   CoreAnimation: failed to receive fence reply: 10004003
[WARN] :   ing: Attempt to dismiss from view controller <TiRootViewController: 0x17d96200> while a presentation or dismiss is in progress!

Then black screen... Tested both with 3.5.1RC and 3.5.1GA. iphone: ios 7.1.2 System info is:

Operating System
  Name                        = Mac OS X
  Version                     = 10.10.2
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8.0GB

Node.js
  Node.js Version             = 0.10.13
  npm Version                 = 1.3.2

Titanium CLI
  CLI Version                 = 3.4.2
  node-appc Version           = 0.2.25

Titanium SDKs
  3.5.1.RC
    Version                   = 3.5.1
    Platforms                 = iphone, mobileweb, android, blackberry
    git Hash                  = 0c124d6
    git Timestamp             = 02/26/15 10:51
    node-appc Version         = 0.2.24
  3.5.1.GA
    Version                   = 3.5.1
    Platforms                 = iphone, mobileweb, android, blackberry
    git Hash                  = 96875c9
    git Timestamp             = 03/05/15 10:08
    node-appc Version         = 0.2.24
sed76 commented 9 years ago

Fixed. By casting phone number to string and wrap into array, i.e.

smsDialog = iphonesms.createSMSDialog({
            recipients: [ args.num+"" ],
            messageBody: args.messageText,
            ...
    });