Posts

Post not yet marked as solved
1 Replies
906 Views
I noticed that both the fetchMoments(with:) and the fetchMoments(inMomentList:options:) methods are listed in the documentation as deprecated. Why is this? Is there a replacement API for fetching moments? Will the deprecated API still work in iOS 13?
Posted
by bubble.
Last updated
.
Post marked as solved
2 Replies
1.9k Views
In the documentation for pushRegistry(_:didReceiveIncomingPushWith:for:completion:), it is mentioned that in iOS 13, apps receiving VoIP pushes must report incoming call with CallKit before the method finishes execution; otherwise the system may stop the app from receiving any more VoIP pushes. However, in iOS 13 there is also a CXProvider.isSupported property which indicates whether CallKit is supported, so it is not possible to report an incoming call with CallKit when CXProvider.isSupported is false. Do we have to avoid using VoIP pushes for clients which have CXProvider.isSupported equal to false? Or will the app not be penalized for using VoIP pushes and not reporting incoming calls to CallKit for clients where CXProvider.isSupported is false?
Posted
by bubble.
Last updated
.
Post not yet marked as solved
1 Replies
1.9k Views
Running the following code with Undefined Behavior Sanitizer on 64-bit Mac on produces a Misaligned pointer use:#import int main(void) { struct hostent *hp = gethostbyname2("google.com", AF_INET); if (hp) { hp->h_addr; // Misaligned pointer use on this line } return 0; }Is it safe to use?
Posted
by bubble.
Last updated
.