xgpush-cordova icon indicating copy to clipboard operation
xgpush-cordova copied to clipboard

android 6.0.1 上注册时出现异常

Open cnryb opened this issue 8 years ago • 1 comments

设备是小米4自动升级到了android 6.0.1 MMB29M 使用这种方式注册

    xgpush.registerPush("android-485e4db6-75c2-4e73-ad8a-9942fd33e066").then(function (results) {
        // results 里有 flag 和 data
        alert('设备的 token 是: ' + results.data);
    }).catch(function (errCode) {
        alert('oh no: ' + JSON.stringify(errCode));
    });

会出现以下错误

{"data":"","code":10100,"message":"network can't reachable!"}

在其他 Android 5.X 测试一切还是正常。

这个问题应该如何解决,求指导

cnryb avatar Apr 19 '16 11:04 cnryb

测试android 6.0正常(魅族pro6), registerPush没有传参数, 如果传了则报错(服务器返回错误)

ryanlin1986 avatar Aug 12 '16 16:08 ryanlin1986