Support Topics Documentation Slack YouTube Blog

Device Registration

(Mubtada Ali) #1

I’m registering my device ob backendless but it gave error java.lang.RuntimeException: Could not register device on Backendless server: Permission denied (missing INTERNET permission?) however i have also added INTERNET and ACCESS_NETWORK_STATE permissions in manifest file. i don’t know why it gave error. first it Toast “registered” then the application stopped working. kindly help me here

the permissions are
<user-permission android:name=“android.permission.INTERNET” />
<user-permission android:name=“android.permission.ACCESS_NETWORK_STATE” />
<uses-permission android:name=“android.permission.WAKE_LOCK”/>
<uses-permission android:name=“”/>
<uses-permission android:name=“com.example.mubtadanaqvi.backendlesstutorial.permission.C2D_MESSAGE”/>
here is my java file code
protected void onCreate(Bundle savedInstanceState) {

Backendless.Messaging.registerDevice(gcmSenderID, "default", new AsyncCallback&lt;Void&gt;() {
    public void handleResponse(Void response) {
        Toast.makeText(getBaseContext(),"Registered", Toast.LENGTH_SHORT).show();

    public void handleFault(BackendlessFault fault) {
        Toast.makeText(getBaseContext(),"fault: "+fault.getMessage(), Toast.LENGTH_SHORT).show();


(Mubtada Ali) #2

it was a typo mistake, i typed ‘uses’ instead of user, now i received this error in fault handle method,
fault.code is
fault.messge is

'Not Allowed to start service Intent { extras)} without permission

(Mubtada Ali) #3

its solved. i registered my device.