In our App the user can launch a text message. We’re just using the following with some pretty basic options:
native.showPopup("sms", options)
This works fine on most iOS devices. But for some users the text never gets sent. In fact, it seems to kill the native iOS messaging app when I get to it through Corona in this way.
But if I go directly into text messages through iOS, it’s still operating just fine. But when we get there through my Corona app, we get this (from the Xcode console):
Feb 14 16:12:59 iPhone backboardd[28] <Warning>: CoreAnimation: updates deferred for too long
Feb 14 16:12:59 iPhone backboardd[28] <Warning>: CoreAnimation: timed out fence 3c203
Feb 14 16:12:59 iPhone MessagesViewService[737] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
Feb 14 16:12:59 iPhone LLP[918] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] ****** Failed to complete all history queries in a blocking request: (
“0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7”
)
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] ****** Failed to complete all history queries in a blocking request: (
“0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7”
)
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 1 IMFoundation 0x3295a09f IMLogBacktraceToDepth + 54
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 2 IMCore 0x32880aed _NSStringFromIMMessageError + 21076
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 3 IMCore 0x32877357 IMPersonStatusComparator + 231446
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 4 IMCore 0x32876883 IMPersonStatusComparator + 228674
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 5 ChatKit 0x314fc211 <redacted> + 200
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 6 ChatKit 0x314cc5db <redacted> + 70
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 7 ChatKit 0x314b7445 <redacted> + 812
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 8 ChatKit 0x3153eabf <redacted> + 66
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 9 Foundation 0x2e2ec33f __NSFireDelayedPerform + 414
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 10 CoreFoundation 0x2d8dce7f <redacted> + 14
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 11 CoreFoundation 0x2d8dca9b <redacted> + 794
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 12 CoreFoundation 0x2d8dae23 <redacted> + 1218
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 13 CoreFoundation 0x2d845471 CFRunLoopRunSpecific + 524
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 14 CoreFoundation 0x2d845253 CFRunLoopRunInMode + 106
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 15 GraphicsServices 0x3257f2eb GSEventRunModal + 138
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 16 UIKit 0x300fa845 UIApplicationMain + 1136
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 17 MessagesViewService 0x00067e13 MessagesViewService + 3603
Feb 14 16:13:09 iPhone MessagesViewService[737] <Warning>: [Warning] 18 libdyld.dylib 0x38167ab7 <redacted> + 2
The iOS messaging app still operates and it never throws this error. But launching it through Corona DOES, and only on some devices. We really can’t being doing much wrong since it’s just the one line to launch it. And it does work on most devices. But today I watched it work on my iPhone 5s over and over, no problem. And yet I consistently got the errors above for someone else’s iPhone 5s.
Does this kind of imply that the way Corona is launching the native SMS app is not always working properly?
One observation is that when it happens, it seems to take Corona significantly longer to get the SMS app launched then it does on my phone. And the error does sound like a timeout problem of some sort.