Can iOS and Android use the same push notification code?

I recently obtained an Apple developer account. I went through the documentation for setting up push notifications for android and added ios to the same setup through Onesignal. Can these be the same or will they always be different?

There are actually separate SDKs for Android and for iOS so the API Keys will always be different.

Hope that helps!