The restore function only works within the same operating system.
However, if you switched from iOS to Android you can request a refund from Apple for the money you paid on iPhone and then you can buy the packs again on your new Android phone.
Here are the steps of getting a refund from Apple for your reference:
If you switched from Android to iOS we can refund you the money you paid for Android packs directly so that you can buy the packs again on your new iPhone.
Please send us an email at email@example.com and give us your order number (that starts with GPA) from the invoice email that Google Play sent upon purchase so we can do refund.