Unable to find method in class. name pushWithTemplate in android

Hi, I am trying to send a simple push notification with a template i created in backendless. When I send the notification using the API, I get the following error:

BackendlessFault{ code: ‘Server.Processing’, message: ‘unable to find method in class. method name pushWithTemplate’, detail: ‘unable to find method in class. method name pushWithTemplate’, extendedData: ‘{}’ }

Below is the method I’m using:

 Backendless.Messaging.pushWithTemplate("newOrderTemp", new AsyncCallback<MessageStatus>() {
        @Override
        public void handleResponse(MessageStatus response) {
            Toast.makeText(getApplicationContext(), response.getStatus().toString(),
                    Toast.LENGTH_LONG
            ).show();

        }

        @Override
        public void handleFault(BackendlessFault fault) {
                Toast.makeText(getApplicationContext(), fault.toString(),
                        Toast.LENGTH_LONG
                ).show();
            //Log.i( "PUSH NOTIFICATION ERROR", fault.toString());

        }
    });

Hi, @kwao-g

I was able to reproduce the problem, and it will be fixed ASAP. Meanwhile you may use REST requests in order to send push with template, this problem reproduces only with SDK. For referencing purposes - ticket ID is BKNDLSS-19197. We’ll notify you as soon as fix will be deployed to our cloud servers.

Anton

Hi Anton, Thank you for your reply

Hi, Getting similar error with Android
implementation ‘com.backendless:backendless:5.2.4’

  • cannot resolve this method
    Backendless.Messaging.sendEmailFromTemplate

We are sorry for the inconveniences, this will be fixed either tomorrow or on Monday

Anton

Thanks for your reply. No problem.

@kwao-g and @mike-turner

Issue is fixed, methods are now working with all versions of Android SDK

Anton