Skip to content

最新的sdk,安卓没有跑通 #12

@galikaixin

Description

@galikaixin

D/XGPushPlugin: exec : action = addListener, callbackId = XGPush132255936
D/XGPushPlugin: addListener : callbackId=XGPush132255936
D/XGPushPlugin: exec : action = registerPush, callbackId = XGPush132255937
D/XGPushPlugin: > register private:null
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
I/TpnsSecurity: JNI_OnLoad
D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
I/XINGE: [XGOtherPush] Reservert info: use normal xg token register
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 1223 : deviceready has not fired after 5 seconds.
I/chromium: [INFO:CONSOLE(1223)] "deviceready has not fired after 5 seconds.", source: file:///android_asset/www/cordova.js (1223)
D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 1216 : Channel not fired: onCordovaXGPushReady
I/chromium: [INFO:CONSOLE(1216)] "Channel not fired: onCordovaXGPushReady", source: file:///android_asset/www/cordova.js (1216)

测试代码:
onDeviceReady: function() {

    xgpush.enableDebug(true,function(event){
        console.log(event)
    },function(event){
        console.log(event)
    });

    xgpush.on("register", function (data) {
        console.log("register:", data);
    });

    xgpush.on("click", function (data) {
        alert("click:" + JSON.stringify(data));
    });

    xgpush.getLaunchInfo(function (data) {
        alert("getLaunchInfo:" + JSON.stringify(data));
    }); 

    this.receivedEvent('deviceready');
},

有什么思路吗?

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