-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OneSignal load time #307
Comments
I also have the same problem, trouble handling as soon as possible. Thank you. |
I also got this too. |
Most of this load time is due to our SDK’s interaction with the Objective-C runtime which can be a bit slow. We do a lot of swizzling so that developers don’t have to add a lot of boilerplate code to their apps. I will look into how we can make this more efficient and perhaps delay it so that it doesn’t block initialization of the app itself. |
One potential solution is to let devs use the SDK without swizzling. I've asked this on the intercom in the past and seen other discussions around it but always seem to get back "swizzling is fine" 😁. I use Segment for my OneSignal integration precisely because this SDK swizzles. If swizzling does cause startup time issues, seems like a prime opportunity to build in the functionality to allow it to work without it. |
Being able to manually initialize the SDK so it doesn't rely on swizzling would be great! |
Closing issue. Note: request still under consideration |
Hi, any updates on this? Getting |
Can I do something about this (delay initialization may be?) Its slowing my app startup time :)
The text was updated successfully, but these errors were encountered: