How to access Device Token (iOS)

in basic iOS project’s appdelegate.m, there is below code.

-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
}

I want know that deviceToken Value.

Is there way to get the deviceToken?

Do you wanna access it in C++?

If your app uses the push notification function. you will received this message when push notification has been successfully registered. you can get the deviceToken in UE4 with listen FCoreDelegates::ApplicationRegisteredForRemoteNotificationsDelegate events.

thx I did this.

FCoreDelegates::ApplicationRegisteredForRemoteNotificationsDelegate.AddUObject( INSTANCE , &FUNCTION );

void FUNCTION(TArray Token)
{
...
}