and its works fine but its slow my app lunch “of course” so i tried the asynchronous methods instead but its not working !! please could u check my code if i miss something
Start the device registration process with the list of channels
Set IBEPushReceiver object as pushReceiver delegate
That is all what you need to do. All further actions work for you asynchronous via app delegates.
If the device will be registered, didRegisterForRemoteNotificationsWithDeviceId delegate will be called, and you can start a message publishing to registered channels, the received message will be got via didReceiveRemoteNotification(notification delegate.
Otherwise didFailToRegisterForRemoteNotificationsWithError delegate with error showing the problem will be called.
sorry for not be so clear , my app is not sending any push notification its only receive them and i publish them via backendless console .
in backendless Docs there is 2 ways to register the device token step 2
Registering the device token with Backendless Synchronous and Asynchronous as u can see that from my code i used the Synchronous method
and its worked fine for registering my device in the default channel and receive the notifications as well , my case is if the internet connection is not good this registration process will take some time and freeze the UI ( check my code \ print(“delay”) in the registration method for the device token ) so i need to use the Asynchronous methods instead to avoid such issues
plz if u didn’t understand my case could u just share the full code for registering the device token using asynchronous method which will solve my issue