is this possible to get the user's apple id which is currently login to device? Actually I implemented inapp purchases and I get a device id and Apple id of the user when it purchase the app.
No, it's not possible.
Instead of AppleId, you can use [[UIDevice currentDevice] identifierForVendor]
.