Support Topics Documentation Slack YouTube Blog

Could not register device on Backendless server


(Reza Ahmadi) #1

Hello,
before i use of backendless cloud and everything was fine but i take my app on backendless standalone and sometimes got below error :

Version is disabled or provided wrong application info (application id or secret key)

i want to register device but got bellow error:

java.lang.RuntimeException: Could not register device on Backendless server: Version is disabled or provided wrong application info (application id or secret key)

i check my app secret key and application id but they are correct and another apis work fine.

and this is my code:

Backendless.Messaging.registerDevice(My_Project_number, “default”, new AsyncCallback<Void>() {
@Override
public void handleResponse(Void arg0) {
Log.d(“GCM”, “OK”);
}
@Override
public void handleFault(BackendlessFault arg0) {
Log.d(“GCM”, “=” + arg0.getMessage());
}
});


(Reza Ahmadi) #2

I found the problem, i most call Backendless.initapp() and Backendless.setUrl() in all activities.