iOS Device Token & Push Notification

Hello, Can someone help on how to get device token on ios using ionic only. I’ve managed to get device token using Xcode but is it possible to get device token using ionic only? I need to to add the device token when the users log in the app