Skip to content

Installation initialization failed #48

@Garridovic

Description

@Garridovic

First of all thank you for your time and effort.

I'm using this module succesfully in Android 4 and 5 but in Android 6 I get an error.
This is the code:

var Parse = require('eu.rebelcorp.parse');

Parse.start();
Parse.addEventListener('notificationreceive', function(e) {
    Ti.API.error("notificationreceive: ", JSON.stringify(e));
});
Parse.addEventListener('notificationopen', function(e) {
    Ti.API.error("notificationreceive: ", JSON.stringify(e));
    alert(e.alert);
});
Parse.addEventListener('installationId', function(e) {
        Ti.API.error("installationId: ", JSON.stringify(e));
    Parse.subscribeChannel(Alloy.Globals.parse.general);
    Parse.putValue("osVersion", Ti.Platform.osname + " " + Ti.Platform.version);
    Parse.putValue("deviceModel", Ti.Platform.manufacturer + " " + Ti.Platform.model);  
        });

In android 6 the channels, osVersion and deviceModel don't appear in dashboard and I get this error Log in logcat
E/ParseModule(979): (main) [633,633] Installation initialization failed: java.lang.IllegalArgumentException: method PUT must have a request body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions