Hello, I am trying to utilize the Critical Messaging API to allow my user to message 1 or multiple pre registered contacts automatically. An issue I am having with this in testing is that when the application attempts to fire off texts to the phone numbers the success rate changes from trial to trial, with no variable changing. Sometimes I can send a Critical Message to multiple phone numbers in rapid succession, sometimes the message is only sent to 1 contact, and sometimes I get no successes. Each failure always returns the MSCriticalMessaging.notSupported error. The API documentation states, "The send(_:to:) method only works if the app is backgrounded, if it’s called from foreground the framework returns a MSCriticalMessagingError.notSupported error." If my app is always backgrounded in these tests, what other issues may cause this notSupported error return, and why does the outcomes success rate vary?
Critical Messaging Intermittent Success with notSupported
Does the issue occur when using Xcode 26 and running on iOS 26?
Yes I am running on XCode 26 but testing on iOS 18. I have resolved the issue. I needed to add some delay time between each attempt to send my critical message. I am not fully aware of the architecture of the action but I had assumed that there was a buffer to send and by repeatedly attempting to use the send function I was causing issue.