All Collections
FAQs and Troubleshooting
We're getting an infinity loop between Shake SDK and Firebase Messaging
We're getting an infinity loop between Shake SDK and Firebase Messaging

The fix is simple, just add a 3-second timeout before calling Shake.start.

Peter Simic avatar
Written by Peter Simic
Updated over a week ago

If there's a loop between Shake (appearing as SHKNotificationProxy) and Firebase Messaging (RNFBMessagingUNUserNotificationCenter), that's because both libraries swizzle the same method, reversing the order in which the swizzle happens indefinitely.

The fix is simple, delay the instantiation of one library for a few seconds:
Shake.start
Firebase.init

If that doesn't work, rearrange the Shake and Firebase library instantiations too.

If the solution above doesn't help you, please let us know whether by chatting to us using the bubble in the bottom right corner, or emailing us at friends@shakebugs.com 📬

Or even better, join our Slack Community and get in touch with our developers within a few minutes.

Did this answer your question?