Is there a way to create and set your own deviceId for Push Notifications for iOS

There are android examples to show ways to assign you own device id. Is there no way to do it is iOS(swift)?
Here is what works in android
String strDeviceID =“xxxx”

Messaging.DEVICE_ID = strDeviceID; // This unique id for device created by app
Backendless.Messaging.registerDevice(getResources().getString(R.string.gcm_project_num), new AsyncCallback<Void>() {
public void handleResponse(Void response) {
Log.i(“App”,“Device ID has been registered for Push Notifications”);

public void handleFault(BackendlessFault fault) {
Log.e(“App”,"Device IDFALLED to registered for Push Notifications " + fault.getMessage());

Hi Alvin,

What would be the use-case for this in iOS? The reason we did it for Android is when you run an app in a simulator, it does not assign device ID, so we had to come up with a workaround.


Application may already have unique identifier for the users. Using that identifier for push notifications would prevent you have having to store another id for the user. An if the user changes devices, the device token will change but notification can be sent using the apps unique id for that person that never changes.

Hi Alvin,

You can now store a relation between a device registration and a user object, so that you can rely on user’s fields to send a message.