get ios device token that registered to APN

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): iOS

I’m working on a project where I have to set up my own push notification service + provider, without using Expo’s push notification service. Is there any way to generate the device id that registered to APN? So that I can make requests directly to APN servers, as in

The closest thing I could find is getExponentPushTokenAsync(), but apparently, it only returns a device token that generated by expo and only works with expo push notification service, so that doesn’t match my needs.

Thanks in advance.