Jump to content

sendNotificationToAllDevices, synchronous or asynchronous?


Recommended Posts

Hi again,

 

Does the Service.sendNotificationToAllDevices method process the notification on the calling thread or asynchronously (i.e. does it block the calling thread until the message has been sent)? I realize the send time may be very quick, but my application has certain error scenarios where every millisecond counts. It's relatively simple for me to hand the notification task off to a background thread on my side, but I don't want to do this if the API is already doing so.


Thanks,

Brad

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...